Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::exec::ExecutionClient Class Referencefinal

Class that enables an adaptive application to interact with Execution Management. More...

#include <execution_client.h>

Public Member Functions

 ExecutionClient (core::InstanceSpecifier instanceSpecifier, com::someip::rpc::RpcClient *rpcClient, int64_t timeout=30)
 Constructor. More...
 
ara::core::Result< void > ReportExecutionState (ExecutionState state) const
 Report the application internal state to Execution Management. More...
 

Detailed Description

Class that enables an adaptive application to interact with Execution Management.

Constructor & Destructor Documentation

◆ ExecutionClient()

ara::exec::ExecutionClient::ExecutionClient ( core::InstanceSpecifier  instanceSpecifier,
com::someip::rpc::RpcClient rpcClient,
int64_t  timeout = 30 
)

Constructor.

Parameters
instanceSpecifierAdaptive application instance shortname-path
rpcClientRPC client abstraction layer
timeoutRPC request timeout in seconds
Exceptions
std::invalid_argumentThrows when timeout is not positive

Member Function Documentation

◆ ReportExecutionState()

ara::core::Result< void > ara::exec::ExecutionClient::ReportExecutionState ( ExecutionState  state) const

Report the application internal state to Execution Management.

Parameters
stateApplication current internal state
Returns
Void Result if the state reporting was successful, otherwise a Result containing the occurred error