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

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

Detailed Description

Transition from State::READY to State::ENTERED

Definition at line 16 of file EntryDecision.h.

#include <EntryDecision.h>

Inheritance diagram for BPMNOS::Execution::EntryDecision:

Public Member Functions

 EntryDecision (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::EntryEvent
 EntryEvent (const Token *token, std::optional< Values > entryStatus=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::EntryEvent
std::optional< ValuesentryStatus
 
- 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

◆ EntryDecision()

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

Definition at line 9 of file EntryDecision.cpp.

Member Function Documentation

◆ evaluate()

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

Implements BPMNOS::Execution::Decision.

Definition at line 17 of file EntryDecision.cpp.

◆ jsonify()

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

Implements BPMNOS::Execution::Event.

Definition at line 22 of file EntryDecision.cpp.


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