Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::someip::pubsub::fsm::SubscribedState Class Reference

Machine state in which the service is up and it has at least a subscriber. More...

#include <subscribed_state.h>

Inheritance diagram for ara::com::someip::pubsub::fsm::SubscribedState:
ara::com::helper::MachineState< helper::PubSubState >

Public Member Functions

 SubscribedState () noexcept
 Default constructor.
 
 SubscribedState (const SubscribedState &)=delete
 
SubscribedStateoperator= (const SubscribedState &)=delete
 
void Activate (helper::PubSubState previousState) override
 Activate the state. More...
 
void Subscribed () noexcept
 Notify that a new client has subscribed to the server.
 
void Unsubscribed ()
 Notify that a new client has unsubscribed from 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
 
MachineStateoperator= (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...
 

Detailed Description

Machine state in which the service is up and it has at least a subscriber.

Member Function Documentation

◆ Activate()

void ara::com::someip::pubsub::fsm::SubscribedState::Activate ( helper::PubSubState  previousState)
overridevirtual

Activate the state.

Parameters
previousStatePrevious state before transiting to this state

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

◆ Deactivate()

void ara::com::someip::pubsub::fsm::SubscribedState::Deactivate ( helper::PubSubState  nextState)
overrideprotectedvirtual

Deactivating the current state before transiting to the next state.

Parameters
nextStateNext state coming after deactivation

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