4.19. vehicle module

class vehicle.Vehicle(id=None)[source]

Bases: object

Define 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.

fueltype_name()[source]
Returns:

The fuel type name for the passed ID.

regclass_name()[source]
Returns:

The regclass name for the passed ID.

sourcetype_name()[source]
Returns:

The source type name for the passed ID.

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.