traci.areal
index
/home/anton/import_LD/packages/sumo/mod18/sumo-0.23.0/tools/traci/areal.py

@file    areal.py
@author  Mario Krumnow
@author  Laura Bieker
@date    2011-03-16
@version $Id: areal.py 18096 2015-03-17 09:50:59Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2011-2015 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
traci

 
Functions
       
getContextSubscriptionResults(detID=None)
getIDCount()
getIDCount() -> integer
 
Returns the number of areal detectors in the network.
getIDList()
getIDList() -> list(string)
 
Returns a list of ids of all areal detectors within the scenario.
getJamLengthMeters(detID)
getJamLengthMeters(string) -> double
 
Returns the jam length in meters within the last simulation step.
getJamLengthVehicle(detID)
getJamLengthVehicle(string) -> integer
 
Returns the jam length in vehicles within the last simulation step.
getLastStepMeanSpeed(detID)
getLastStepMeanSpeed(string) -> double
 
Returns the current mean speed in m/s of vehicles that were on the named e2.
getLastStepOccupancy(detID)
getLastStepMeanSpeed(string) -> double
 
Returns the percentage of space the detector was occupied by a vehicle [%]
getLastStepVehicleIDs(detID)
getLastStepVehicleIDs(string) -> list(string)
 
Returns the list of ids of vehicles that were on the named induction loop in the last simulation step.
getSubscriptionResults(detID=None)
getSubscriptionResults(string) -> dict(integer: <value_type>)
 
Returns the subscription results for the last time step and the given detector.
If no detector id is given, all subscription results are returned in a dict.
If the detector 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.
subscribe(detID, varIDs=(16,), begin=0, end=2147483647)
subscribe(string, list(integer), double, double) -> None
 
Subscribe to one or more detector values for the given interval.
subscribeContext(detID, domain, dist, varIDs=(16,), begin=0, end=2147483647)

 
Data
        subscriptionResults = <{}, {}>