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

Class creating a random choice event for a token at a decision task. More...

Detailed Description

The RandomChoice dispatcher creates a the random choice considering the boundaries for a numeric decision or any enumerated value for a string decision. The boundaries and enumeration values are deduced from the attribute type and restrictions of type BPMNOS::Model::LinearExpression or BPMNOS::Model::Enumeration. limits imply an empty domain, an error event is created. It is assumed that the existence of a feasible choice does not depend on the timestamp for any moment after entry of the decision task and until the decision is made.

Definition at line 21 of file RandomChoice.h.

#include <RandomChoice.h>

Inheritance diagram for BPMNOS::Execution::RandomChoice:

Public Member Functions

 RandomChoice ()
 
std::shared_ptr< EventdispatchEvent (const SystemState *systemState) override
 
- Public Member Functions inherited from BPMNOS::Execution::EventDispatcher
virtual ~EventDispatcher ()=default
 
virtual void connect (Mediator *mediator)
 
virtual void notice (Event *event)
 

Public Attributes

BPMNOS::RandomGenerator randomGenerator
 

Constructor & Destructor Documentation

◆ RandomChoice()

RandomChoice::RandomChoice ( )

Definition at line 10 of file RandomChoice.cpp.

Member Function Documentation

◆ dispatchEvent()

std::shared_ptr< Event > RandomChoice::dispatchEvent ( const SystemState * systemState)
overridevirtual

Implements BPMNOS::Execution::EventDispatcher.

Definition at line 15 of file RandomChoice.cpp.

Member Data Documentation

◆ randomGenerator

BPMNOS::RandomGenerator BPMNOS::Execution::RandomChoice::randomGenerator

Definition at line 25 of file RandomChoice.h.


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