nrel.hive.config.dispatcher_config
Module Contents
Classes
Typed version of namedtuple. |
- class nrel.hive.config.dispatcher_config.DispatcherConfig[source]
Bases:
NamedTupleTyped version of namedtuple.
Usage in Python versions >= 3.6:
class Employee(NamedTuple): name: str id: int
This is equivalent to:
Employee = collections.namedtuple('Employee', ['name', 'id'])
The resulting class has an extra __annotations__ attribute, giving a dict that maps field names to types. (The field names are also in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:
Employee = NamedTuple('Employee', name=str, id=int)
In Python versions <= 3.5 use:
Employee = NamedTuple('Employee', [('name', str), ('id', int)])
- default_update_interval_seconds: nrel.hive.util.units.Seconds
- matching_range_km_threshold: nrel.hive.util.units.Kilometers
- charging_range_km_threshold: nrel.hive.util.units.Kilometers
- charging_range_km_soft_threshold: nrel.hive.util.units.Kilometers
- base_charging_range_km_threshold: nrel.hive.util.units.Kilometers
- ideal_fastcharge_soc_limit: nrel.hive.util.units.Ratio
- max_search_radius_km: nrel.hive.util.units.Kilometers
- charging_search_type: nrel.hive.dispatcher.instruction_generator.charging_search_type.ChargingSearchType
- human_driver_off_shift_charge_target: nrel.hive.util.units.Ratio
- idle_time_out_seconds: nrel.hive.util.units.Seconds
- valid_dispatch_states: Tuple[str, Ellipsis]
- classmethod build(config: Dict | None = None) DispatcherConfig[source]
- classmethod from_dict(d: Dict) DispatcherConfig[source]