traci.poi
index
/tmp/buildd/sumo-0.21.0+dfsg/tools/traci/poi.py

@file    poi.py
@author  Michael Behrisch
@author  Lena Kalleske
@date    2008-10-09
@version $Id: poi.py 15692 2014-02-22 09:17:02Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2008-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
       
struct
traci.constants
traci

 
Functions
       
add(poiID, x, y, color, poiType='', layer=0)
getColor(poiID)
getColor(string) -> (integer, integer, integer, integer)
 
Returns the rgba color of the given poi.
getContextSubscriptionResults(poiID=None)
getIDCount()
getIDCount() -> integer
 
Returns the number of pois in the network.
getIDList()
getIDList() -> list(string)
 
Returns a list of ids of all poi.
getPosition(poiID)
getPosition(string) -> (double, double)
 
Returns the position coordinates of the given poi.
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
 
Returns the (abstract) type of the poi.
remove(poiID, layer=0)
setColor(poiID, color)
setColor(string, (integer, integer, integer, integer)) -> None
 
Sets the rgba color of the poi.
setPosition(poiID, x, y)
setPosition(string, (double, double)) -> None
 
Sets the position coordinates of the poi.
setType(poiID, poiType)
setType(string, string) -> None
 
Sets the (abstract) type of the poi.
subscribe(poiID, varIDs=(66,), begin=0, end=2147483647)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more poi values for the given interval.
subscribeContext(poiID, domain, dist, varIDs=(66,), begin=0, end=2147483647)

 
Data
        subscriptionResults = <{}, {}>