本文整理汇总了Python中traci._sendReadOneStringCmd函数的典型用法代码示例。如果您正苦于以下问题:Python _sendReadOneStringCmd函数的具体用法?Python _sendReadOneStringCmd怎么用?Python _sendReadOneStringCmd使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_sendReadOneStringCmd函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _getUniversal
def _getUniversal(varID, typeID):
result = traci._sendReadOneStringCmd(
tc.CMD_GET_VEHICLETYPE_VARIABLE, varID, typeID)
return _RETURN_VALUE_FUNC[varID](result)
示例2: _getUniversal
def _getUniversal(varID, routeID):
result = traci._sendReadOneStringCmd(
tc.CMD_GET_ROUTE_VARIABLE, varID, routeID)
return _RETURN_VALUE_FUNC[varID](result)
示例3: _getUniversal
def _getUniversal(varID, detID):
result = traci._sendReadOneStringCmd(tc.CMD_GET_AREAL_DETECTOR_VARIABLE, varID, detID)
return _RETURN_VALUE_FUNC[varID](result)
示例4: _getUniversal
def _getUniversal(varID, junctionID):
result = traci._sendReadOneStringCmd(
tc.CMD_GET_JUNCTION_VARIABLE, varID, junctionID)
return _RETURN_VALUE_FUNC[varID](result)
示例5: _getUniversal
def _getUniversal(varID, loopID):
result = traci._sendReadOneStringCmd(
tc.CMD_GET_INDUCTIONLOOP_VARIABLE, varID, loopID)
return _RETURN_VALUE_FUNC[varID](result)
示例6: _getUniversal
def _getUniversal(varID, polygonID):
result = traci._sendReadOneStringCmd(tc.CMD_GET_POLYGON_VARIABLE, varID, polygonID)
return _RETURN_VALUE_FUNC[varID](result)