traci.inductionloop | index /home/behr_mi/sumo/tools/traci/inductionloop.py

`@file inductionloop.py
@author Michael Behrisch
@author Daniel Krajzewicz
@date 2011-03-16
@version $Id: inductionloop.py 12906 2012-10-30 11:02:27Z behrisch $
Python implementation of the TraCI interface.
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2011 DLR (http://www.dlr.de/) and contributors
All rights reserved`

Modules
`` |  |
traci.constants | traci |  |

Functions
`` |  | getContextSubscriptionResults(loopID=None) getIDList() `getIDList() -> list(string) Returns a list of all induction loops in the network.` getLaneID(loopID) `getLaneID(string) -> string Returns the id of the lane the loop is on.` getLastStepMeanLength(loopID) `getLastStepMeanLength(string) -> double .` getLastStepMeanSpeed(loopID) `getLastStepMeanSpeed(string) -> double .` getLastStepOccupancy(loopID) `getLastStepOccupancy(string) -> double .` getLastStepVehicleIDs(loopID) `getLastStepVehicleIDs(string) -> list(string) .` getLastStepVehicleNumber(loopID) `getLastStepVehicleNumber(string) -> integer .` getPosition(loopID) `getPosition(string) -> double Returns the position measured from the beginning of the lane.` getSubscriptionResults(loopID=None) `getSubscriptionResults(string) -> dict(integer: <value_type>) Returns the subscription results for the last time step and the given loop. If no loop id is given, all subscription results are returned in a dict. If the loop 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.` getTimeSinceDetection(loopID) `getTimeSinceDetection(string) -> double .` getVehicleData(loopID) `getVehicleData(string) -> integer .` readVehicleData(result) subscribe(loopID, varIDs=(16,), begin=0, end=2147483647) `subscribe(string, list(integer), double, double) -> None Subscribe to one or more induction loop values for the given interval. A call to this method clears all previous subscription results.` subscribeContext(loopID, domain, dist, varIDs=(16,), begin=0, end=2147483647)

Data
`` |  | subscriptionResults = <traci.SubscriptionResults instance>