Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
client_repetition_state.h
1#ifndef CLIENT_REPETITION_STATE_H
2#define CLIENT_REPETITION_STATE_H
3
4#include "./client_service_state.h"
5#include "./repetition_state.h"
6
7namespace ara
8{
9 namespace com
10 {
11 namespace someip
12 {
13 namespace sd
14 {
15 namespace fsm
16 {
18 class ClientRepetitionState : public ClientServiceState, public RepetitionState<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 uint32_t repetitionsMax,
34 int repetitionsBaseDelay);
35
36 ClientRepetitionState() = delete;
38 ClientRepetitionState &operator=(const ClientRepetitionState &) = delete;
39 };
40 }
41 }
42 }
43 }
44}
45
46#endif
Time To Live countdown timer.
Definition: ttl_timer.h:17
Client's service repetition state.
Definition: client_repetition_state.h:19
void Activate(helper::SdClientState previousState) override
Activate the state.
Definition: client_repetition_state.cpp:28
void SetTimer() override
Set the phase time on state activation.
Definition: client_repetition_state.cpp:35
Abstract client's service state.
Definition: client_service_state.h:21
Server's or client's service repetition state.
Definition: repetition_state.h:24
SdClientState
Service discovery client machine state.
Definition: machine_state.h:24