A class to report the global supervision status based on several elementary supervisions.
More...
#include <global_supervision.h>
A class to report the global supervision status based on several elementary supervisions.
- See also
- ElementarySupervision
◆ GlobalSupervision()
ara::phm::supervisors::GlobalSupervision::GlobalSupervision |
( |
std::initializer_list< ElementarySupervision * > |
supervisors | ) |
|
|
explicit |
Constructor.
- Parameters
-
supervisors | A list of elementary supervision pointers |
◆ GetStatus()
Get the supervision status.
- Returns
- Current global supervision status
◆ SetCallback()
void ara::phm::supervisors::GlobalSupervision::SetCallback |
( |
std::function< void(SupervisionUpdate)> && |
callback | ) |
|
Set a callback to be invoked on the global supervision status change.
- Parameters
-
callback | On supervision status changed callback |