traci.route
index
/home/anton/import_LD/packages/sumo/mod18/sumo-0.23.0/tools/traci/route.py

@file    route.py
@author  Michael Behrisch
@author  Lena Kalleske
@date    2008-10-09
@version $Id: route.py 18106 2015-03-19 08:08:16Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2008-2015 DLR (http://www.dlr.de/) and contributors
 
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

 
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.
getIDCount()
getIDCount() -> integer
 
Returns the number of currently loaded routes.
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.
subscribeContext(routeID, domain, dist, varIDs=(0,), begin=0, end=2147483647)

 
Data
        subscriptionResults = <{}, {}>