traci.connection
index
/build/sumo-c71KiA/sumo-0.30.0+dfsg1/tools/traci/connection.py

@file    connection.py
@author  Michael Behrisch
@author  Lena Kalleske
@author  Mario Krumnow
@author  Daniel Krajzewicz
@author  Jakob Erdmann
@date    2008-10-09
@version $Id: connection.py 24028 2017-04-24 05:10:18Z 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.

 
Modules
       
socket
struct
sys
traci.constants

 
Classes
       
Connection

 
class Connection
    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)
close(self, wait=True)
getVersion(self)
isEmbedded(self)
load(self, args)
Load a simulation from the given arguments.
simulationStep(self, 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.

 
Data
        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)