BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
GreedyExit.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_GreedyExit_H
2#define BPMNOS_Execution_GreedyExit_H
3
4#include <bpmn++.h>
8
9namespace BPMNOS::Execution {
10
11/**
12 * @brief Class dispatching the first feasible exit event for a token awaiting the exit at an activity.
13 */
14class GreedyExit : public GreedyDispatcher< std::weak_ptr<const Token>, std::weak_ptr<const DecisionRequest> > {
15public:
17 void connect(Mediator* mediator) override;
18 void notice(const Observable* observable) override;
19 std::shared_ptr<Event> dispatchEvent( const SystemState* systemState ) override;
20};
21
22} // namespace BPMNOS::Execution
23
24#endif // BPMNOS_Execution_GreedyExit_H
25
Represents an abstract base class for an evaluator determining feasibility and reward of a decision.
Definition Evaluator.h:15
Class for dispatching the event with the best evaluation.
Class dispatching the first feasible exit event for a token awaiting the exit at an activity.
Definition GreedyExit.h:14
void notice(const Observable *observable) override
void connect(Mediator *mediator) override
GreedyExit(Evaluator *evaluator)
Definition GreedyExit.cpp:7
std::shared_ptr< Event > dispatchEvent(const SystemState *systemState) override
A class representing the state that the execution or simulation of a given scenario is in.
Definition SystemState.h:21
Represents an abstract base class for a class that is an event listener and notifier.
Definition Mediator.h:13