traci.junction
index
/tmp/buildd/sumo-0.18.0+repack+dfsg/tools/traci/junction.py

@file    junction.py
@author  Michael Behrisch
@date    2011-03-17
@version $Id: junction.py 14443 2013-08-19 19:59:11Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2011-2013 DLR (http://www.dlr.de/) and contributors
All rights reserved

 
Modules
       
traci.constants
traci

 
Functions
       
getContextSubscriptionResults(junctionID=None)
getIDList()
getIDList() -> list(string)
 
Returns a list of all junctions in the network.
getPosition(junctionID)
getPosition(string) -> (double, double)
 
Returns the coordinates of the center of the junction.
getSubscriptionResults(junctionID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given junction.
If no junction id is given, all subscription results are returned in a dict.
If the junction 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(junctionID, varIDs=(66,), begin=0, end=2147483647)
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.
subscribeContext(junctionID, domain, dist, varIDs=(66,), begin=0, end=2147483647)

 
Data
        subscriptionResults = <traci.SubscriptionResults instance>