BPMN-OS
BPMN for optimization and simulation
Loading...
Searching...
No Matches
BPMNOS::Execution::ChoiceDecision Struct Reference

Represents the event that choices are made for a DecisionTask. More...

Detailed Description

Transition from State::BUSY to State::COMPLETED

Definition at line 18 of file ChoiceDecision.h.

#include <ChoiceDecision.h>

Inheritance diagram for BPMNOS::Execution::ChoiceDecision:

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 Tokentoken
 
- 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
Evaluatorevaluator
 

Constructor & Destructor Documentation

◆ ChoiceDecision()

ChoiceDecision::ChoiceDecision ( const Token * token,
Values choices,
Evaluator * evaluator )

Definition at line 7 of file ChoiceDecision.cpp.

Member Function Documentation

◆ evaluate()

std::optional< double > ChoiceDecision::evaluate ( )
overridevirtual

Implements BPMNOS::Execution::Decision.

Definition at line 15 of file ChoiceDecision.cpp.

◆ jsonify()

nlohmann::ordered_json ChoiceDecision::jsonify ( ) const
overridevirtual

Implements BPMNOS::Execution::Event.

Definition at line 20 of file ChoiceDecision.cpp.


The documentation for this struct was generated from the following files: