Client's service state when the service is not seen. More...
#include <service_notseen_state.h>
Public Member Functions | |
ServiceNotseenState (helper::TtlTimer *ttlTimer, std::condition_variable *conditionVariable) noexcept | |
Constructor. More... | |
ServiceNotseenState (const ServiceNotseenState &)=delete | |
ServiceNotseenState & | operator= (const ServiceNotseenState &)=delete |
void | Activate (helper::SdClientState previousState) override |
Activate the state. More... | |
void | RequestService () |
Request service client for the first time. More... | |
void | Dispose () noexcept |
Dispose the state to end the blocking caused by ServiceRequested. More... | |
Public Member Functions inherited from ara::com::someip::sd::fsm::ClientServiceState | |
ClientServiceState (const ClientServiceState &)=delete | |
ClientServiceState & | operator= (const ClientServiceState &)=delete |
Public Member Functions inherited from ara::com::helper::MachineState< helper::SdClientState > | |
MachineState (const MachineState &)=delete | |
MachineState & | operator= (const MachineState &)=delete |
helper::SdClientState | GetState () const noexcept |
Get the machine state. More... | |
void | Register (AbstractStateMachine< helper::SdClientState > *finiteStateMachine) noexcept |
Register the state to a finite state machine (FSM) More... | |
Protected Member Functions | |
void | Deactivate (helper::SdClientState nextState) override |
Deactivating the current state before transiting to the next state. More... | |
Protected Member Functions inherited from ara::com::someip::sd::fsm::ClientServiceState | |
ClientServiceState (helper::TtlTimer *timer) | |
Constructor. More... | |
Protected Member Functions inherited from ara::com::helper::MachineState< helper::SdClientState > | |
void | Transit (helper::SdClientState nextState) |
Transit to the next state. More... | |
MachineState (helper::SdClientState state) noexcept | |
Constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ara::com::someip::sd::fsm::ClientServiceState | |
helper::TtlTimer *const | Timer |
Timer to handle service offer entry TTL. | |
Client's service state when the service is not seen.
The state happens when the client's service is not requested and also the server's service is down.
|
noexcept |
Constructor.
ttlTimer | Finite machine state global TTL timer pointer |
conditionVariable | Condition variable to be notified when the state activated |
|
overridevirtual |
Activate the state.
previousState | Previous state before transiting to this state |
Implements ara::com::helper::MachineState< helper::SdClientState >.
|
overrideprotectedvirtual |
Deactivating the current state before transiting to the next state.
nextState | Next state coming after deactivation |
Implements ara::com::helper::MachineState< helper::SdClientState >.
|
noexcept |
Dispose the state to end the blocking caused by ServiceRequested.
void ara::com::someip::sd::fsm::ServiceNotseenState::RequestService | ( | ) |
Request service client for the first time.