本文整理汇总了Python中traci._subscribe函数的典型用法代码示例。如果您正苦于以下问题:Python _subscribe函数的具体用法?Python _subscribe怎么用?Python _subscribe使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_subscribe函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: subscribe
def subscribe(polygonID, varIDs=(tc.VAR_SHAPE,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more polygon values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_POLYGON_VARIABLE, begin, end, polygonID, varIDs)
示例2: subscribe
def subscribe(laneID, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more lane values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_LANE_VARIABLE, begin, end, laneID, varIDs)
示例3: subscribe
def subscribe(typeID, varIDs=(tc.VAR_MAXSPEED,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more vehicle type values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE, begin, end, typeID, varIDs)
示例4: subscribe
def subscribe(personID, varIDs=(tc.VAR_ROAD_ID, tc.VAR_LANEPOSITION), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more person values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_PERSON_VARIABLE, begin, end, personID, varIDs)
示例5: subscribe
def subscribe(loopID, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more induction loop values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE, begin, end, loopID, varIDs)
示例6: subscribe
def subscribe(detID, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more detector values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_AREAL_DETECTOR_VARIABLE, begin, end, detID, varIDs)
示例7: subscribe
def subscribe(junctionID, varIDs=(tc.VAR_POSITION,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more junction values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_JUNCTION_VARIABLE, begin, end, junctionID, varIDs)
示例8: subscribe
def subscribe(routeID, varIDs=(tc.ID_LIST,), begin=0, end=2**31 - 1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more route values for the given interval.
"""
traci._subscribe(
tc.CMD_SUBSCRIBE_ROUTE_VARIABLE, begin, end, routeID, varIDs)
示例9: subscribe
def subscribe(varIDs=(tc.VAR_DEPARTED_VEHICLES_IDS,), begin=0, end=2**31-1):
"""subscribe(list(integer), double, double) -> None
Subscribe to one or more simulation values for the given interval.
A call to this method clears all previous subscription results.
"""
_resetSubscriptionResults()
traci._subscribe(tc.CMD_SUBSCRIBE_SIM_VARIABLE, begin, end, "x", varIDs)
示例10: subscribe
def subscribe(polygonID, varIDs=(tc.VAR_SHAPE,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more polygon values for the given interval.
A call to this method clears all previous subscription results.
"""
_resetSubscriptionResults()
traci._subscribe(tc.CMD_SUBSCRIBE_POLYGON_VARIABLE, begin, end, polygonID, varIDs)
示例11: subscribe
def subscribe(typeID, varIDs=(tc.VAR_MAXSPEED,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more vehicle type values for the given interval.
A call to this method clears all previous subscription results.
"""
subscriptionResults.reset()
traci._subscribe(tc.CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE, begin, end, typeID, varIDs)
示例12: subscribe
def subscribe(loopID, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more induction loop values for the given interval.
A call to this method clears all previous subscription results.
"""
_resetSubscriptionResults()
traci._subscribe(tc.CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE, begin, end, loopID, varIDs)
示例13: subscribe
def subscribe(tlsID, varIDs=(tc.TL_CURRENT_PHASE,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more traffic light values for the given interval.
A call to this method clears all previous subscription results.
"""
subscriptionResults.reset()
traci._subscribe(tc.CMD_SUBSCRIBE_TL_VARIABLE, begin, end, tlsID, varIDs)
示例14: subscribe
def subscribe(junctionID, varIDs=(tc.VAR_POSITION,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more junction values for the given interval.
A call to this method clears all previous subscription results.
"""
subscriptionResults.reset()
traci._subscribe(tc.CMD_SUBSCRIBE_JUNCTION_VARIABLE, begin, end, junctionID, varIDs)
示例15: subscribe
def subscribe(routeID, varIDs=(tc.ID_LIST,), begin=0, end=2**31-1):
"""subscribe(string, list(integer), double, double) -> None
Subscribe to one or more route values for the given interval.
A call to this method clears all previous subscription results.
"""
subscriptionResults.reset()
traci._subscribe(tc.CMD_SUBSCRIBE_ROUTE_VARIABLE, begin, end, routeID, varIDs)