traci.route
index
/tmp/buildd/sumo-0.15.0~dfsg/tools/traci/route.py

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

 
Modules
       
struct
traci.constants
traci

 
Functions
       
add(routeID, edges)
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.

 
Data
        subscriptionResults = {}