Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
service_down_state.h
1#ifndef SERVICE_DOWN_STATE_H
2#define SERVICE_DOWN_STATE_H
3
4#include "../../../helper/machine_state.h"
5
6namespace ara
7{
8 namespace com
9 {
10 namespace someip
11 {
12 namespace pubsub
13 {
14 namespace fsm
15 {
17 class ServiceDownState : public helper::MachineState<helper::PubSubState>
18 {
19 protected:
20 void Deactivate(helper::PubSubState nextState) override;
21
22 public:
23 ServiceDownState() noexcept;
24
25 ServiceDownState(const ServiceDownState &) = delete;
26 ServiceDownState &operator=(const ServiceDownState &) = delete;
27
28 void Activate(helper::PubSubState previousState) override;
29
31 void Started();
32 };
33 }
34 }
35 }
36 }
37}
38
39#endif
Machine state abstract class.
Definition: machine_state.h:46
Machine state in which the service is down.
Definition: service_down_state.h:18
void Activate(helper::PubSubState previousState) override
Activate the state.
Definition: service_down_state.cpp:17
void Deactivate(helper::PubSubState nextState) override
Deactivating the current state before transiting to the next state.
Definition: service_down_state.cpp:27
void Started()
Notify that the server has been started.
Definition: service_down_state.cpp:22
PubSubState
Publish-subscribe server machine state.
Definition: machine_state.h:35