|
BPMN-OS
BPMN for optimization and simulation
|
Class creating a random choice event for a token at a decision task. More...
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>
Public Member Functions | |
| RandomChoice () | |
| std::shared_ptr< Event > | dispatchEvent (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 |
| RandomChoice::RandomChoice | ( | ) |
Definition at line 10 of file RandomChoice.cpp.
|
overridevirtual |
Implements BPMNOS::Execution::EventDispatcher.
Definition at line 15 of file RandomChoice.cpp.
| BPMNOS::RandomGenerator BPMNOS::Execution::RandomChoice::randomGenerator |
Definition at line 25 of file RandomChoice.h.