_Lane
Module Contents
Classes
- class _Lane.Lane(laneId: str, stopList: list[trasmapy.network._Stop.Stop])
Bases:
trasmapy._IdentifiedObject.IdentifiedObject
- property parentEdge
- property stops: list[trasmapy.network._Stop.Stop]
- property linkCount: int
Returns the number of links outgoing from this lane.
- property length: float
Returns the length of the named lane (m).
- property width: float
Returns the width of the named lane (m).
- property CO2Emissions: float
Sum of CO2 emissions on this lane in mg during this time step (mg).
- property COEmissions: float
Sum of CO emissions on this lane in mg during this time step (mg).
- property HCEmissions: float
Sum of HC emissions on this lane in mg during this time step (mg).
- property PMxEmissions: float
Sum of PMx emissions on this lane in mg during this time step (mg).
- property NOxEmissions: float
Sum of NOx emissions on this lane in mg during this time step (mg).
- property fuelConsumption: float
Sum of fuel consumption on this lane in ml during this time step (ml).
- property noiseEmissions: float
Sum of noise generated on this lane (dBA).
- property electricityConsumption: float
Sum of electricity consumption on this edge during this time step (kWh).
- property vehicleCount: int
The number of vehicles on this lane within the last time step.
- property vehicleMeanSpeed: float
Returns the mean speed of vehicles that were on this lane within the last simulation step (m/s)
- property vehicleIds: list[str]
Returns the list of ids of vehicles that were on this lane in the last simulation step.
- property occupancy: float
Returns the total lengths of vehicles on this lane during the last simulation step divided by the length of this lane (%).
- property vehicleMeanLength: float
Returns the mean length of the vehicles which were on this lane in the last step (m).
- property vehicleWaitingTime: float
Returns the sum of the waiting times for all vehicles on the lane (s).
- property travelTime: float
Returns the estimated travel time for the last time step on the given lane (s).
- property vehicleHaltCount: int
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.
- property maxSpeed: float
Returns the maximum speed allowed on this lane (m/s).
- _setParent(parentEdge) None
- limitMaxSpeed(maxSpeed: float) None
Limits the maximum speed for the vehicles in this lane. Only changes the value if it needs to be lowered.
- allowedVehicles() list[trasmapy.users.VehicleClass.VehicleClass]
List of allowed vehicle classes on this lane.
- disallowedVehicles() list[trasmapy.users.VehicleClass.VehicleClass]
List of disallowed vehicle classes on this lane.
- _setAllowed(allowedVehicleClasses: list[str]) None
Set the classes of vehicles allowed to move on this lane.
- _setDisallowed(disallowedVehicleClasses: list[str]) None
Set the classes of vehicles disallowed to move on this lane.
- setAllowed(allowedVehicleClasses: list[trasmapy.users.VehicleClass.VehicleClass]) None
Set the classes of vehicles allowed to move on this lane.
- setDisallowed(disallowedVehicleClasses: list[trasmapy.users.VehicleClass.VehicleClass]) None
Set the classes of vehicles disallowed to move on this lane.
- allowAll() None
Allow all vehicle classes to move on this lane.
- forbidAll() None
Forbid all vehicle classes to move on this lane.