| |
- add(polygonID, shape, color, fill=False, polygonType='', layer=0)
- getColor(polygonID)
- getColor(string) -> (integer, integer, integer, integer)
Returns the rgba color of this polygon.
- getContextSubscriptionResults(polygonID=None)
- getIDCount()
- getIDCount() -> integer
Returns the number of polygons in the network.
- getIDList()
- getIDList() -> list(string)
Returns a list of all polygons in the network.
- getShape(polygonID)
- getShape(string) -> list((double, double))
Returns the shape (list of 2D-positions) of this polygon.
- getSubscriptionResults(polygonID=None)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given poi.
If no polygon id is given, all subscription results are returned in a dict.
If the polygon 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(polygonID)
- getType(string) -> string
Returns the (abstract) type of the polygon.
- remove(polygonID, layer=0)
- setColor(polygonID, color)
- setColor(string, (integer, integer, integer, integer)) -> None
Sets the rgba color of this polygon.
- setShape(polygonID, shape)
- setShape(string, list((double, double))) -> None
Sets the shape (list of 2D-positions) of this polygon.
- setType(polygonID, polygonType)
- setType(string, string) -> None
Sets the (abstract) type of the polygon.
- subscribe(polygonID, varIDs=(78,), begin=0, end=2147483647L)
- subscribe(string, list(integer), double, double) -> None
Subscribe to one or more polygon values for the given interval.
- subscribeContext(polygonID, domain, dist, varIDs=(78,), begin=0, end=2147483647L)
|