Exemplo n.º 1
0
def setMinGap(vehID, minGap):
    """setMinGap(string, double) -> None

    Sets the offset (gap to front vehicle if halting) for this vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_MINGAP, vehID, minGap)
Exemplo n.º 2
0
def setTau(typeID, tau):
    """setTau(string, double) -> None

    Sets the driver's reaction time in s for vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_TAU, typeID, tau)
Exemplo n.º 3
0
def setDecel(typeID, decel):
    """setDecel(string, double) -> None

    Sets the maximum deceleration in m/s^2 of vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_DECEL, typeID, decel)
Exemplo n.º 4
0
def setDecel(vehID, decel):
    """setDecel(string, double) -> None

    Sets the maximum deceleration in m/s^2 for this vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_DECEL, vehID, decel)
Exemplo n.º 5
0
def setImperfection(typeID, imperfection):
    """setImperfection(string, double) -> None

    .
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_IMPERFECTION, typeID, imperfection)
Exemplo n.º 6
0
def setWidth(typeID, width):
    """setWidth(string, double) -> None

    Sets the width in m of vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_WIDTH, typeID, width)
Exemplo n.º 7
0
def setMinGap(typeID, minGap):
    """setMinGap(string, double) -> None

    Sets the offset (gap to front vehicle if halting) of vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MINGAP, typeID, minGap)
Exemplo n.º 8
0
def setSpeedFactor(typeID, factor):
    """setSpeedFactor(string, double) -> None

    .
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_FACTOR, typeID, factor)
Exemplo n.º 9
0
def setSpeedDeviation(typeID, deviation):
    """setSpeedDeviation(string, double) -> None

    Sets the maximum speed deviation of vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_DEVIATION, typeID, deviation)
Exemplo n.º 10
0
def setLength(typeID, length):
    """setLength(string, double) -> None

    Sets the length in m of the vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_LENGTH, typeID, length)
Exemplo n.º 11
0
def setMaxSpeed(typeID, speed):
    """setMaxSpeed(string, double) -> None

    Sets the maximum speed in m/s of vehicles of this type.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MAXSPEED, typeID, speed)
Exemplo n.º 12
0
def setZoom(viewID, zoom):
    """setZoom(string, double) -> None

    Set the current zoom factor for the given view.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_ZOOM, viewID, zoom)
Exemplo n.º 13
0
def setWidth(vehID, width):
    """setWidth(string, double) -> None

    Sets the width in m for this vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_WIDTH, vehID, width)
Exemplo n.º 14
0
def setMaxSpeed(laneID, speed):
    """setMaxSpeed(string, double) -> None

    Sets a new maximum allowed speed on the lane in m/s.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_LANE_VARIABLE, tc.VAR_MAXSPEED, laneID, speed)
Exemplo n.º 15
0
def setLength(vehID, length):
    """setLength(string, double) -> None

    Sets the length in m for the given vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_LENGTH, vehID, length)
Exemplo n.º 16
0
def setSpeedDeviation(vehID, deviation):
    """setSpeedDeviation(string, double) -> None

    Sets the maximum speed deviation for this vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED_DEVIATION, vehID, deviation)
Exemplo n.º 17
0
def setMaxSpeed(vehID, speed):
    """setMaxSpeed(string, double) -> None

    Sets the maximum speed in m/s for this vehicle.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_MAXSPEED, vehID, speed)
Exemplo n.º 18
0
def setSpeed(vehID, speed):
    """setSpeed(string, double) -> None

    Sets the speed in m/s for the named vehicle within the last step.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED, vehID, speed)
Exemplo n.º 19
0
def setMaxSpeed(edgeID, speed):
    """setMaxSpeed(string, double) -> None

    Set a new maximum speed (in m/s) for all lanes of the edge.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_EDGE_VARIABLE, tc.VAR_MAXSPEED, edgeID, speed)
Exemplo n.º 20
0
def setLength(laneID, length):
    """setLength(string, double) -> None

    Sets the length of the lane in m.
    """
    traci._sendDoubleCmd(
        tc.CMD_SET_LANE_VARIABLE, tc.VAR_LENGTH, laneID, length)
def setWidth(typeID, width):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_WIDTH, typeID, width)
def setSpeedDeviation(typeID, deviation):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_DEVIATION, typeID, deviation)
def setSpeedFactor(typeID, factor):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SPEED_FACTOR, typeID, factor)
def setMaxSpeed(typeID, speed):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MAXSPEED, typeID, speed)
Exemplo n.º 25
0
def setWidth(vehID, width):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_WIDTH, vehID,
                         width)
Exemplo n.º 26
0
def setAccel(vehID, accel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ACCEL, vehID,
                         accel)
def setDecel(typeID, decel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_DECEL, typeID, decel)
Exemplo n.º 28
0
def setImperfection(vehID, imperfection):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_IMPERFECTION,
                         vehID, imperfection)
Exemplo n.º 29
0
def setDecel(vehID, decel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_DECEL, vehID,
                         decel)
def setMinGap(typeID, minGap):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MINGAP, typeID, minGap)
def setAccel(typeID, accel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_ACCEL, typeID, accel)
def setTau(typeID, tau):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_TAU, typeID, tau)
def setImperfection(typeID, imperfection):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_IMPERFECTION, typeID, imperfection)
Exemplo n.º 34
0
def setMinGap(vehID, minGap):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_MINGAP, vehID,
                         minGap)
Exemplo n.º 35
0
def setTau(vehID, tau):
    """setTau(string, double) -> None
    
    Sets the driver's reaction time in s for this vehicle.
    """
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TAU, vehID, tau)
Exemplo n.º 36
0
def setSpeedFactor(vehID, factor):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED_FACTOR,
                         vehID, factor)
Exemplo n.º 37
0
def setSpeed(vehID, speed):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED, vehID,
                         speed)
Exemplo n.º 38
0
def setSpeedDeviation(vehID, deviation):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SPEED_DEVIATION,
                         vehID, deviation)
Exemplo n.º 39
0
def setDecel(typeID, decel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_DECEL, typeID,
                         decel)
Exemplo n.º 40
0
def setLength(vehID, length):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_LENGTH, vehID,
                         length)
Exemplo n.º 41
0
def setMinGap(typeID, minGap):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MINGAP,
                         typeID, minGap)
Exemplo n.º 42
0
def setTau(typeID, tau):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_TAU, typeID,
                         tau)
Exemplo n.º 43
0
def setMaxSpeed(typeID, speed):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_MAXSPEED,
                         typeID, speed)
Exemplo n.º 44
0
def setAccel(typeID, accel):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_ACCEL, typeID,
                         accel)
Exemplo n.º 45
0
def setTau(vehID, tau):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TAU, vehID, tau)
Exemplo n.º 46
0
def setWidth(typeID, width):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_WIDTH, typeID,
                         width)
Exemplo n.º 47
0
def setTau(vehID, tau):
    """setTau(string, double) -> None

    Sets the driver's reaction time in s for this vehicle.
    """
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TAU, vehID, tau)
Exemplo n.º 48
0
def setLength(typeID, length):
    traci._sendDoubleCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_LENGTH,
                         typeID, length)