A class that models an instance of an Adaptive (Platform) Application executable. More...
#include <modelled_process.h>
Public Member Functions | |
| void | Initialize (const std::map< std::string, std::string > &arguments) |
| Initialize the process model to run the main block. More... | |
| int | Terminate () |
| Terminate the process model. More... | |
Protected Member Functions | |
| ModelledProcess (std::string appId, AsyncBsdSocketLib::Poller *poller) | |
| Constructor. More... | |
| virtual int | Main (const std::atomic_bool *cancellationToken, const std::map< std::string, std::string > &arguments)=0 |
| Main running block of the process. More... | |
| void | Log (log::LogLevel logLevel, const log::LogStream &logStream) |
| Log a steam. More... | |
| bool | WaitForActivation () |
| Wait for the next main function activation cycle. More... | |
Static Protected Attributes | |
| static const log::LogLevel | cLogLevel {log::LogLevel::kInfo} |
| Information severity log level. | |
| static const log::LogLevel | cErrorLevel {log::LogLevel::kError} |
| Error severity log level. | |
A class that models an instance of an Adaptive (Platform) Application executable.
|
protected |
Constructor.
| appId | Modelled process application ID for logging |
| poller | Global poller for network communication |
| void ara::exec::helper::ModelledProcess::Initialize | ( | const std::map< std::string, std::string > & | arguments | ) |
Initialize the process model to run the main block.
| arguments | Initialization arguments keys and their corresponding values |
|
protected |
Log a steam.
| logLevel | Stream log severity level |
| logStream | Stream to be logged |
|
protectedpure virtual |
Main running block of the process.
| arguments | Initialization arguments keys and their corresponding values |
| cancellationToken | Token to be for cancelling the main cycle |
Implemented in application::ExtendedVehicle, application::platform::DiagnosticManager, application::platform::ExecutionManagement, application::platform::PlatformHealthManagement, and application::platform::StateManagement.
| int ara::exec::helper::ModelledProcess::Terminate | ( | ) |
Terminate the process model.
|
protected |
Wait for the next main function activation cycle.