Computer Assisted Medical Intervention Tool Kit  version 5.2
OrMultipleCriterion Class Reference

A OrMultipleCriterion is a MultipleCriterion where a call of checkCriteria methof is true if at least one of Criterion of the Criteria vector is reached. More...

#include <OrMultipleCriterion.h>

+ Inheritance diagram for OrMultipleCriterion:
+ Collaboration diagram for OrMultipleCriterion:

Public Member Functions

bool checkCriterion () override
 return true if at least one of the Criterion is reached More...
 
std::string getName () override
 get stopping criterion name More...
 
 OrMultipleCriterion (mml::MultipleCriteria *m, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
 constructor More...
 
 ~OrMultipleCriterion () override=default
 destructor More...
 
- Public Member Functions inherited from MultipleCriterion
void addChild (StoppingCriterion *sc)
 add child More...
 
StoppingCriteriongetChild (const unsigned int i) override
 get the child repered by index, return null if no child More...
 
int getNumberOfChildren () override
 get number of childre; return -1 for non multiple criteria More...
 
 MultipleCriterion (mml::MultipleCriteria *m, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
 constructor More...
 
void removeChild (const unsigned int i)
 remove child by index More...
 
 ~MultipleCriterion () override
 destructor More...
 
- Public Member Functions inherited from StoppingCriterion
MultipleCriteriongetParent ()
 get parent multiple criteria More...
 
 StoppingCriterion (MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
 constructor More...
 
virtual ~StoppingCriterion ()=default
 destructor More...
 

Additional Inherited Members

- Protected Attributes inherited from MultipleCriterion
std::vector< StoppingCriterion * > criterias
 the set of criteria to check More...
 
mml::MultipleCriteria * mappedObject
 the xsdcxx object representing MultipleCriterion, used for serialization More...
 
- Protected Attributes inherited from StoppingCriterion
MonitoringManagermonitoringManager
 monitoring manager More...
 
MultipleCriterionparent
 parent stopping Criterion More...
 

Detailed Description

A OrMultipleCriterion is a MultipleCriterion where a call of checkCriteria methof is true if at least one of Criterion of the Criteria vector is reached.

Constructor & Destructor Documentation

◆ OrMultipleCriterion()

OrMultipleCriterion::OrMultipleCriterion ( mml::MultipleCriteria *  m,
MonitoringManager monitoringManager,
MultipleCriterion parent = nullptr 
)

constructor

Parameters
mthe xsdcxx generated MultipleCriterion

◆ ~OrMultipleCriterion()

OrMultipleCriterion::~OrMultipleCriterion ( )
overridedefault

destructor

Member Function Documentation

◆ checkCriterion()

bool OrMultipleCriterion::checkCriterion ( )
overridevirtual

return true if at least one of the Criterion is reached

Implements MultipleCriterion.

References MultipleCriterion::criterias.

◆ getName()

std::string OrMultipleCriterion::getName ( )
overridevirtual

get stopping criterion name

Implements MultipleCriterion.


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