| |
- builtins.object
-
- StepListener
- StepManager
class StepListener(builtins.object) |
| |
Methods defined here:
- cleanUp(self)
- cleanUp() -> None
This method is called at removal of the stepListener, allowing to schedule some final actions
- getID(self)
- setID(self, ID)
- step(self, t=0)
- step(int) -> bool
After adding a StepListener 'listener' with traci.addStepListener(listener),
TraCI will call listener.step(t) after each call to traci.simulationStep(t)
The return value indicates whether the stepListener wants to stay active.
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
Data and other attributes defined here:
- __metaclass__ = <class 'abc.ABCMeta'>
- Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
|
class StepManager(builtins.object) |
|
Contains the step listeners and the tracing management. |
|
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- addStepListener(self, listener)
- addStepListener(traci.StepListener) -> int
Append the step listener (its step function is called at the end of every call to traci.simulationStep())
Returns the ID assigned to the listener if it was added successfully, None otherwise.
- close(self, write=False)
- manageStepListeners(self, step)
- removeStepListener(self, listenerID)
- removeStepListener(traci.StepListener) -> bool
Remove the step listener from traci's step listener container.
Returns True if the listener was removed successfully, False if it wasn't registered.
- startTracing(self, traceFile, traceGetters, domains)
- write(self, method, args='')
Data descriptors defined here:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
| |