traci.step | index /home/delphi/gcc/sumo/tools/traci/step.py

`# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2008-2022 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the Eclipse
# Public License 2.0 are satisfied: GNU General Public License, version 2
# or later which is available at
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later`

Modules
`` |  |
abc | warnings |  |

Classes
`` |  | 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 (if defined)` __weakref__ `list of weak references to the object (if defined)` 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 (if defined)` __weakref__ `list of weak references to the object (if defined)`

Data
`` |  | absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 262144) print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 1048576)