BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
Notifier.cpp
Go to the documentation of this file.
1#include "Notifier.h"
2
3using namespace BPMNOS::Execution;
4
5
7 subscribers.resize((size_t)Observable::Type::Count);
8}
9
10void Notifier::notify(const Observable* observable) const {
11 for ( auto subscriber : subscribers[(size_t)observable->getObservableType()] ) {
12 subscriber->notice(observable);
13 }
14}
15
16void Notifier::notify(const Observable& observable) const {
17 notify(&observable);
18}
void notify(const Observable *observable) const
Definition Notifier.cpp:10
virtual constexpr Type getObservableType() const =0