Class the enables State Management to interact with Execution Management. More...
#include <state_client.h>
Public Member Functions | |
| StateClient (std::function< void(const ExecutionErrorEvent &)> undefinedStateCallback, com::someip::rpc::RpcClient *rpcClient) | |
| Constructor. More... | |
| std::shared_future< void > | SetState (const FunctionGroupState &state) |
| Set a function group state. More... | |
| std::shared_future< void > | GetInitialMachineStateTransitionResult () |
| Push the EM to its start-up state. More... | |
| core::Result< ExecutionErrorEvent > | GetExecutionError (const FunctionGroup &functionGroup) noexcept |
| Get the execution error made the state of function group undefined. More... | |
Class the enables State Management to interact with Execution Management.
| ara::exec::StateClient::StateClient | ( | std::function< void(const ExecutionErrorEvent &)> | undefinedStateCallback, |
| com::someip::rpc::RpcClient * | rpcClient | ||
| ) |
Constructor.
| undefinedStateCallback | Callback to be invoked when a function group is unexpectedly terminated while state transition |
| rpcClient | RPC client abstraction layer |
|
noexcept |
Get the execution error made the state of function group undefined.
| functionGroup | Function group of interest |
| std::shared_future< void > ara::exec::StateClient::GetInitialMachineStateTransitionResult | ( | ) |
Push the EM to its start-up state.
| std::shared_future< void > ara::exec::StateClient::SetState | ( | const FunctionGroupState & | state | ) |
Set a function group state.
| state | Function group-state of interest combination |