4.19. vehicle module
- class vehicle.Vehicle(id=None)[source]
Bases:
objectDefine vehicle attribute names for sourceTypeID, regClassID, fuelTypeID.
- Parameters::
id: The associated ID from the MOVES input file.
- Returns:
Source type name, Regclass name, Fuel type name.
- static vehicle_name(settings, options_dict, dict_of_vehicles)[source]
- Parameters:
settings: The SetInputs class.
options_dict: Dictionary; provides the option ID numbers and associated names.
dict_of_vehicles: Dictionary; contains keys of vehicle tuples.
- Returns:
The passed dictionary with new attributes identifying the vehicle based on the vehicle tuples (keys).
- static option_name(settings, options_dict, dict_of_vehicles)[source]
- Parameters:
settings: The SetInputs class. options_dict: Dictionary; provides the option ID numbers and associated names.
dict_of_vehicles: Dictionary; contains keys of vehicle tuples.
- Returns:
The passed dictionary with new attributes identifying the option name.