| |
- getAllowed(laneID)
- getAllowed(string) -> list(string)
Returns a list of allowed vehicle classes. An empty list means all vehicles are allowed.
- getCO2Emission(laneID)
- getCO2Emission(string) -> double
Returns the CO2 emission in mg for the last time step on the given lane.
- getCOEmission(laneID)
- getCOEmission(string) -> double
Returns the CO emission in mg for the last time step on the given lane.
- getContextSubscriptionResults(laneID=None)
- getDisallowed(laneID)
- getDisallowed(string) -> list(string)
Returns a list of disallowed vehicle classes.
- getEdgeID(laneID)
- getEdgeID(string) -> string
Returns the id of the edge the lane belongs to.
- getFuelConsumption(laneID)
- getFuelConsumption(string) -> double
Returns the fuel consumption in ml for the last time step on the given lane.
- getHCEmission(laneID)
- getHCEmission(string) -> double
Returns the HC emission in mg for the last time step on the given lane.
- getIDCount()
- getIDCount() -> integer
Returns the number of lanes in the network.
- getIDList()
- getIDList() -> list(string)
Returns a list of all lanes in the network.
- getLastStepHaltingNumber(laneID)
- getLastStepHaltingNumber(string) -> integer
Returns the total number of halting vehicles for the last time step on the given lane.
A speed of less than 0.1 m/s is considered a halt.
- getLastStepLength(laneID)
- getLastStepLength(string) -> double
Returns the mean vehicle length in m for the last time step on the given lane.
- getLastStepMeanSpeed(laneID)
- getLastStepMeanSpeed(string) -> double
Returns the average speed in m/s for the last time step on the given lane.
- getLastStepOccupancy(laneID)
- getLastStepOccupancy(string) -> double
Returns the occupancy in % for the last time step on the given lane.
- getLastStepVehicleIDs(laneID)
- getLastStepVehicleIDs(string) -> list(string)
Returns the ids of the vehicles for the last time step on the given lane.
- getLastStepVehicleNumber(laneID)
- getLastStepVehicleNumber(string) -> integer
Returns the total number of vehicles for the last time step on the given lane.
- getLength(laneID)
- getLength(string) -> double
Returns the length in m.
- getLinkNumber(laneID)
- getLinkNumber(string) -> integer
Returns the number of connections to successive lanes.
- getLinks(laneID, extended=False)
- getLinks(string) -> list((string, bool, bool, bool))
A list containing id of successor lane together with priority, open and foe
for each link.
if extended=True, each result tuple contains
(string approachedLane, bool hasPrio, bool isOpen, bool hasFoe,
string approachedInternal, string state, string direction, float length)
- getMaxSpeed(laneID)
- getMaxSpeed(string) -> double
Returns the maximum allowed speed on the lane in m/s.
- getNOxEmission(laneID)
- getNOxEmission(string) -> double
Returns the NOx emission in mg for the last time step on the given lane.
- getNoiseEmission(laneID)
- getNoiseEmission(string) -> double
Returns the noise emission in db for the last time step on the given lane.
- getPMxEmission(laneID)
- getPMxEmission(string) -> double
Returns the particular matter emission in mg for the last time step on the given lane.
- getShape(laneID)
- getShape(string) -> list((double, double))
List of 2D positions (cartesian) describing the geometry.
- getSubscriptionResults(laneID=None)
- getSubscriptionResults(string) -> dict(integer: <value_type>)
Returns the subscription results for the last time step and the given lane.
If no lane id is given, all subscription results are returned in a dict.
If the lane 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.
- getTraveltime(laneID)
- getTraveltime(string) -> double
Returns the estimated travel time in s for the last time step on the given lane.
- getWaitingTime(laneID)
- getWaitingTime() -> double
.
- getWidth(laneID)
- getWidth(string) -> double
Returns the width of the lane in m.
- setAllowed(laneID, allowedClasses)
- setAllowed(string, list) -> None
Sets a list of allowed vehicle classes. Setting an empty list means all vehicles are allowed.
- setDisallowed(laneID, disallowedClasses)
- setDisallowed(string, list) -> None
Sets a list of disallowed vehicle classes.
- setLength(laneID, length)
- setLength(string, double) -> None
Sets the length of the lane in m.
- setMaxSpeed(laneID, speed)
- setMaxSpeed(string, double) -> None
Sets a new maximum allowed speed on the lane in m/s.
- subscribe(laneID, varIDs=(16,), begin=0, end=2147483647)
- subscribe(string, list(integer), double, double) -> None
Subscribe to one or more lane values for the given interval.
- subscribeContext(laneID, domain, dist, varIDs=(16,), begin=0, end=2147483647)
|