BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
ConditionalEventObserver.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_ConditionalEventObserver_H
2#define BPMNOS_Execution_ConditionalEventObserver_H
3
4#include "Observable.h"
5#include "Observer.h"
6#include "DataUpdate.h"
8
9namespace BPMNOS::Execution {
10
11class SystemState;
12class Token;
13
15public:
17 void notice(const Observable* observable) override;
18protected:
20 void triggerConditionalEvent(const DataUpdate* dataUpdate, auto_list< std::weak_ptr<Token> >& waitingTokens);
21};
22
23} // namespace BPMNOS::Execution
24#endif // BPMNOS_Execution_ConditionalEventObserver_H
void notice(const Observable *observable) override
void triggerConditionalEvent(const DataUpdate *dataUpdate, auto_list< std::weak_ptr< Token > > &waitingTokens)
A class representing the state that the execution or simulation of a given scenario is in.
Definition SystemState.h:21
List of tuples with automatic removal of tuples containing an expired weak_ptr.
Definition auto_list.h:15