simulation.src.simulation_evaluation.src.state_machine.states.lane module

States used in the LaneStateMachine.

Summary

Classes:

FailureBlockedArea

This end state occurs when the car drives onto a blocked area.

FailureCollision

This end state occurs when the car crashed into an obstacle.

FailureOffRoad

This end state occurs when the car drives of the road.

LaneState

State that recognizes off road/collision failures.

Left

The car drives in the left lane.

ParkingLeft

The car parks on the left side.

ParkingRight

The car parks on the right side.

Right

The car drives in the right lane.

Reference

class FailureCollision[source]

Bases: simulation.src.simulation_evaluation.src.state_machine.states.state.State

This 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.State

This end state occurs when the car drives onto a blocked area.

class FailureOffRoad[source]

Bases: simulation.src.simulation_evaluation.src.state_machine.states.state.State

This 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.State

State 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.LaneState

The 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.LaneState

The car parks on the right side.

next(state_machine, input_msg: int)[source]

Return new state.

class Left[source]

Bases: simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneState

The car drives in the left lane.

next(state_machine, input_msg: int)[source]

Return new state.

class ParkingLeft[source]

Bases: simulation.src.simulation_evaluation.src.state_machine.states.lane.LaneState

The car parks on the left side.

next(state_machine, input_msg: int)[source]

Return new state.