Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::helper::AbstractStateMachine< T > Class Template Referenceabstract

Abstract Finite State Machine (FMS) that transits between states. More...

#include <abstract_state_machine.h>

Inheritance diagram for ara::com::helper::AbstractStateMachine< T >:
ara::com::helper::FiniteStateMachine< T >

Public Member Functions

virtual void Transit (T previousState, T nextState)=0
 Tranit from the current state to a new state. More...
 

Detailed Description

template<typename T>
class ara::com::helper::AbstractStateMachine< T >

Abstract Finite State Machine (FMS) that transits between states.

Template Parameters
TState enumeration type

Member Function Documentation

◆ Transit()

template<typename T >
virtual void ara::com::helper::AbstractStateMachine< T >::Transit ( previousState,
nextState 
)
pure virtual

Tranit from the current state to a new state.

Parameters
previousStatePrevious state that the FSM is transiting from
nextStateNext state that the FSM is transiting to

Implemented in ara::com::helper::FiniteStateMachine< T >.