simulation.src.simulation_evaluation.src.state_machine.states.lane module¶
States used in the LaneStateMachine.
Summary¶
Classes:
This end state occurs when the car drives onto a blocked area. |
|
This end state occurs when the car crashed into an obstacle. |
|
This end state occurs when the car drives of the road. |
|
State that recognizes off road/collision failures. |
|
The car drives in the left lane. |
|
The car parks on the left side. |
|
The car parks on the right side. |
|
The car drives in the right lane. |
Reference¶
-
class
FailureCollision[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.state.StateThis end state occurs when the car crashed into an obstacle.
Once the state machine receives this state, the state can no longer change into a new one.
-
class
FailureBlockedArea[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.state.StateThis end state occurs when the car drives onto a blocked area.
-
class
FailureOffRoad[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.state.StateThis end state occurs when the car drives of the road.
Once the state machine receives this state, the state can no longer change into a new one.
-
class
LaneState(description: str, value: int)[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.state.StateState that recognizes off road/collision failures.
-
next(state_machine: simulation.src.simulation_evaluation.src.state_machine.state_machines.state_machine.StateMachine, input_msg: int)[source]¶ Next state.
- Parameters
state_machine – On which state machine the states gets executed
input_msg – Integer of message
- Returns
Class object of next failure state or defaults to self if no failure state was detected.
-
-
class
Right[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneStateThe car drives in the right lane.
-
next(state_machine, input_msg: int) → simulation.src.simulation_evaluation.src.state_machine.states.state.State[source]¶ Return new state.
-
-
class
ParkingRight[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneStateThe car parks on the right side.
-
class
Left[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneStateThe car drives in the left lane.
-
class
ParkingLeft[source]¶ Bases:
simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneStateThe car parks on the left side.