Machine state when the server's service is down or stopped. More...
#include <notready_state.h>
Public Member Functions | |
NotReadyState (std::function< void()> onServiceStopped) | |
Constructor. More... | |
NotReadyState (const NotReadyState &)=delete | |
NotReadyState & | operator= (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 | |
MachineState & | operator= (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... | |
Machine state when the server's service is down or stopped.
ara::com::someip::sd::fsm::NotReadyState::NotReadyState | ( | std::function< void()> | onServiceStopped | ) |
Constructor.
onServiceStopped | Callback to be invoked when the service is stopped |
|
overridevirtual |
Activate the state.
previousState | Previous state before transiting to this state |
Implements ara::com::helper::MachineState< helper::SdServerState >.
|
overrideprotectedvirtual |
Deactivating the current state before transiting to the next state.
nextState | Next state coming after deactivation |
Implements ara::com::helper::MachineState< helper::SdServerState >.