Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
service_seen_state.h
1#ifndef SERVICE_SEEN_STATE_H
2#define SERVICE_SEEN_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 {
19 {
20 private:
21 std::condition_variable *const mConditionVariable;
22
23 helper::SdClientState waitForNextState();
24
25 protected:
26 void Deactivate(helper::SdClientState nextState) override;
27
28 public:
33 helper::TtlTimer *ttlTimer,
34 std::condition_variable *conditionVariable) noexcept;
35
36 ServiceSeenState() = delete;
37 ServiceSeenState(const ServiceSeenState &) = delete;
38 ServiceSeenState &operator=(const ServiceSeenState &) = delete;
39
40 void Activate(helper::SdClientState previousState) override;
41 };
42 }
43 }
44 }
45 }
46}
47
48#endif
Time To Live countdown timer.
Definition: ttl_timer.h:17
Abstract client's service state.
Definition: client_service_state.h:21
Client's state when the service is seen (up) but not requested.
Definition: service_seen_state.h:19
void Deactivate(helper::SdClientState nextState) override
Deactivating the current state before transiting to the next state.
Definition: service_seen_state.cpp:51
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: service_seen_state.cpp:44
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24