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

Class holding extension elements representing conditions for sequence flows and conditional events. More...

Detailed Description

Definition at line 18 of file Conditions.h.

#include <Conditions.h>

Inheritance diagram for BPMNOS::Model::Conditions:

Public Member Functions

 Conditions (XML::bpmn::tBaseElement *baseElement, BPMN::Scope *parent)
 
template<typename DataType >
bool conditionsSatisfied (const BPMNOS::Values &status, const DataType &data, const BPMNOS::Values &globals) const
 
- Public Member Functions inherited from BPMN::ExtensionElements
 ExtensionElements (XML::bpmn::tBaseElement *element)
 
template<class C , class T >
std::vector< std::reference_wrapper< T > > get ()
 Returns a vector of elements of type T embedded within a container of type T.
 
template<class C , class T >
std::vector< std::reference_wrapper< const T > > get () const
 Returns a vector of elements of type T embedded within a container of type T.
 
- Public Member Functions inherited from BPMN::Element
virtual ~Element ()=default
 
template<typename T >
T * represents ()
 Attempts to cast the element to the specified type T.
 
template<typename T >
const T * represents () const
 Attempts to cast the element to the specified type T.
 
template<typename T >
T * as ()
 Casts the element to the specified type T.
 
template<typename T >
const T * as () const
 Casts the element to the specified type T.
 

Public Attributes

const BPMN::Scopeparent
 
std::vector< std::unique_ptr< Restriction > > conditions
 
std::set< const Attribute * > dataDependencies
 Set containing all attributes used in any of the conditions.
 
- Public Attributes inherited from BPMN::ExtensionElements
XML::bpmn::tExtensionElementselement
 
BaseElementbaseElement
 Reference to the base element the extension elements are bound to.
 

Constructor & Destructor Documentation

◆ Conditions()

Conditions::Conditions ( XML::bpmn::tBaseElement * baseElement,
BPMN::Scope * parent )

Definition at line 8 of file Conditions.cpp.

Member Function Documentation

◆ conditionsSatisfied()

template<typename DataType >
bool Conditions::conditionsSatisfied ( const BPMNOS::Values & status,
const DataType & data,
const BPMNOS::Values & globals ) const

Definition at line 32 of file Conditions.cpp.

Member Data Documentation

◆ conditions

std::vector< std::unique_ptr<Restriction> > BPMNOS::Model::Conditions::conditions

Definition at line 22 of file Conditions.h.

◆ dataDependencies

std::set<const Attribute*> BPMNOS::Model::Conditions::dataDependencies

Definition at line 23 of file Conditions.h.

◆ parent

const BPMN::Scope* BPMNOS::Model::Conditions::parent

Definition at line 21 of file Conditions.h.


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