Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
stopped_state.h
1#ifndef STOPPED_STATE_H
2#define STOPPED_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 StoppedState() = delete;
37 StoppedState(const StoppedState &) = delete;
38 StoppedState &operator=(const StoppedState &) = 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 state when the service is stopped.
Definition: stopped_state.h:19
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: stopped_state.cpp:38
void Deactivate(helper::SdClientState nextState) override
Deactivating the current state before transiting to the next state.
Definition: stopped_state.cpp:46
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24