|
BPMN-OS
BPMN for optimization and simulation
|
Represents the event that choices are made for a DecisionTask. More...
Transition from State::BUSY to State::COMPLETED
Definition at line 18 of file ChoiceDecision.h.
#include <ChoiceDecision.h>
Public Member Functions | |
| ChoiceDecision (const Token *token, Values choices, Evaluator *evaluator) | |
| std::optional< double > | evaluate () override |
| Evaluates the reward for the decision. Returns null if decision is infeasible. | |
| nlohmann::ordered_json | jsonify () const override |
Public Member Functions inherited from BPMNOS::Execution::ChoiceEvent | |
| ChoiceEvent (const Token *token, Values choices) | |
| void | processBy (Engine *engine) const |
| nlohmann::ordered_json | jsonify () const override |
Public Member Functions inherited from BPMNOS::Execution::Event | |
| constexpr Type | getObservableType () const override |
| Event (const Token *token) | |
| virtual | ~Event ()=default |
| template<typename T > | |
| const T * | is () const |
| Returns a pointer of type T of the Event. | |
Public Member Functions inherited from BPMNOS::Execution::Observable | |
| ~Observable () | |
Public Member Functions inherited from BPMNOS::Execution::Decision | |
| Decision (Evaluator *evaluator) | |
Additional Inherited Members | |
Public Types inherited from BPMNOS::Execution::Observable | |
| enum class | Type { Token , Message , SequentialPerformerUpdate , Event , DataUpdate , EntryRequest , ChoiceRequest , ExitRequest , MessageDeliveryRequest , Count } |
Public Attributes inherited from BPMNOS::Execution::ChoiceEvent | |
| Values | choices |
Public Attributes inherited from BPMNOS::Execution::Event | |
| const Token * | token |
Public Attributes inherited from BPMNOS::Execution::Decision | |
| std::optional< double > | evaluation |
| Latest evaluation or null if decision has not been evaluated or evaluation is no longer valid. | |
| bool | timeDependent |
| std::set< const BPMNOS::Model::Attribute * > | dataDependencies |
Protected Member Functions inherited from BPMNOS::Execution::Decision | |
| void | determineDependencies (const std::set< const BPMNOS::Model::Attribute * > &dependencies) |
Protected Attributes inherited from BPMNOS::Execution::Decision | |
| Evaluator * | evaluator |
Definition at line 7 of file ChoiceDecision.cpp.
|
overridevirtual |
Implements BPMNOS::Execution::Decision.
Definition at line 15 of file ChoiceDecision.cpp.
|
overridevirtual |
Implements BPMNOS::Execution::Event.
Definition at line 20 of file ChoiceDecision.cpp.