当前位置: 首页>>代码示例>>Python>>正文


Python traci._subscribeContext函数代码示例

本文整理汇总了Python中traci._subscribeContext函数的典型用法代码示例。如果您正苦于以下问题:Python _subscribeContext函数的具体用法?Python _subscribeContext怎么用?Python _subscribeContext使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_subscribeContext函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: subscribeContext

def subscribeContext(typeID, domain, dist, varIDs=(tc.VAR_MAXSPEED,), begin=0, end=2**31 - 1):
    traci._subscribeContext(
        tc.CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT, begin, end, typeID, domain, dist, varIDs)
开发者ID:sequielo,项目名称:sumo,代码行数:3,代码来源:vehicletype.py

示例2: subscribeContext

def subscribeContext(viewID, domain, dist, varIDs=(tc.VAR_VIEW_OFFSET,), begin=0, end=2**31-1):
    subscriptionResults.reset()
    traci._subscribeContext(tc.CMD_SUBSCRIBE_GUI_CONTEXT, begin, end, viewID, domain, dist, varIDs)
开发者ID:cathyyul,项目名称:sumo-0.18,代码行数:3,代码来源:gui.py

示例3: subscribeContext

def subscribeContext(routeID, domain, dist, varIDs=(tc.ID_LIST,), begin=0, end=2**31 - 1):
    traci._subscribeContext(
        tc.CMD_SUBSCRIBE_ROUTE_CONTEXT, begin, end, routeID, domain, dist, varIDs)
开发者ID:sequielo,项目名称:sumo,代码行数:3,代码来源:route.py

示例4: subscribeContext

def subscribeContext(poiID, domain, dist, varIDs=(tc.VAR_POSITION,), begin=0, end=2**31-1):
    subscriptionResults.reset()
    traci._subscribeContext(tc.CMD_SUBSCRIBE_POI_CONTEXT, begin, end, poiID, domain, dist, varIDs)
开发者ID:nnaren1902,项目名称:Secure-Vehicle-Platoon,代码行数:3,代码来源:poi.py

示例5: subscribeContext

def subscribeContext(vehID, domain, dist, varIDs=(tc.VAR_ROAD_ID, tc.VAR_LANEPOSITION), begin=0, end=2**31-1):
    traci._subscribeContext(tc.CMD_SUBSCRIBE_VEHICLE_CONTEXT, begin, end, vehID, domain, dist, varIDs)
开发者ID:p1tt1,项目名称:sumo,代码行数:2,代码来源:vehicle.py

示例6: subscribeContext

def subscribeContext(junctionID, domain, dist, varIDs=(tc.VAR_POSITION,), begin=0, end=2**31 - 1):
    traci._subscribeContext(
        tc.CMD_SUBSCRIBE_JUNCTION_CONTEXT, begin, end, junctionID, domain, dist, varIDs)
开发者ID:RamonHPSilveira,项目名称:urbansim,代码行数:3,代码来源:junction.py

示例7: subscribeContext

def subscribeContext(detID, domain, dist, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31-1):
    traci._subscribeContext(tc.CMD_SUBSCRIBE_AREAL_DETECTOR_CONTEXT, begin, end, detID, domain, dist, varIDs)
开发者ID:harora,项目名称:ITS,代码行数:2,代码来源:areal.py

示例8: subscribeContext

def subscribeContext(edgeID, domain, dist, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2 ** 31 - 1):
    traci._subscribeContext(tc.CMD_SUBSCRIBE_EDGE_CONTEXT, begin, end, edgeID, domain, dist, varIDs)
开发者ID:sequielo,项目名称:sumo,代码行数:2,代码来源:edge.py

示例9: subscribeContext

def subscribeContext(personID, domain, dist, varIDs=(tc.VAR_ROAD_ID, tc.VAR_LANEPOSITION), begin=0, end=2**31 - 1):
    traci._subscribeContext(
        tc.CMD_SUBSCRIBE_PERSON_CONTEXT, begin, end, personID, domain, dist, varIDs)
开发者ID:aarongolliver,项目名称:sumo,代码行数:3,代码来源:person.py

示例10: subscribeContext

def subscribeContext(loopID, domain, dist, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31 - 1):
    traci._subscribeContext(
        tc.CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT, begin, end, loopID, domain, dist, varIDs)
开发者ID:RamonHPSilveira,项目名称:urbansim,代码行数:3,代码来源:inductionloop.py

示例11: subscribeContext

def subscribeContext(detID, domain, dist, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31-1):
    subscriptionResults.reset()
    traci._subscribeContext(tc.CMD_SUBSCRIBE_MULTI_ENTRY_EXIT_DETECTOR_CONTEXT, begin, end, detID, domain, dist, varIDs)
开发者ID:cathyyul,项目名称:sumo-0.18,代码行数:3,代码来源:multientryexit.py

示例12: subscribeContext

def subscribeContext(polygonID, domain, dist, varIDs=(tc.VAR_SHAPE,), begin=0, end=2 ** 31 - 1):
    traci._subscribeContext(tc.CMD_SUBSCRIBE_POLYGON_CONTEXT, begin, end, polygonID, domain, dist, varIDs)
开发者ID:harora,项目名称:ITS,代码行数:2,代码来源:polygon.py

示例13: subscribeContext

def subscribeContext(tlsID, domain, dist, varIDs=(tc.TL_CURRENT_PHASE,), begin=0, end=2**31-1):
    subscriptionResults.reset()
    traci._subscribeContext(tc.CMD_SUBSCRIBE_TL_CONTEXT, begin, end, tlsID, domain, dist, varIDs)
开发者ID:nnaren1902,项目名称:Secure-Vehicle-Platoon,代码行数:3,代码来源:trafficlights.py

示例14: subscribeContext

def subscribeContext(laneID, domain, dist, varIDs=(tc.LAST_STEP_VEHICLE_NUMBER,), begin=0, end=2**31-1):
    subscriptionResults.reset()
    traci._subscribeContext(tc.CMD_SUBSCRIBE_LANE_CONTEXT, begin, end, laneID, domain, dist, varIDs)
开发者ID:alkhalaf,项目名称:OST,代码行数:3,代码来源:lane.py


注:本文中的traci._subscribeContext函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。