| |
- __builtin__.tuple(__builtin__.object)
-
- Stage
- traci.domain.Domain
-
- SimulationDomain
class SimulationDomain(traci.domain.Domain) |
| |
Methods defined here:
- __init__(self)
- clearPending(self, routeID='')
- convert2D(self, edgeID, pos, laneIndex=0, toGeo=False)
- convert3D(self, edgeID, pos, laneIndex=0, toGeo=False)
- convertGeo(self, x, y, fromGeo=False)
- convertRoad(self, x, y, isGeo=False)
- findIntermodalRoute(self, fromEdge, toEdge, modes='', depart=-1.0, routingMode=0, speed=-1.0, walkFactor=-1.0, departPos=-1.0, arrivalPos=-1.0, departPosLat=-1.0, ptype='', vtype='')
- findRoute(self, fromEdge, toEdge, vtype='', depart=-1.0, routingMode=0)
- getArrivedIDList(self)
- getArrivedIDList() -> list(string)
Returns a list of ids of vehicles which arrived (have reached their destination and are removed from the road network) in this time step.
- getArrivedNumber(self)
- getArrivedNumber() -> integer
Returns the number of vehicles which arrived (have reached their destination and are removed from the road network) in this time step.
- getBusStopWaiting(self, stopID)
- getBusStopWaiting() -> integer
Get the total number of waiting persons at the named bus stop.
- getCurrentTime(self)
- getCurrentTime() -> integer
Returns the current simulation time in ms.
- getDeltaT(self)
- getDeltaT() -> integer
Returns the length of one simulation step in milliseconds
- getDepartedIDList(self)
- getDepartedIDList() -> list(string)
Returns a list of ids of vehicles which departed (were inserted into the road network) in this time step.
- getDepartedNumber(self)
- getDepartedNumber() -> integer
Returns the number of vehicles which departed (were inserted into the road network) in this time step.
- getDistance2D(self, x1, y1, x2, y2, isGeo=False, isDriving=False)
- getDistance2D(double, double, double, double, boolean, boolean) -> double
Returns the distance between the two coordinate pairs (x1,y1) and (x2,y2)
If isGeo=True, coordinates are interpreted as longitude and latitude rather
than cartesian coordinates in meters.
If isDriving=True, the coordinates are mapped onto the road network and the
length of the shortest route in the network is returned. Otherwise, the
straight-line distance is returned.
- getDistanceRoad(self, edgeID1, pos1, edgeID2, pos2, isDriving=False)
- getDistanceRoad(string, double, string, double, boolean) -> double
Reads two positions on the road network and an indicator whether the air or the driving distance shall be computed. Returns the according distance.
- getEndingTeleportIDList(self)
- getEndingTeleportIDList() -> list(string)
Returns a list of ids of vehicles which ended to be teleported in this time step.
- getEndingTeleportNumber(self)
- getEndingTeleportNumber() -> integer
Returns the number of vehicles which ended to be teleported in this time step.
- getLoadedIDList(self)
- getLoadedIDList() -> list(string)
Returns a list of ids of vehicles which were loaded in this time step.
- getLoadedNumber(self)
- getLoadedNumber() -> integer
Returns the number of vehicles which were loaded in this time step.
- getMinExpectedNumber(self)
- getMinExpectedNumber() -> integer
Returns the number of vehicles which are in the net plus the
ones still waiting to start. This number may be smaller than
the actual number of vehicles still to come because of delayed
route file parsing. If the number is 0 however, it is
guaranteed that all route files have been parsed completely
and all vehicles have left the network.
- getNetBoundary(self)
- getNetBoundary() -> ((double, double), (double, double))
The boundary box of the simulation network.
- getParkingEndingVehiclesIDList(self)
- getParkingEndingVehiclesIDList() -> list(string)
.
- getParkingEndingVehiclesNumber(self)
- getParkingEndingVehiclesNumber() -> integer
.
- getParkingStartingVehiclesIDList(self)
- getParkingStartingVehiclesIDList() -> list(string)
.
- getParkingStartingVehiclesNumber(self)
- getParkingStartingVehiclesNumber() -> integer
.
- getStartingTeleportIDList(self)
- getStartingTeleportIDList() -> list(string)
Returns a list of ids of vehicles which started to teleport in this time step.
- getStartingTeleportNumber(self)
- getStartingTeleportNumber() -> integer
Returns the number of vehicles which started to teleport in this time step.
- getStopEndingVehiclesIDList(self)
- getStopEndingVehiclesIDList() -> list(string)
.
- getStopEndingVehiclesNumber(self)
- getStopEndingVehiclesNumber() -> integer
.
- getStopStartingVehiclesIDList(self)
- getStopStartingVehiclesIDList() -> list(string)
.
- getStopStartingVehiclesNumber(self)
- getStopStartingVehiclesNumber() -> integer
.
- getSubscriptionResults(self)
- 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.
- saveState(self, fileName)
- subscribe(self, varIDs=(116,), begin=0, end=2147483647)
- subscribe(list(integer), double, double) -> None
Subscribe to one or more simulation values for the given interval.
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
- setParameter(self, objID, param, value)
- setParameter(string, string, string) -> string
Sets the value of the given parameter to value for the given objID
- 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)
|
class Stage(__builtin__.tuple) |
|
Stage(stageType, line, destStop, edges, travelTime, cost) |
|
- Method resolution order:
- Stage
- __builtin__.tuple
- __builtin__.object
Methods defined here:
- __getnewargs__(self)
- Return self as a plain tuple. Used by copy and pickle.
- __getstate__(self)
- Exclude the OrderedDict from pickling
- __repr__(self)
- Return a nicely formatted representation string
- _asdict(self)
- Return a new OrderedDict which maps field names to their values
- _replace(_self, **kwds)
- Return a new Stage object replacing specified fields with new values
Class methods defined here:
- _make(cls, iterable, new=<built-in method __new__ of type object>, len=<built-in function len>) from __builtin__.type
- Make a new Stage object from a sequence or iterable
Static methods defined here:
- __new__(_cls, stageType, line, destStop, edges, travelTime, cost)
- Create new instance of Stage(stageType, line, destStop, edges, travelTime, cost)
Data descriptors defined here:
- __dict__
- Return a new OrderedDict which maps field names to their values
- cost
- Alias for field number 5
- destStop
- Alias for field number 2
- edges
- Alias for field number 3
- line
- Alias for field number 1
- stageType
- Alias for field number 0
- travelTime
- Alias for field number 4
Data and other attributes defined here:
- _fields = ('stageType', 'line', 'destStop', 'edges', 'travelTime', 'cost')
Methods inherited from __builtin__.tuple:
- __add__(...)
- x.__add__(y) <==> x+y
- __contains__(...)
- x.__contains__(y) <==> y in x
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ge__(...)
- x.__ge__(y) <==> x>=y
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getitem__(...)
- x.__getitem__(y) <==> x[y]
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __gt__(...)
- x.__gt__(y) <==> x>y
- __hash__(...)
- x.__hash__() <==> hash(x)
- __iter__(...)
- x.__iter__() <==> iter(x)
- __le__(...)
- x.__le__(y) <==> x<=y
- __len__(...)
- x.__len__() <==> len(x)
- __lt__(...)
- x.__lt__(y) <==> x<y
- __mul__(...)
- x.__mul__(n) <==> x*n
- __ne__(...)
- x.__ne__(y) <==> x!=y
- __rmul__(...)
- x.__rmul__(n) <==> n*x
- count(...)
- T.count(value) -> integer -- return number of occurrences of value
- index(...)
- T.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
| |