nrel.hive.dispatcher.instruction_generator.charging_fleet_manager

Module Contents

Classes

ChargingFleetManager

A manager that instructs vehicles to charge if they fall below an SOC threshold.

Attributes

log

nrel.hive.dispatcher.instruction_generator.charging_fleet_manager.log[source]
class nrel.hive.dispatcher.instruction_generator.charging_fleet_manager.ChargingFleetManager[source]

Bases: nrel.hive.dispatcher.instruction_generator.instruction_generator.InstructionGenerator

A manager that instructs vehicles to charge if they fall below an SOC threshold.

config: nrel.hive.config.dispatcher_config.DispatcherConfig
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