traci.junction
index
/build/buildd/sumo-0.21.0+dfsg/tools/traci/junction.py

@file    junction.py
@author  Michael Behrisch
@author  Mario Krumnow
@author  Jakob Erdmann
@date    2011-03-17
@version $Id: junction.py 16005 2014-03-24 12:46:02Z cschmidt87 $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2011-2014 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
       
traci.constants
traci

 
Functions
       
getContextSubscriptionResults(junctionID=None)
getIDCount()
getIDCount() -> integer
 
Returns the number of junctions in the network.
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.
getShape(junctionID)
getShape(string) -> list((double, double))
 
List of 2D positions (cartesian) describing the geometry.
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.
subscribeContext(junctionID, domain, dist, varIDs=(66,), begin=0, end=2147483647)

 
Data
        subscriptionResults = <{}, {}>