traci.route | index /home/behr_mi/sumo/tools/traci/route.py

`@file route.py
@author Michael Behrisch
@author Lena Kalleske
@date 2008-10-09
@version $Id: route.py 13811 2013-05-01 20:31:43Z behrisch $
Python implementation of the TraCI interface.
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2008-2013 DLR (http://www.dlr.de/) and contributors
All rights reserved`

Modules
`` |  |
struct | traci.constants | traci |

Functions
`` |  | add(routeID, edges) getContextSubscriptionResults(routeID=None) getEdges(routeID) `getEdges(string) -> list(string) Returns a list of all edges in the route.` getIDList() `getIDList() -> list(string) Returns a list of all routes in the network.` getSubscriptionResults(routeID=None) `getSubscriptionResults(string) -> dict(integer: <value_type>) Returns the subscription results for the last time step and the given route. If no route id is given, all subscription results are returned in a dict. If the route id is unknown or the subscription did for any reason return no data, 'None' is returned. It is not possible to retrieve older subscription results than the ones from the last time step.` subscribe(routeID, varIDs=(0,), begin=0, end=2147483647) `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.` subscribeContext(routeID, domain, dist, varIDs=(0,), begin=0, end=2147483647)

Data
`` |  | subscriptionResults = <traci.SubscriptionResults instance>