BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
EventDispatcher.cpp
Go to the documentation of this file.
1
#include "
EventDispatcher.h
"
2
#include "
Mediator.h
"
3
4
using namespace
BPMNOS::Execution
;
5
6
void
EventDispatcher::connect
(
Mediator
* mediator) {
7
mediator->
subscribe
(
this
);
8
}
9
10
void
EventDispatcher::notice
([[maybe_unused]]
Event
* event) {
11
//std::cerr << "Notice pending event for token at node " << event->token->node->id << std::endl;
12
};
13
EventDispatcher.h
Mediator.h
BPMNOS::Execution::EventDispatcher::notice
virtual void notice(Event *event)
Definition
EventDispatcher.cpp:10
BPMNOS::Execution::EventDispatcher::connect
virtual void connect(Mediator *mediator)
Definition
EventDispatcher.cpp:6
BPMNOS::Execution::EventListener::subscribe
void subscribe(EventDispatcher *eventDispatcher)
Definition
EventListener.cpp:7
BPMNOS::Execution
Definition
Controller.h:9
BPMNOS::Execution::Event
Definition
Event.h:14
BPMNOS::Execution::Mediator
Represents an abstract base class for a class that is an event listener and notifier.
Definition
Mediator.h:13