nrel.hive.dispatcher.instruction_generator.charging_fleet_manager
Module Contents
Classes
A manager that instructs vehicles to charge if they fall below an SOC threshold. |
Attributes
- class nrel.hive.dispatcher.instruction_generator.charging_fleet_manager.ChargingFleetManager[source]
Bases:
nrel.hive.dispatcher.instruction_generator.instruction_generator.InstructionGeneratorA manager that instructs vehicles to charge if they fall below an SOC threshold.
- generate_instructions(simulation_state: nrel.hive.state.simulation_state.simulation_state.SimulationState, environment: nrel.hive.runner.environment.Environment) Tuple[ChargingFleetManager, Tuple[nrel.hive.dispatcher.instruction.instruction.Instruction, Ellipsis]][source]
Generate fleet targets for the dispatcher to execute based on the simulation state.
- Parameters:
simulation_state – The current simulation state
environment – The simulation environment
- Returns:
the updated ChargingFleetManager along with instructions