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

Class representing a choice to be made within a BPMNOS::Model::DecisionTask. More...

Detailed Description

The choice to be made may be restricted through restrictions.

Definition at line 21 of file Choice.h.

#include <Choice.h>

Public Member Functions

 Choice (XML::bpmnos::tDecision *decision, const AttributeRegistry &attributeRegistry)
 
template<typename DataType >
std::pair< BPMNOS::number, BPMNOS::numbergetBounds (const BPMNOS::Values &status, const DataType &data, const BPMNOS::Values &globals) const
 Returns the minimal and maximal value the attribute may take.
 
template<typename DataType >
std::vector< BPMNOS::numbergetEnumeration (const BPMNOS::Values &status, const DataType &data, const BPMNOS::Values &globals) const
 Returns the allowed values the attribute may take.
 

Public Attributes

XML::bpmnos::tDecisionelement
 
const AttributeRegistryattributeRegistry
 
Attributeattribute
 
std::pair< bool, bool > strictness
 
std::optional< ExpressionlowerBound
 
std::optional< ExpressionupperBound
 
std::vector< Expressionenumeration
 
std::set< const Attribute * > dependencies
 

Constructor & Destructor Documentation

◆ Choice()

Choice::Choice ( XML::bpmnos::tDecision * decision,
const AttributeRegistry & attributeRegistry )

Definition at line 10 of file Choice.cpp.

Member Function Documentation

◆ getBounds()

template<typename DataType >
std::pair< BPMNOS::number, BPMNOS::number > Choice::getBounds ( const BPMNOS::Values & status,
const DataType & data,
const BPMNOS::Values & globals ) const

Definition at line 100 of file Choice.cpp.

◆ getEnumeration()

template<typename DataType >
std::vector< BPMNOS::number > Choice::getEnumeration ( const BPMNOS::Values & status,
const DataType & data,
const BPMNOS::Values & globals ) const

Definition at line 125 of file Choice.cpp.

Member Data Documentation

◆ attribute

Attribute* BPMNOS::Model::Choice::attribute

Definition at line 26 of file Choice.h.

◆ attributeRegistry

const AttributeRegistry& BPMNOS::Model::Choice::attributeRegistry

Definition at line 25 of file Choice.h.

◆ dependencies

std::set<const Attribute*> BPMNOS::Model::Choice::dependencies

Definition at line 31 of file Choice.h.

◆ element

XML::bpmnos::tDecision* BPMNOS::Model::Choice::element

Definition at line 24 of file Choice.h.

◆ enumeration

std::vector< Expression > BPMNOS::Model::Choice::enumeration

Definition at line 30 of file Choice.h.

◆ lowerBound

std::optional< Expression > BPMNOS::Model::Choice::lowerBound

Definition at line 28 of file Choice.h.

◆ strictness

std::pair<bool,bool> BPMNOS::Model::Choice::strictness

Definition at line 27 of file Choice.h.

◆ upperBound

std::optional< Expression > BPMNOS::Model::Choice::upperBound

Definition at line 29 of file Choice.h.


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