1#ifndef RECOVERY_ACTION_H
2#define RECOVERY_ACTION_H
4#include "../core/result.h"
5#include "../core/instance_specifier.h"
6#include "../exec/execution_error_event.h"
AUTOSAR shortname-path wrapper.
Definition: instance_specifier.h:14
A wrapper around the callee's return value and its possible error.
Definition: result.h:16
An abstract class to wrap the action for recovering a supervised entity.
Definition: recovery_action.h:24
void StopOffer() noexcept
Stop offering the recovery action.
Definition: recovery_action.cpp:31
virtual void RecoveryHandler(const exec::ExecutionErrorEvent &executionError, TypeOfSupervision supervision)=0
Perform the action to handle the recovery.
core::Result< void > Offer()
Start offering the recovery action.
Definition: recovery_action.cpp:24
bool IsOffered() const noexcept
Indicate whether the action has been already offered or not.
Definition: recovery_action.cpp:19
RecoveryAction(const core::InstanceSpecifier &instance)
Constructor.
Definition: recovery_action.cpp:7
TypeOfSupervision
Supervision algorithm type.
Definition: recovery_action.h:14
@ DeadlineSupervision
!< Supervision by measuring the time interval of a single checkpoint
@ LogicalSupervision
!< Supervision by measuring the time difference between two checkpoints
Undefined Function Group State event argument.
Definition: execution_error_event.h:15