simulation.src.simulation_evaluation.src.state_machine.state_machines.priority module¶
PriorityStateMachine keeps track of stoping or halting in front of stop or halt lines.
See simulation.src.simulation_evaluation.src.state_machine.states.priority for
implementation details of the states used in this StateMachine.
Reference¶
-
class
PriorityStateMachine(callback: Callable[], None])[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.state_machines.state_machine.StateMachineKeep track of stoping and halting in front of stop or halt lines.
-
off: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.priority.Off object>¶ Default state
-
in_stop_zone: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.priority.InStopZone object>¶ The car is inside a stop zone
-
in_halt_zone: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.priority.InHaltZone object>¶ The car is inside a halt zone
-
successfully_stopped: State = <simulation.src.simulation_evaluation.src.state_machine.states.priority.SuccessfullyStopped object>¶ The car successfully stopes in the stop zone
-
failure_in_stop_zone: State = <simulation.src.simulation_evaluation.src.state_machine.states.priority.FailureInStopZone object>¶ End state when the car does not stop inside the stop zone
-