Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
execution_management.h
1#ifndef EXECUTION_MANAGEMENT_H
2#define EXECUTION_MANAGEMENT_H
3
4#include <set>
5#include "../../ara/exec/state_server.h"
6#include "../helper/fifo_checkpoint_communicator.h"
7#include "../extended_vehicle.h"
8#include "./state_management.h"
9#include "./platform_health_management.h"
10#include "./diagnostic_manager.h"
11
13namespace application
14{
16 namespace platform
17 {
20 {
21 private:
22 static const std::string cAppId;
23 static const std::string cFifoPath;
24 const std::string cMachineFunctionGroup{"MachineFG"};
25
27 StateManagement mStateManagement;
28 PlatformHealthManagement mPlatformHealthManager;
29 ExtendedVehicle mExtendedVehicle;
30 DiagnosticManager mDiagnosticManager;
31 ara::exec::StateServer *mStateServer;
32
33 static helper::RpcConfiguration getRpcConfiguration(
34 const std::string &configFilepath);
35
36 static void fillFunctionGroupStates(
37 std::string functionGroupShortName,
38 const std::string &functionGroupContent,
39 std::set<std::pair<std::string, std::string>> &functionGroupStates);
40
41 static void fillInitialStates(
42 std::string functionGroupShortName,
43 const std::string &functionGroupContent,
44 std::map<std::string, std::string> &initialStates);
45
46 static void fillStates(
47 const std::string &configFilepath,
48 std::set<std::pair<std::string, std::string>> &functionGroupStates,
49 std::map<std::string, std::string> &initialStates);
50
51 void onStateChange(
52 const std::map<std::string, std::string> &arguments);
53
54 protected:
55 int Main(
56 const std::atomic_bool *cancellationToken,
57 const std::map<std::string, std::string> &arguments) override;
58
59 public:
62 explicit ExecutionManagement(AsyncBsdSocketLib::Poller *poller);
63
64 ~ExecutionManagement() override;
65 };
66 }
67}
68
69#endif
Volvo extended vehicle adaptive application.
Definition: extended_vehicle.h:23
Supervision checkpoint communicator over the FIFO medium.
Definition: fifo_checkpoint_communicator.h:17
Diagnostic Manager (DM) functional cluster.
Definition: diagnostic_manager.h:18
Execution managment modelled process.
Definition: execution_management.h:20
int Main(const std::atomic_bool *cancellationToken, const std::map< std::string, std::string > &arguments) override
Main running block of the process.
Definition: execution_management.cpp:133
ExecutionManagement(AsyncBsdSocketLib::Poller *poller)
Constructor.
Definition: execution_management.cpp:13
Platform health managment modelled process.
Definition: platform_health_management.h:19
State managment modelled process.
Definition: state_management.h:16
A class to handle the state client requests at the EM side.
Definition: state_server.h:20
A class that models an instance of an Adaptive (Platform) Application executable.
Definition: modelled_process.h:20
AUTOSAR application namespace.
Definition: diag_message_handler.cpp:5
Data model for a remote procedure call connection configuration.
Definition: rpc_configuration.h:22