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

@file    _lanearea.py
@author  Mario Krumnow
@author  Laura Bieker
@date    2011-03-16
@version $Id: _lanearea.py 24029 2017-04-24 07:15:22Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2011-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
       
struct
traci.constants

 
Classes
       
traci.domain.Domain
LaneAreaDomain

 
class LaneAreaDomain(traci.domain.Domain)
     Methods defined here:
__init__(self, name='lanearea', deprecatedFor=None)
getJamLengthMeters(self, detID)
getJamLengthMeters(string) -> double
 
Returns the jam length in meters within the last simulation step.
getJamLengthVehicle(self, detID)
getJamLengthVehicle(string) -> integer
 
Returns the jam length in vehicles within the last simulation step.
getLaneID(self, detID)
getLaneID(string) -> string
 
Returns the id of the lane the detector is on.
getLastStepHaltingNumber(self, detID)
getLastStepHaltingNumber(string) -> integer
 
Returns the number of vehicles which were halting during the last time step.
getLastStepMeanSpeed(self, detID)
getLastStepMeanSpeed(string) -> double
 
Returns the current mean speed in m/s of vehicles that were on the named e2.
getLastStepOccupancy(self, detID)
getLastStepMeanSpeed(string) -> double
 
Returns the percentage of space the detector was occupied by a vehicle [%]
getLastStepVehicleIDs(self, detID)
getLastStepVehicleIDs(string) -> list(string)
 
Returns the list of ids of vehicles that were on the named detector in the last simulation step.
getLastStepVehicleNumber(self, detID)
getLastStepVehicleNumber(string) -> integer
 
Returns the number of vehicles that were on the named detector within the last simulation step.
getLength(self, detID)
getLength(string) -> double
 
Returns the length of the detector
getPosition(self, detID)
getPosition(string) -> double
 
Returns the starting position of the detector measured from the beginning of the lane in meters.

Methods inherited from traci.domain.Domain:
getContextSubscriptionResults(self, objectID=None)
getIDCount(self)
getIDCount() -> integer
 
Returns the number of currently loaded objects.
getIDList(self)
getIDList() -> list(string)
 
Returns a list of all objects in the network.
getParameter(self, objID, param)
getParameter(string, string) -> string
 
Returns the value of the given parameter for the given objID
getSubscriptionResults(self, objectID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given object.
If no object id is given, all subscription results are returned in a dict.
If the object id is unknown or the subscription did for any reason return no data,
'None' is returned.
It is not possible to retrieve older subscription results than the ones
from the last time step.
setParameter(self, objID, param, value)
setParameter(string, string, string) -> string
 
Sets the value of the given parameter to value for the given objID
subscribe(self, objectID, varIDs=None, begin=0, end=2147483647)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more object values for the given interval.
subscribeContext(self, objectID, domain, dist, varIDs=None, begin=0, end=2147483647)
subscribeContext(string, int, double, list(integer), double, double) -> None
 
Subscribe to objects of the given domain (specified as domain=traci.constants.CMD_GET_<DOMAIN>_VARIABLE),
which are closer than dist to the object specified by objectID.
unsubscribe(self, objectID)
unsubscribe(string) -> None
 
Unsubscribe from receiving object values.
unsubscribeContext(self, objectID, domain, dist)

 
Data
        absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)