| |
Methods defined here:
- __init__(self)
- getBoundary(self, viewID='View #0')
- getBoundary(string): -> ((double, double), (double, double))
Returns the coordinates of the lower left and the upper right corner of the currently visible view.
- getOffset(self, viewID='View #0')
- getOffset(string): -> (double, double)
Returns the x and y offset of the center of the current view.
- getSchema(self, viewID='View #0')
- getSchema(string): -> string
Returns the name of the current coloring scheme.
- getZoom(self, viewID='View #0')
- getZoom(string): -> double
Returns the current zoom factor.
- screenshot(self, viewID, filename)
- screenshot(string, string) -> None
Save a screenshot for the given view to the given filename.
The fileformat is guessed from the extension, the available
formats differ from platform to platform but should at least
include ps, svg and pdf, on linux probably gif, png and jpg as well.
- setBoundary(self, viewID, xmin, ymin, xmax, ymax)
- setBoundary(string, double, double, double, double) -> None
Set the current boundary for the given view (see getBoundary()).
- setOffset(self, viewID, x, y)
- setOffset(string, double, double) -> None
Set the current offset for the given view.
- setSchema(self, viewID, schemeName)
- setSchema(string, string) -> None
Set the current coloring scheme for the given view.
- setZoom(self, viewID, zoom)
- setZoom(string, double) -> None
Set the current zoom factor for the given view.
- trackVehicle(self, viewID, vehID)
- trackVehicle(string, string) -> None
Start visually tracking the given vehicle on the given view.
Data and other attributes defined here:
- DEFAULT_VIEW = 'View #0'
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)
- subscribeContext(string, int, double, list(integer), double, double) -> None
Subscribe to objects of the given domain (specified as domain=traci.constants.CMD_GET_<DOMAIN>_VARIABLE),
which are closer than dist to the object specified by objectID.
- unsubscribe(self, objectID)
- unsubscribe(string) -> None
Unsubscribe from receiving object values.
- unsubscribeContext(self, objectID, domain, dist)
|