traci
index
/build/sumo-_JnMOZ/sumo-0.30.0+dfsg1/tools/traci/__init__.py

@file    __init__.py
@author  Michael Behrisch
@author  Lena Kalleske
@author  Mario Krumnow
@author  Daniel Krajzewicz
@author  Jakob Erdmann
@date    2008-10-09
@version $Id: __init__.py 23953 2017-04-16 16:19:38Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2008-2017 DLR (http://www.dlr.de/) and contributors
 
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

 
Package Contents
       
_edge
_gui
_inductionloop
_junction
_lane
_lanearea
_multientryexit
_person
_poi
_polygon
_route
_simulation
_trafficlights
_vehicle
_vehicletype
connection
constants
domain
exceptions
rebuildConstants
storage
traciToHex

 
Classes
       
__builtin__.object
StepListener

 
class StepListener(__builtin__.object)
     Methods defined here:
step(self, s=0)
step(int) -> None
 
After adding a StepListener 'listener' with traci.addStepListener(listener), 
TraCI will call listener.step(s) after each call to traci.simulationStep(s)

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:
__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()).

 
Functions
       
addStepListener(listener)
addStepListener(traci.StepListener) -> bool
 
Append the step listener (its step function is called at the end of every call to traci.simulationStep())
Returns True if the listener was added successfully, False otherwise.
close(wait=True)
connect(port=8813, numRetries=10, host='localhost', proc=None)
Establish a connection to a TraCI-Server and return the
connection object. The connection is not saved in the pool and not
accessible via traci.switch. It should be safe to use different
connections established by this method in different threads.
getVersion()
init(port=8813, numRetries=10, host='localhost', label='default')
Establish a connection to a TraCI-Server and store it under the given
label. This method is not thread-safe. It accesses the connection
pool concurrently.
isEmbedded()
load(args)
Let sumo load a simulation using the given command line like options.
simulationStep(step=0)
Make a simulation step and simulate up to the given millisecond 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.
start(cmd, port=None, numRetries=10, label='default')
Start a sumo server using cmd, establish a connection to it and
store it under the given label. This method is not thread-safe.
switch(label)

 
Data
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
areal = <traci._lanearea.LaneAreaDomain instance>
edge = <traci._edge.EdgeDomain instance>
gui = <traci._gui.GuiDomain instance>
inductionloop = <traci._inductionloop.InductionLoopDomain instance>
junction = <traci._junction.JunctionDomain instance>
lane = <traci._lane.LaneDomain instance>
lanearea = <traci._lanearea.LaneAreaDomain instance>
multientryexit = <traci._multientryexit.MultiEntryExitDomain instance>
person = <traci._person.PersonDomain instance>
poi = <traci._poi.PoiDomain instance>
polygon = <traci._polygon.PolygonDomain instance>
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)
route = <traci._route.RouteDomain instance>
simulation = <traci._simulation.SimulationDomain instance>
trafficlights = <traci._trafficlights.TrafficLightsDomain instance>
vehicle = <traci._vehicle.VehicleDomain instance>
vehicletype = <traci._vehicletype.VehicleTypeDomain instance>