| |
Methods defined here:
- __init__(self)
- add(self, poiID, x, y, color, poiType='', layer=0)
- getColor(self, poiID)
- getColor(string) -> (integer, integer, integer, integer)
Returns the rgba color of the given poi.
- getPosition(self, poiID)
- getPosition(string) -> (double, double)
Returns the position coordinates of the given poi.
- getType(self, poiID)
- getType(string) -> string
Returns the (abstract) type of the poi.
- remove(self, poiID, layer=0)
- setColor(self, poiID, color)
- setColor(string, (integer, integer, integer, integer)) -> None
Sets the rgba color of the poi.
- setPosition(self, poiID, x, y)
- setPosition(string, (double, double)) -> None
Sets the position coordinates of the poi.
- setType(self, poiID, poiType)
- setType(string, string) -> None
Sets the (abstract) type of the poi.
Methods inherited from traci.domain.Domain:
- getContextSubscriptionResults(self, objectID=None)
- getIDCount(self)
- getIDCount() -> integer
Returns the number of currently loaded objects.
- getIDList(self)
- getIDList() -> list(string)
Returns a list of all objects in the network.
- getParameter(self, objID, param)
- getParameter(string, string) -> string
Returns the value of the given parameter for the given objID
- getSubscriptionResults(self, objectID=None)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given object.
If no object id is given, all subscription results are returned in a dict.
If the object 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.
- setParameter(self, objID, param, value)
- setParameter(string, string, string) -> string
Sets the value of the given parameter to value for the given objID
- subscribe(self, objectID, varIDs=None, begin=0, end=2147483647)
- subscribe(string, list(integer), double, double) -> None
Subscribe to one or more object values for the given interval.
- subscribeContext(self, objectID, domain, dist, varIDs=None, begin=0, end=2147483647)
|