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>
Public Member Functions | |
void | addChild (StoppingCriterion *sc) |
add child More... | |
bool | checkCriterion () override=0 |
return true if the MultipleCriterion is reach More... | |
StoppingCriterion * | getChild (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 | |
MultipleCriterion * | getParent () |
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 | |
MonitoringManager * | monitoringManager |
monitoring manager More... | |
MultipleCriterion * | parent |
parent stopping Criterion More... | |
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
MultipleCriterion::MultipleCriterion | ( | mml::MultipleCriteria * | m, |
MonitoringManager * | monitoringManager, | ||
MultipleCriterion * | parent = nullptr |
||
) |
constructor
m | the xsdcxx generated MultipleCriterion |
References CriterionFactory::createCriterion(), MultipleCriterionFactory::createMultipleCriteria(), criterias, and StoppingCriterion::monitoringManager.
|
override |
destructor
References criterias.
void MultipleCriterion::addChild | ( | StoppingCriterion * | sc | ) |
add child
References criterias.
|
overridepure virtual |
return true if the MultipleCriterion is reach
Implements StoppingCriterion.
Implemented in AndMultipleCriterion, and OrMultipleCriterion.
|
overridevirtual |
get the child repered by index, return null if no child
Implements StoppingCriterion.
References criterias.
|
overridepure virtual |
get stopping criterion name
Implements StoppingCriterion.
Implemented in AndMultipleCriterion, and OrMultipleCriterion.
|
overridevirtual |
get number of childre; return -1 for non multiple criteria
Implements StoppingCriterion.
References criterias.
void MultipleCriterion::removeChild | ( | const unsigned int | i | ) |
remove child by index
References criterias.
|
protected |
the set of criteria to check
Referenced by addChild(), OrMultipleCriterion::checkCriterion(), AndMultipleCriterion::checkCriterion(), getChild(), getNumberOfChildren(), MultipleCriterion(), removeChild(), and ~MultipleCriterion().
|
protected |
the xsdcxx object representing MultipleCriterion, used for serialization