Exemplo n.º 1
0
def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None

    Sets the id of the route for the named vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
Exemplo n.º 2
0
def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None

    Changes the vehicles route to the route with the given id.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
Exemplo n.º 3
0
def setShapeClass(typeID, clazz):
    """setShapeClass(string, string) -> None

    Sets the shape class of vehicles of this type. 
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
Exemplo n.º 4
0
def setRedYellowGreenState(tlsID, state):
    """setRedYellowGreenState(string, string) -> None

    Sets the named tl's state as a tuple of light definitions from rRgGyYoO, for red, green, yellow, off, where lower case letters mean that the stream has to decelerate.
    """
    traci._sendStringCmd(
        tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)
Exemplo n.º 5
0
def setProgram(tlsID, programID):
    """setProgram(string, string) -> None

    Sets the id of the current program.
    """
    traci._sendStringCmd(
        tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
Exemplo n.º 6
0
def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None
    
    Sets the id of the route for the named vehicle.
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID,
                         routeID)
Exemplo n.º 7
0
def setProgram(tlsID, programID):
    """setProgram(string, string) -> None
    
    Sets the id of the current program.
    """
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID,
                         programID)
Exemplo n.º 8
0
def setEmissionClass(typeID, clazz):
    """setEmissionClass(string, string) -> None

    Sets the emission class of vehicles of this type.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
Exemplo n.º 9
0
def setShapeClass(vehID, clazz):
    """setShapeClass(string, string) -> None
    
    Sets the shape class for this vehicle.
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SHAPECLASS, vehID,
                         clazz)
Exemplo n.º 10
0
def setSchema(viewID, schemeName):
    """setSchema(string, string) -> None
    
    Set the current coloring scheme for the given view.
    """
    traci._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_SCHEMA, viewID,
                         schemeName)
Exemplo n.º 11
0
def setSchema(viewID, schemeName):
    """setSchema(string, string) -> None

    Set the current coloring scheme for the given view.
    """
    traci._sendStringCmd(
        tc.CMD_SET_GUI_VARIABLE, tc.VAR_VIEW_SCHEMA, viewID, schemeName)
Exemplo n.º 12
0
def setEmissionClass(vehID, clazz):
    """setEmissionClass(string, string) -> None
    
    Sets the emission class for this vehicle.
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_EMISSIONCLASS,
                         vehID, clazz)
Exemplo n.º 13
0
def setType(vehID, typeID):
    """setType(string, string) -> None
    
    Sets the id of the type for the named vehicle.
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TYPE, vehID,
                         typeID)
Exemplo n.º 14
0
def setEmissionClass(typeID, clazz):
    """setEmissionClass(string, string) -> None

    Sets the emission class of vehicles of this type.
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS,
                         typeID, clazz)
Exemplo n.º 15
0
def trackVehicle(viewID, vehID):
    """trackVehicle(string, string) -> None
    
    Start visually tracking the given vehicle on the given view.
    """
    traci._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_TRACK_VEHICLE, viewID,
                         vehID)
Exemplo n.º 16
0
def setShapeClass(vehID, clazz):
    """setShapeClass(string, string) -> None

    Sets the shape class for this vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_SHAPECLASS, vehID, clazz)
Exemplo n.º 17
0
def setShapeClass(typeID, clazz):
    """setShapeClass(string, string) -> None

    Sets the shape class of vehicles of this type. 
    """
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS,
                         typeID, clazz)
Exemplo n.º 18
0
def setEmissionClass(vehID, clazz):
    """setEmissionClass(string, string) -> None

    Sets the emission class for this vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_EMISSIONCLASS, vehID, clazz)
Exemplo n.º 19
0
def setRouteID(vehID, routeID):
    """setRouteID(string, string) -> None

    Changes the vehicles route to the route with the given id.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
Exemplo n.º 20
0
def setType(vehID, typeID):
    """setType(string, string) -> None

    Sets the id of the type for the named vehicle.
    """
    traci._sendStringCmd(
        tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_TYPE, vehID, typeID)
Exemplo n.º 21
0
def trackVehicle(viewID, vehID):
    """trackVehicle(string, string) -> None

    Start visually tracking the given vehicle on the given view.
    """
    traci._sendStringCmd(
        tc.CMD_SET_GUI_VARIABLE, tc.VAR_TRACK_VEHICLE, viewID, vehID)
Exemplo n.º 22
0
def setRedYellowGreenState(tlsID, state):
    """setRedYellowGreenState(string, string) -> None
    
    Sets the named tl's state as a tuple of light definitions from rRgGyYoO, for red, green, yellow, off, where lower case letters mean that the stream has to decelerate.
    """
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE,
                         tlsID, state)
Exemplo n.º 23
0
def screenshot(viewID, filename):
    """screenshot(string, string) -> None
    
    Save a screenshot for the given view to the given filename.
    The fileformat is guessed from the extension, the available 
    formats differ from platform to platform but should at least
    include ps, svg and pdf, on linux probably gif, png and jpg as well.
    """
    traci._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_SCREENSHOT, viewID, filename)
Exemplo n.º 24
0
def screenshot(viewID, filename):
    """screenshot(string, string) -> None
    
    Save a screenshot for the given view to the given filename.
    The fileformat is guessed from the extension, the available 
    formats differ from platform to platform but should at least
    include ps, svg and pdf, on linux probably gif, png and jpg as well.
    """
    traci._sendStringCmd(tc.CMD_SET_GUI_VARIABLE, tc.VAR_SCREENSHOT, viewID, filename)
Exemplo n.º 25
0
def changeTarget(vehID, edgeID):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_CHANGETARGET,
                         vehID, edgeID)
Exemplo n.º 26
0
def changeTarget(vehID, edgeID):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.CMD_CHANGETARGET, vehID, edgeID)
Exemplo n.º 27
0
def setRouteID(vehID, routeID):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_ROUTE_ID, vehID, routeID)
Exemplo n.º 28
0
def setVehicleClass(vehID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLE_VARIABLE, tc.VAR_VEHICLECLASS, vehID, clazz)
def setEmissionClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
def setProgram(tlsID, programID):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
Exemplo n.º 31
0
def setProgram(tlsID, programID):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_PROGRAM, tlsID, programID)
def setRedYellowGreenState(tlsID, state):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)
Exemplo n.º 33
0
def setEmissionClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_EMISSIONCLASS, typeID, clazz)
Exemplo n.º 34
0
def setShapeClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
def setShapeClass(typeID, clazz):
    traci._sendStringCmd(tc.CMD_SET_VEHICLETYPE_VARIABLE, tc.VAR_SHAPECLASS, typeID, clazz)
Exemplo n.º 36
0
def setRedYellowGreenState(tlsID, state):
    traci._sendStringCmd(tc.CMD_SET_TL_VARIABLE, tc.TL_RED_YELLOW_GREEN_STATE, tlsID, state)