Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
main_state.h
1#ifndef MAIN_STATE_H
2#define MAIN_STATE_H
3
4#include "./timer_set_state.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace sd
13 {
14 namespace fsm
15 {
18 class MainState : public TimerSetState<helper::SdServerState>
19 {
20 private:
21 const std::chrono::milliseconds mCyclicOfferDelay;
22
23 protected:
24 void SetTimer() override;
25
26 public:
31 std::function<void()> onTimerExpired,
32 int cyclicOfferDelay);
33
34 MainState() = delete;
35 MainState(const MainState &) = delete;
36 MainState &operator=(const MainState &) = delete;
37 };
38 }
39 }
40 }
41 }
42}
43
44#endif
Server's main state.
Definition: main_state.h:19
void SetTimer() override
Set the phase time on state activation.
Definition: main_state.cpp:30
Server's or client's service timer set state.
Definition: timer_set_state.h:24