traci.multientryexit
index
/build/buildd/sumo-0.19.0+dfsg/tools/traci/multientryexit.py

@file    multientryexit.py
@author  Michael Behrisch
@date    2011-03-16
@version $Id: multientryexit.py 15031 2013-11-05 19:52:41Z behrisch $
 
Python implementation of the TraCI interface.
 
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2011-2013 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
       
traci.constants
traci

 
Functions
       
getContextSubscriptionResults(detID=None)
getIDCount()
getIDCount() -> integer
 
Returns the number of multi-entry/multi-exit detectors in the network.
getIDList()
getIDList() -> list(string)
 
Returns a list of ids of all multi-entry/multi-exit (e3) detectors within the scenario.
getLastStepHaltingNumber(detID)
getLastStepHaltingNumber(string) -> integer
 
Returns the number of vehicles which were halting during the last time step.
getLastStepMeanSpeed(detID)
getLastStepMeanSpeed(string) -> double
 
Returns the mean speed in m/s of vehicles that have been within the named multi-entry/multi-exit detector within the last simulation step.
getLastStepVehicleIDs(detID)
getLastStepVehicleIDs(string) -> list(string)
 
Returns the list of ids of vehicles that have been within the named multi-entry/multi-exit detector in the last simulation step.
getLastStepVehicleNumber(detID)
getLastStepVehicleNumber(string) -> integer
 
Returns the number of vehicles that have been within the named multi-entry/multi-exit detector within 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=2147483647L)
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=2147483647L)

 
Data
        subscriptionResults = <{}, {}>