1#ifndef GLOBAL_SUPERVISION_H
2#define GLOBAL_SUPERVISION_H
5#include "./elementary_supervision.h"
28 const std::vector<ElementarySupervision *> mSupervisors;
40 std::initializer_list<ElementarySupervision *> supervisors);
A class to report the global supervision status based on several elementary supervisions.
Definition: global_supervision.h:26
GlobalSupervision(std::initializer_list< ElementarySupervision * > supervisors)
Constructor.
Definition: global_supervision.cpp:9
void SetCallback(std::function< void(SupervisionUpdate)> &&callback)
Set a callback to be invoked on the global supervision status change.
Definition: global_supervision.cpp:66
SupervisionStatus GetStatus() const noexcept
Get the supervision status.
Definition: global_supervision.cpp:61
SupervisionStatus
Supervision finite state machine status.
Definition: elementary_supervision.h:17
TypeOfSupervision
Supervision algorithm type.
Definition: recovery_action.h:14
Supervision update on global status.
Definition: global_supervision.h:15
TypeOfSupervision type
Dominant supervision method that determined the global status.
Definition: global_supervision.h:20
SupervisionStatus status
Updated supervision status.
Definition: global_supervision.h:17