# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2008-2020 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
# 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
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
||Contains the socket, the composed message string|
together with a list of TraCI commands which are inside.
||Methods defined here:|
- __init__(self, host, port, process)
- 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, wait=True)
- load(self, args)
- Load a simulation from the given arguments.
- 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.
- setOrder(self, order)
- simulationStep(self, step=0.0)
- Make a simulation step and simulate up to the given second in sim time.
If the given value is 0 or absent, exactly one step is performed.
Values smaller than or equal to the current sim time result in no action.
||Methods defined here:|
- cleanUp() -> None
This method is called at removal of the stepListener, allowing to schedule some final actions
- 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:
- dictionary for instance variables (if defined)
- list of weak references to the object (if defined)
Data and other attributes defined here:
- __abstractmethods__ = frozenset(['step'])
- __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()).
||absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)|
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)