| |
- Method resolution order:
- InductionLoopDomain
- traci.domain.Domain
- builtins.object
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- getIntervalMeanSpeed(self, loopID)
- getIntervalMeanSpeed(string) -> double
Returns the average speed of vehicles during the current interval.
- getIntervalOccupancy(self, loopID)
- getIntervalOccupancy(string) -> double
Returns the percentage of time the detector was occupied by a vehicle
during the current interval.
- getIntervalVehicleIDs(self, loopID)
- getIntervalVehicleIDs(string) -> list(string)
Returns the ids of vehicles that passed the detector during the current interval
- getIntervalVehicleNumber(self, loopID)
- getIntervalVehicleNumber(string) -> integer
Returns the number of vehicles that passed the detector during the current interval
- getLaneID(self, loopID)
- getLaneID(string) -> string
Returns the id of the lane the loop is on.
- getLastIntervalMeanSpeed(self, loopID)
- getLastIntervalMeanSpeed(string) -> double
Returns the average speed of vehicles during the previous interval.
- getLastIntervalOccupancy(self, loopID)
- getLastIntervalOccupancy(string) -> double
Returns the percentage of time the detector was occupied by a vehicle
during the previous interval.
- getLastIntervalVehicleIDs(self, loopID)
- getLastIntervalVehicleIDs(string) -> list(string)
Returns the ids of vehicles that passed the detector during the previous interval
- getLastIntervalVehicleNumber(self, loopID)
- getLastIntervalVehicleNumber(string) -> integer
Returns the number of vehicles that passed the detector during the previous interval
- getLastStepMeanLength(self, loopID)
- getLastStepMeanLength(string) -> double
Returns the mean length in m of vehicles which were on the detector in the last step.
- getLastStepMeanSpeed(self, loopID)
- getLastStepMeanSpeed(string) -> double
Returns the mean speed in m/s of vehicles that were on the named induction loop within the last simulation step.
- getLastStepOccupancy(self, loopID)
- getLastStepOccupancy(string) -> double
Returns the percentage of time the detector was occupied by a vehicle.
- getLastStepVehicleIDs(self, loopID)
- getLastStepVehicleIDs(string) -> list(string)
Returns the list of ids of vehicles that were on the named induction loop in the last simulation step.
- getLastStepVehicleNumber(self, loopID)
- getLastStepVehicleNumber(string) -> integer
Returns the number of vehicles that were on the named induction loop within the last simulation step.
- getPosition(self, loopID)
- getPosition(string) -> double
Returns the position measured from the beginning of the lane in meters.
- getTimeSinceDetection(self, loopID)
- getTimeSinceDetection(string) -> double
Returns the time in s since last detection.
- getVehicleData(self, loopID)
- getVehicleData(string) -> [(veh_id, veh_length, entry_time, exit_time, vType), ...]
Returns a complex structure containing several information about vehicles which passed the detector.
- overrideTimeSinceDetection(self, loopID, time)
- overrideTimeSinceDetection(string, double) -> None
Persistently overrides the measured time since detection with the given value.
Setting a negative value resets the override
Methods inherited from traci.domain.Domain:
- getAllContextSubscriptionResults(self)
- getAllSubscriptionResults(self)
- getAllSubscriptionResults() -> dict(string: dict(integer: <value_type>))
Returns the subscription results for the last time step and all objects of the domain.
It is not possible to retrieve older subscription results than the ones
from the last time step.
- getContextSubscriptionResults(self, objectID)
- 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, objectID, key)
- getParameter(string, string) -> string
Returns the value of the given parameter for the given objectID
- getParameterWithKey(self, objectID, key)
- getParameterWithKey(string, string) -> (string, string)
Returns the (key, value) tuple of the given parameter for the given objectID
- getSubscriptionResults(self, objectID)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given object.
If the object 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.
- setParameter(self, objectID, key, value)
- setParameter(string, string, string) -> None
Sets the value of the given parameter to value for the given objectID
- subscribe(self, objectID, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- subscribe(string, list(integer), double, double, map(string->tuple)) -> None
Subscribe to one or more object values for the given interval.
- subscribeContext(self, objectID, domain, dist, varIDs=None, begin=-1073741824.0, end=-1073741824.0, parameters=None)
- 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.
- subscribeParameterWithKey(self, objectID, key, begin=-1073741824.0, end=-1073741824.0)
- subscribeParameterWithKey(string, string) -> None
Subscribe for a generic parameter with the given key.
- unsubscribe(self, objectID)
- unsubscribe(string) -> None
Unsubscribe from receiving object values.
- unsubscribeContext(self, objectID, domain, dist)
Data descriptors inherited from traci.domain.Domain:
- __dict__
- dictionary for instance variables
- __weakref__
- list of weak references to the object
|