simulation.src.simulation_evaluation.src.state_machine.state_machines.parking module

ParkingStateMachine keeps track of parking.

See simulation.src.simulation_evaluation.src.state_machine.states.parking for implementation details of the states used in this StateMachine.

Summary

Classes:

ParkingStateMachine

Keep track of parking.

Reference

class ParkingStateMachine(callback: Callable[], None])[source]

Bases: simulation.src.simulation_evaluation.src.state_machine.state_machines.state_machine.StateMachine

Keep track of parking.

off: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.Off object>

Default state

in_parking_zone: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.InParkingZone object>

The car is inside a parking zone

parking_attempt: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.ParkingAttempt object>

The car starts an attempt to park in

parking: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.Parking object>

The car drives into a parking space

successfully_parked: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.SuccessfullyParked object>

The car successfully parkes inside a parking space

parking_out: ActiveState = <simulation.src.simulation_evaluation.src.state_machine.states.parking.ParkingOut object>

The car drives out of the parkin space

failure_in_right: State = <simulation.src.simulation_evaluation.src.state_machine.states.parking.FailureInRightLane object>

End state when the car drives in the right lane when it’s not allowed to

failure_in_left: State = <simulation.src.simulation_evaluation.src.state_machine.states.parking.FailureInLeftLane object>

End state when the car drives in the left lane when it’s not allowed to