traci.poi
index
/var/build/temp/tmp.znCyBrHNjL/4.0-0-0/sumo/sumo-0.15.0~dfsg/tools/traci/poi.py

@file    poi.py
@author  Michael Behrisch
@author  Lena Kalleske
@date    2008-10-09
@version $Id: poi.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(poiID, x, y, color, poiType='', layer=0)
getColor(poiID)
getColor(string) -> (integer, integer, integer, integer)
 
.
getIDList()
getIDList() -> list(string)
 
Returns a list of all pois in the network.
getPosition(poiID)
getPosition(string) -> (double, double)
 
.
getSubscriptionResults(poiID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given poi.
If no poi id is given, all subscription results are returned in a dict.
If the poi 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.
getType(poiID)
getType(string) -> string
 
.
remove(poiID, layer=0)
setColor(poiID, color)
setPosition(poiID, x, y)
setType(poiID, poiType)
subscribe(poiID, varIDs=(66,), begin=0, end=2147483647L)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more poi values for the given interval.
A call to this method clears all previous subscription results.

 
Data
        subscriptionResults = {}