traci.connection
index
c:\users\delphi\testreports\sumo\git\tools\traci\connection.py

# -*- coding: utf-8 -*-
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2008-2024 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
       
socket
struct
sys
traci.constants
threading
warnings

 
Classes
       
traci.step.StepManager
Connection

 
class Connection(traci.step.StepManager)
    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, traceFile, traceGetters, label=None)
close(self, wait=True)
getLabel(self)
getVersion(self)
hasGUI(self)
load(self, args)
Load a simulation from the given arguments.
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 inherited from traci.step.StepManager:
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.
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='')

 
Functions
       
check()
get(label='default')
has(label)
switch(label)

 
Data
        DOMAINS = [<traci._busstop.BusStopDomain instance>, <traci._calibrator.CalibratorDomain instance>, <traci._chargingstation.ChargingStationDomain instance>, <traci._edge.EdgeDomain instance>, <traci._gui.GuiDomain instance>, <traci._inductionloop.InductionLoopDomain instance>, <traci._junction.JunctionDomain instance>, <traci._lane.LaneDomain instance>, <traci._lanearea.LaneAreaDomain instance>, <traci._meandata.MeanDataDomain instance>, <traci._multientryexit.MultiEntryExitDomain instance>, <traci._overheadwire.OverheadWireDomain instance>, <traci._parkingarea.ParkingAreaDomain instance>, <traci._person.PersonDomain instance>, <traci._poi.PoiDomain instance>, <traci._polygon.PolygonDomain instance>, <traci._rerouter.RerouterDomain instance>, <traci._route.RouteDomain instance>, <traci._routeprobe.RouteProbeDomain instance>, <traci._simulation.SimulationDomain instance>, ...]
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)