Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
notready_state.h
1#ifndef NOTREADY_STATE_H
2#define NOTREADY_STATE_H
3
4#include "../../../helper/machine_state.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace sd
13 {
14 namespace fsm
15 {
18 class NotReadyState : public helper::MachineState<helper::SdServerState>
19 {
20 private:
21 const std::function<void()> mOnServiceStopped;
22
23 protected:
24 void Deactivate(helper::SdServerState nextState) override;
25
26 public:
29 NotReadyState(std::function<void()> onServiceStopped);
30
31 NotReadyState() = delete;
32 NotReadyState(const NotReadyState &) = delete;
33 NotReadyState &operator=(const NotReadyState &) = delete;
34
35 void Activate(helper::SdServerState previousState) override;
36
38 void ServiceActivated();
39 };
40 }
41 }
42 }
43 }
44}
45
46#endif
Machine state abstract class.
Definition: machine_state.h:46
Machine state when the server's service is down or stopped.
Definition: notready_state.h:19
void ServiceActivated()
Inform the state that the server's service is up.
Definition: notready_state.cpp:29
void Deactivate(helper::SdServerState nextState) override
Deactivating the current state before transiting to the next state.
Definition: notready_state.cpp:34
void Activate(helper::SdServerState previousState) override
Activate the state.
Definition: notready_state.cpp:19
SdServerState
Service discovery server machine state.
Definition: machine_state.h:15