Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::diag::OperationCycle Class Reference

A class for handling a monitoring operation cycle. More...

#include <operation_cycle.h>

Public Member Functions

 OperationCycle (const ara::core::InstanceSpecifier &specifier)
 Constructor. More...
 
ara::core::Result< void > SetNotifier (std::function< void()> notifier)
 Set a callback to be invoked when the operation cycle is restarted. More...
 
ara::core::Result< void > RestartOperationCycle ()
 Restart the operation cycle. More...
 

Detailed Description

A class for handling a monitoring operation cycle.

Constructor & Destructor Documentation

◆ OperationCycle()

ara::diag::OperationCycle::OperationCycle ( const ara::core::InstanceSpecifier specifier)
explicit

Constructor.

Parameters
specifierInstance specifier that owns the operation cycle

Member Function Documentation

◆ RestartOperationCycle()

ara::core::Result< void > ara::diag::OperationCycle::RestartOperationCycle ( )

Restart the operation cycle.

Returns
No error

◆ SetNotifier()

ara::core::Result< void > ara::diag::OperationCycle::SetNotifier ( std::function< void()>  notifier)

Set a callback to be invoked when the operation cycle is restarted.

Parameters
notifierCallback to be invoked after the operation cycle restart
Returns
No error
See also
RestartOperationCycle