BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
EventListener.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_EventListener_H
2#define BPMNOS_Execution_EventListener_H
3
4#include "Event.h"
5#include "SystemState.h"
6
7namespace BPMNOS::Execution {
8
9class EventDispatcher;
10
12public:
13 void subscribe(EventDispatcher* eventDispatcher);
14protected:
15 std::shared_ptr<Event> fetchEvent(SystemState* systemState);
16 std::vector<EventDispatcher*> eventDispatchers;
17};
18
19} // namespace BPMNOS::Execution
20
21#endif // BPMNOS_Execution_EventListener_H
void subscribe(EventDispatcher *eventDispatcher)
std::shared_ptr< Event > fetchEvent(SystemState *systemState)
std::vector< EventDispatcher * > eventDispatchers
A class representing the state that the execution or simulation of a given scenario is in.
Definition SystemState.h:21