Example #1
0
def _getUniversal(varID, typeID):
    result = traci._sendReadOneStringCmd(
        tc.CMD_GET_VEHICLETYPE_VARIABLE, varID, typeID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #2
0
def _getUniversal(varID, routeID):
    result = traci._sendReadOneStringCmd(
        tc.CMD_GET_ROUTE_VARIABLE, varID, routeID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #3
0
def _getUniversal(varID, vehID):
    result = traci._sendReadOneStringCmd(tc.CMD_GET_VEHICLE_VARIABLE, varID,
                                         vehID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #4
0
def _getUniversal(varID, polygonID):
    result = traci._sendReadOneStringCmd(tc.CMD_GET_POLYGON_VARIABLE, varID,
                                         polygonID)
    return _RETURN_VALUE_FUNC[varID](result)
def _getUniversal(varID, detID):
    result = traci._sendReadOneStringCmd(
        tc.CMD_GET_MULTI_ENTRY_EXIT_DETECTOR_VARIABLE, varID, detID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #6
0
File: areal.py Project: harora/ITS
def _getUniversal(varID, detID):
    result = traci._sendReadOneStringCmd(tc.CMD_GET_AREAL_DETECTOR_VARIABLE, varID, detID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #7
0
def _getUniversal(varID, junctionID):
    result = traci._sendReadOneStringCmd(
        tc.CMD_GET_JUNCTION_VARIABLE, varID, junctionID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #8
0
def _getUniversal(varID, junctionID):
    result = traci._sendReadOneStringCmd(tc.CMD_GET_JUNCTION_VARIABLE, varID,
                                         junctionID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #9
0
def _getUniversal(varID, loopID):
    result = traci._sendReadOneStringCmd(
        tc.CMD_GET_INDUCTIONLOOP_VARIABLE, varID, loopID)
    return _RETURN_VALUE_FUNC[varID](result)
Example #10
0
def _getUniversal(varID, polygonID):
    result = traci._sendReadOneStringCmd(tc.CMD_GET_POLYGON_VARIABLE, varID, polygonID)
    return _RETURN_VALUE_FUNC[varID](result)