Computer Assisted Medical Intervention Tool Kit  version 5.2
AndMultipleCriterion Class Reference

A AndMultipleCriterion is a MultipleCriterion where a call of checkCriteria methof is true if every single Criterion of the Criteria vector is reached. More...

#include <AndMultipleCriterion.h>

+ Inheritance diagram for AndMultipleCriterion:
+ Collaboration diagram for AndMultipleCriterion:

Public Member Functions

 AndMultipleCriterion (mml::MultipleCriteria *m, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
 constructor More...
 
bool checkCriterion () override
 return true if every single Criterion is reached More...
 
std::string getName () override
 get stopping criterion name More...
 
 ~AndMultipleCriterion () 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 AndMultipleCriterion is a MultipleCriterion where a call of checkCriteria methof is true if every single Criterion of the Criteria vector is reached.

Constructor & Destructor Documentation

◆ AndMultipleCriterion()

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

constructor

Parameters
mthe xsdcxx generated MultipleCriterion
monitoringManagerthe monitoring manager that holds this criteria
parentthe parent multiple criteria

◆ ~AndMultipleCriterion()

AndMultipleCriterion::~AndMultipleCriterion ( )
overridedefault

destructor

Member Function Documentation

◆ checkCriterion()

bool AndMultipleCriterion::checkCriterion ( )
overridevirtual

return true if every single Criterion is reached

Implements MultipleCriterion.

References MultipleCriterion::criterias.

◆ getName()

std::string AndMultipleCriterion::getName ( )
overridevirtual

get stopping criterion name

Implements MultipleCriterion.


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