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

`@file simulation.py
@author Michael Behrisch
@date 2011-03-15
@version $Id: simulation.py 13811 2013-05-01 20:31:43Z behrisch $
Python implementation of the TraCI interface.
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2008-2013 DLR (http://www.dlr.de/) and contributors
All rights reserved`

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

Functions
`` |  | convert2D(edgeID, pos, laneIndex=0, toGeo=False) convertGeo(x, y, fromGeo=False) convertRoad(x, y, isGeo=False) getArrivedIDList() `getArrivedIDList() -> list(string) returns the list of ids of all vehicles which arrived in the last time step.` getArrivedNumber() `getArrivedNumber() -> integer returns the number vehicles which arrived in the last time step.` getCurrentTime() `getCurrentTime() -> integer .` getDeltaT() `getDeltaT() -> integer .` getDepartedIDList() `getDepartedIDList() -> list(string) returns the list of ids of all vehicles which departed in the last time step.` getDepartedNumber() `getDepartedNumber() -> integer returns the number vehicles which departed in the last time step.` getDistance2D(x1, y1, x2, y2, isGeo=False, isDriving=False) `getDistance2D(double, double, double, double, boolean, boolean) -> double .` getDistanceRoad(edgeID1, pos1, edgeID2, pos2, isDriving=False) `getDistanceRoad(string, double, string, double, boolean) -> double .` getEndingTeleportIDList() `getEndingTeleportIDList() -> list(string) .` getEndingTeleportNumber() `getEndingTeleportNumber() -> integer .` getLoadedIDList() `getLoadedIDList() -> list(string) .` getLoadedNumber() `getLoadedNumber() -> integer .` getMinExpectedNumber() `getMinExpectedNumber() -> integer .` getNetBoundary() `getNetBoundary() -> ((double, double), (double, double)) .` getStartingTeleportIDList() `getStartingTeleportIDList() -> list(string) .` getStartingTeleportNumber() `getStartingTeleportNumber() -> integer .` getSubscriptionResults() `getSubscriptionResults() -> dict(integer: <value_type>) Returns the subscription results for the last time step. It is not possible to retrieve older subscription results than the ones from the last time step.` subscribe(varIDs=(116,), begin=0, end=2147483647) `subscribe(list(integer), double, double) -> None Subscribe to one or more simulation values for the given interval. A call to this method clears all previous subscription results.`

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