plafosim.vehicle_type module
- class plafosim.vehicle_type.EmissionClass(value)[source]
Bases:
EnumEmission class for combustion engines using the HBEFA3 model.
Website: https://www.hbefa.net/
- PC_G_EU4 = 0
- property emission_factors: dict
Return the emission factors of the emission class.
- Returns:
dict
- Return type:
The emission factors of the emission class
- property is_diesel: bool
Return whether the emission class is for a diesel engine.
- Returns:
bool
- Return type:
Whether the emission class is for a diesel engine
- class plafosim.vehicle_type.VehicleType(name: str, length: int, max_speed: float, max_acceleration: float, max_deceleration: float, min_gap: float, headway_time: float, emission_class: str)[source]
Bases:
objectA collection of parameters for a concrete vehicle type.
- __init__(name: str, length: int, max_speed: float, max_acceleration: float, max_deceleration: float, min_gap: float, headway_time: float, emission_class: str)[source]
Initialize a specific vehicle type.
- Parameters:
name (str) – The name of the vehicle type
length (int) – The length of the vehicle type
max_speed (float) – The maximum speed of the vehicle type
max_acceleration (float) – The maximum acceleration of the vehicle type
max_deceleration (float) – The maximum deceleration of the vehicle type
min_gap (float) – The minimum safety gap to the vehicle in front of the vehicle type
headway_time (float) – The human headway time of the vehicle type
emission_class (EmissionClass) – The emission class of the vehicle type
- property emission_class: EmissionClass
Return the emission class of a vehicle type.
- property emission_factors: dict
Return the emission factors of a vehicle type.
- property headway_time: float
Return the desired human headway time of a vehicle type.
- property length: int
Return the length of a vehicle type.
- property max_acceleration: float
Return the maximum acceleration of a vehicle type.
- property max_deceleration: float
Return the maximum deceleration of a vehicle type.
- property max_speed: float
Return the maximum speed of a vehicle type.
- property min_gap: float
Return the minimum gap of a vehicle type.
- property name: str
Return the name of a vehicle type.