Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::someip::sd::fsm::NotReadyState Class Reference

Machine state when the server's service is down or stopped. More...

#include <notready_state.h>

Inheritance diagram for ara::com::someip::sd::fsm::NotReadyState:
ara::com::helper::MachineState< helper::SdServerState >

Public Member Functions

 NotReadyState (std::function< void()> onServiceStopped)
 Constructor. More...
 
 NotReadyState (const NotReadyState &)=delete
 
NotReadyStateoperator= (const NotReadyState &)=delete
 
void Activate (helper::SdServerState previousState) override
 Activate the state. More...
 
void ServiceActivated ()
 Inform the state that the server's service is up.
 
- Public Member Functions inherited from ara::com::helper::MachineState< helper::SdServerState >
 MachineState (const MachineState &)=delete
 
MachineStateoperator= (const MachineState &)=delete
 
helper::SdServerState GetState () const noexcept
 Get the machine state. More...
 
void Register (AbstractStateMachine< helper::SdServerState > *finiteStateMachine) noexcept
 Register the state to a finite state machine (FSM) More...
 

Protected Member Functions

void Deactivate (helper::SdServerState nextState) override
 Deactivating the current state before transiting to the next state. More...
 
- Protected Member Functions inherited from ara::com::helper::MachineState< helper::SdServerState >
void Transit (helper::SdServerState nextState)
 Transit to the next state. More...
 
 MachineState (helper::SdServerState state) noexcept
 Constructor. More...
 

Detailed Description

Machine state when the server's service is down or stopped.

Note
The state is not copyable

Constructor & Destructor Documentation

◆ NotReadyState()

ara::com::someip::sd::fsm::NotReadyState::NotReadyState ( std::function< void()>  onServiceStopped)

Constructor.

Parameters
onServiceStoppedCallback to be invoked when the service is stopped

Member Function Documentation

◆ Activate()

void ara::com::someip::sd::fsm::NotReadyState::Activate ( helper::SdServerState  previousState)
overridevirtual

Activate the state.

Parameters
previousStatePrevious state before transiting to this state

Implements ara::com::helper::MachineState< helper::SdServerState >.

◆ Deactivate()

void ara::com::someip::sd::fsm::NotReadyState::Deactivate ( helper::SdServerState  nextState)
overrideprotectedvirtual

Deactivating the current state before transiting to the next state.

Parameters
nextStateNext state coming after deactivation

Implements ara::com::helper::MachineState< helper::SdServerState >.