Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
service_ready_state.h
1#ifndef SERVICE_READY_STATE_H
2#define SERVICE_READY_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 ServiceReadyState() = delete;
37 ServiceReadyState(const ServiceReadyState &) = delete;
38 ServiceReadyState &operator=(const ServiceReadyState &) = 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 requested and also up.
Definition: service_ready_state.h:19
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: service_ready_state.cpp:49
void Deactivate(helper::SdClientState nextState) override
Deactivating the current state before transiting to the next state.
Definition: service_ready_state.cpp:57
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24