Machine state in which the service is up but has no subscriber. More...
#include <notsubscribed_state.h>
Public Member Functions | |
NotSubscribedState (const NotSubscribedState &)=delete | |
NotSubscribedState & | operator= (const NotSubscribedState &)=delete |
void | Activate (helper::PubSubState previousState) override |
Activate the state. More... | |
void | Subscribed () |
Notify that a new client has subscribed to the server. | |
void | Stopped () |
Notify that the server has been stopped. | |
Public Member Functions inherited from ara::com::helper::MachineState< helper::PubSubState > | |
MachineState (const MachineState &)=delete | |
MachineState & | operator= (const MachineState &)=delete |
helper::PubSubState | GetState () const noexcept |
Get the machine state. More... | |
void | Register (AbstractStateMachine< helper::PubSubState > *finiteStateMachine) noexcept |
Register the state to a finite state machine (FSM) More... | |
Protected Member Functions | |
void | Deactivate (helper::PubSubState nextState) override |
Deactivating the current state before transiting to the next state. More... | |
Protected Member Functions inherited from ara::com::helper::MachineState< helper::PubSubState > | |
void | Transit (helper::PubSubState nextState) |
Transit to the next state. More... | |
MachineState (helper::PubSubState state) noexcept | |
Constructor. More... | |
Machine state in which the service is up but has no subscriber.
|
overridevirtual |
Activate the state.
previousState | Previous state before transiting to this state |
Implements ara::com::helper::MachineState< helper::PubSubState >.
|
overrideprotectedvirtual |
Deactivating the current state before transiting to the next state.
nextState | Next state coming after deactivation |
Implements ara::com::helper::MachineState< helper::PubSubState >.