Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::phm::supervisors::DeadlineSupervision Class Reference

Supervision method to check an entity aliveness via the source and target checkpoints. More...

#include <deadline_supervision.h>

Inheritance diagram for ara::phm::supervisors::DeadlineSupervision:
ara::phm::supervisors::ElementarySupervision

Public Member Functions

 DeadlineSupervision (std::chrono::milliseconds minDeadline, std::chrono::milliseconds maxDeadline)
 Constructor. More...
 
void ReportSourceCheckpoint ()
 Report the occurrence of the source checkpoint.
 
void ReportTargetCheckpoint ()
 Report the occurrence of the target checkpoint.
 
- Public Member Functions inherited from ara::phm::supervisors::ElementarySupervision
SupervisionStatus GetStatus () const noexcept
 Get the supervision status. More...
 
TypeOfSupervision GetType () const noexcept
 Get the type of supervision. More...
 
void SetCallback (std::function< void(SupervisionStatus)> &&callback)
 Set a callback to be invoked on the supervision status change. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ara::phm::supervisors::ElementarySupervision
 ElementarySupervision (TypeOfSupervision supervisionType) noexcept
 Constructor. More...
 
void Report (SupervisionStatus status)
 Report the new supervision status. More...
 

Detailed Description

Supervision method to check an entity aliveness via the source and target checkpoints.

Constructor & Destructor Documentation

◆ DeadlineSupervision()

ara::phm::supervisors::DeadlineSupervision::DeadlineSupervision ( std::chrono::milliseconds  minDeadline,
std::chrono::milliseconds  maxDeadline 
)

Constructor.

Parameters
minDeadlineSource to target checkpoint transition checkpoint mimimum deadline
maxDeadlineSource to target checkpoint transition checkpoint maximum deadline
Exceptions
std::invalid_argumentThrown when the deadline values are invalid