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

Represents the event of a token exiting a node. More...

Detailed Description

Transition from State::COMPLETION to State::DONE or State::DEPARTED

Definition at line 16 of file ExitDecision.h.

#include <ExitDecision.h>

Inheritance diagram for BPMNOS::Execution::ExitDecision:

Public Member Functions

 ExitDecision (const Token *token, 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::ExitEvent
 ExitEvent (const Token *token, std::optional< Values > exitStatus=std::nullopt)
 
void processBy (Engine *engine) const override
 
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::ExitEvent
std::optional< ValuesexitStatus
 
- 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

◆ ExitDecision()

ExitDecision::ExitDecision ( const Token * token,
Evaluator * evaluator )

Definition at line 7 of file ExitDecision.cpp.

Member Function Documentation

◆ evaluate()

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

Implements BPMNOS::Execution::Decision.

Definition at line 15 of file ExitDecision.cpp.

◆ jsonify()

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

Implements BPMNOS::Execution::Event.

Definition at line 20 of file ExitDecision.cpp.


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