nrel.hive.state.driver_state.autonomous_driver_state.autonomous_available

Module Contents

Classes

AutonomousAvailable

an autonomous driver that is available to work

Attributes

log

nrel.hive.state.driver_state.autonomous_driver_state.autonomous_available.log[source]
class nrel.hive.state.driver_state.autonomous_driver_state.autonomous_available.AutonomousAvailable[source]

Bases: nrel.hive.state.driver_state.driver_state.DriverState

an autonomous driver that is available to work

property schedule_id: nrel.hive.util.typealiases.ScheduleId | None
property available
property allows_pooling
property home_base_id: nrel.hive.util.BaseId | None
attributes: nrel.hive.state.driver_state.autonomous_driver_state.autonomous_driver_attributes.AutonomousDriverAttributes
generate_instruction(sim: nrel.hive.state.simulation_state.simulation_state.SimulationState, env: nrel.hive.runner.environment.Environment, previous_instructions: Tuple[nrel.hive.dispatcher.instruction.instruction.Instruction, Ellipsis] | None = None) nrel.hive.dispatcher.instruction.instruction.Instruction | None[source]

allows the driver state to issue an optional instruction for the vehicle considering all the previous instructions generated by the dispatcher

Parameters:
  • sim

  • env

  • previous_instructions

Returns:

update(sim: nrel.hive.state.simulation_state.simulation_state.SimulationState, env: nrel.hive.runner.environment.Environment) Tuple[Exception | None, nrel.hive.state.simulation_state.simulation_state.SimulationState | None][source]