Computer Assited Medical Intervention Tool Kit  version 5.0
MultipleCriterion Class Referenceabstract

class which represents a multiple criterion a multiple criterion is either an OrMUltipleCriterion or an AndMultipleCriterion A MultipleCriterion can be checked using checkCriterion method to know if the MultipleCriterion is reach it contains a set of criterion (criteria vector) wich are all checked to make the boolena assessment of checkCriterion method More...

#include <MultipleCriterion.h>

+ Inheritance diagram for MultipleCriterion:
+ Collaboration diagram for MultipleCriterion:

Public Member Functions

void addChild (StoppingCriterion *sc)
 add child More...
 
bool checkCriterion () override=0
 return true if the MultipleCriterion is reach More...
 
StoppingCriteriongetChild (const unsigned int i) override
 get the child repered by index, return null if no child More...
 
std::string getName () override=0
 get stopping criterion name 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...
 

Protected Attributes

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

class which represents a multiple criterion a multiple criterion is either an OrMUltipleCriterion or an AndMultipleCriterion A MultipleCriterion can be checked using checkCriterion method to know if the MultipleCriterion is reach it contains a set of criterion (criteria vector) wich are all checked to make the boolena assessment of checkCriterion method

Constructor & Destructor Documentation

◆ MultipleCriterion()

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

constructor

Parameters
mthe xsdcxx generated MultipleCriterion

References CriterionFactory::createCriterion(), MultipleCriterionFactory::createMultipleCriteria(), criterias, and StoppingCriterion::monitoringManager.

+ Here is the call graph for this function:

◆ ~MultipleCriterion()

MultipleCriterion::~MultipleCriterion ( )
override

destructor

References criterias.

Member Function Documentation

◆ addChild()

void MultipleCriterion::addChild ( StoppingCriterion sc)

add child

References criterias.

◆ checkCriterion()

bool MultipleCriterion::checkCriterion ( )
overridepure virtual

return true if the MultipleCriterion is reach

Implements StoppingCriterion.

Implemented in AndMultipleCriterion, and OrMultipleCriterion.

◆ getChild()

StoppingCriterion * MultipleCriterion::getChild ( const unsigned int  i)
overridevirtual

get the child repered by index, return null if no child

Implements StoppingCriterion.

References criterias.

◆ getName()

std::string MultipleCriterion::getName ( )
overridepure virtual

get stopping criterion name

Implements StoppingCriterion.

Implemented in AndMultipleCriterion, and OrMultipleCriterion.

◆ getNumberOfChildren()

int MultipleCriterion::getNumberOfChildren ( )
overridevirtual

get number of childre; return -1 for non multiple criteria

Implements StoppingCriterion.

References criterias.

◆ removeChild()

void MultipleCriterion::removeChild ( const unsigned int  i)

remove child by index

References criterias.

Member Data Documentation

◆ criterias

◆ mappedObject

mml::MultipleCriteria* MultipleCriterion::mappedObject
protected

the xsdcxx object representing MultipleCriterion, used for serialization


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