BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BestEnumeratedChoice.h
Go to the documentation of this file.
1#ifndef BPMNOS_Execution_BestEnumeratedChoice_H
2#define BPMNOS_Execution_BestEnumeratedChoice_H
3
4#include <bpmn++.h>
8
9namespace BPMNOS::Execution {
10
11/**
12 * @brief Class creating a choice decision for a token at a decision task.
13 *
14 * The BestEnumeratedChoice dispatcher creates a the best evaluated choice considering
15 * enumerated values and the boundaries for each choice.
16 */
17class BestEnumeratedChoice : public GreedyDispatcher< std::weak_ptr<const Token>, std::weak_ptr<const DecisionRequest> > {
18public:
20 void connect(Mediator* mediator) override;
21 void notice(const Observable* observable) override;
22 std::shared_ptr<Event> dispatchEvent( const SystemState* systemState ) override;
23 std::shared_ptr<Decision> determineBestChoices(std::shared_ptr<const DecisionRequest> request);
24};
25
26} // namespace BPMNOS::Execution
27
28#endif // BPMNOS_Execution_BestEnumeratedChoice_H
29
Class creating a choice decision for a token at a decision task.
void connect(Mediator *mediator) override
std::shared_ptr< Decision > determineBestChoices(std::shared_ptr< const DecisionRequest > request)
void notice(const Observable *observable) override
std::shared_ptr< Event > dispatchEvent(const SystemState *systemState) override
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.
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