Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
client_initial_wait_state.h
1#ifndef CLIENT_INITIAL_WAIT_STATE_H
2#define CLIENT_INITIAL_WAIT_STATE_H
3
4#include "./client_service_state.h"
5#include "./initial_wait_state.h"
6
7namespace ara
8{
9 namespace com
10 {
11 namespace someip
12 {
13 namespace sd
14 {
15 namespace fsm
16 {
18 class ClientInitialWaitState : public ClientServiceState, public InitialWaitState<helper::SdClientState>
19 {
20 protected:
21 void Activate(helper::SdClientState previousState) override;
22 void SetTimer() override;
23
24 public:
31 helper::TtlTimer *ttlTimer,
32 std::function<void()> onTimerExpired,
33 int initialDelayMin,
34 int initialDelayMax);
35
36 ClientInitialWaitState() = delete;
38 ClientInitialWaitState &operator=(const ClientInitialWaitState &) = delete;
39 };
40 }
41 }
42 }
43 }
44}
45
46#endif
Time To Live countdown timer.
Definition: ttl_timer.h:17
Client's service initial wait state.
Definition: client_initial_wait_state.h:19
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: client_initial_wait_state.cpp:28
void SetTimer() override
Set the phase time on state activation.
Definition: client_initial_wait_state.cpp:35
Abstract client's service state.
Definition: client_service_state.h:21
Server's or client's service initial wait state.
Definition: initial_wait_state.h:24
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24