simulation.src.simulation_evaluation.src.state_machine.states.priority module

States used in the PriorityStateMachine.

Summary

Classes:

FailureInStopZone

This end state occurs when the car does not stop inside the stop zone.

InHaltZone

This state occurs when the car drives inside a halt zone.

InStopZone

This state occurs when the car drives into a stop zone.

Off

This state is the default state.

SuccessfullyStopped

This state occurs when the car stops in the stop zone.

Reference

class Off[source]

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

This state is the default state.

Once the state machine receives this state, the next state will we chage accordingly to its next method.

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 state. If no state change was detected here, check for failure state before returning this state.

class InHaltZone[source]

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

This state occurs when the car drives inside a halt zone.

Once the state machine receives this state, the next state will we chage accordingly to its next method.

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 state. If no state change was detected here, check for failure state before returning this state.

class InStopZone[source]

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

This state occurs when the car drives into a stop zone.

Once the state machine receives this state, the next state will we chage accordingly to its next method.

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 state. If no state change was detected here, check for failure state before returning this state.

class SuccessfullyStopped[source]

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

This state occurs when the car stops in the stop zone.

Once the state machine receives this state, the next state will we chage accordingly to its next method.

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 state. If no state change was detected here, check for failure state before returning this state.

class FailureInStopZone[source]

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

This end state occurs when the car does not stop inside the stop zone.

Once the state machine receives this state, the state can no longer change into a new one.