Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
service_notseen_state.h
1#ifndef SERVICE_NOTSEEN_STATE_H
2#define SERVICE_NOTSEEN_STATE_H
3
4#include "./client_service_state.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace sd
13 {
14 namespace fsm
15 {
20 {
21 private:
22 std::condition_variable *const mConditionVariable;
23 bool mDisposing;
24 bool mEverRequested;
25
26 helper::SdClientState waitForNextState();
27
28 protected:
29 void Deactivate(helper::SdClientState nextState) override;
30
31 public:
36 helper::TtlTimer *ttlTimer,
37 std::condition_variable *conditionVariable) noexcept;
38
39 ServiceNotseenState() = delete;
41 ServiceNotseenState &operator=(const ServiceNotseenState &) = delete;
42
43 void Activate(helper::SdClientState previousState) override;
44
47 void RequestService();
48
52 void Dispose() noexcept;
53 };
54 }
55 }
56 }
57 }
58}
59
60#endif
Time To Live countdown timer.
Definition: ttl_timer.h:17
Abstract client's service state.
Definition: client_service_state.h:21
Client's service state when the service is not seen.
Definition: service_notseen_state.h:20
void RequestService()
Request service client for the first time.
Definition: service_notseen_state.cpp:54
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: service_notseen_state.cpp:41
void Dispose() noexcept
Dispose the state to end the blocking caused by ServiceRequested.
Definition: service_notseen_state.cpp:61
void Deactivate(helper::SdClientState nextState) override
Deactivating the current state before transiting to the next state.
Definition: service_notseen_state.cpp:66
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24