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>
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... | |
StoppingCriterion * | getChild (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 | |
MultipleCriterion * | getParent () |
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 | |
MonitoringManager * | monitoringManager |
monitoring manager More... | |
MultipleCriterion * | parent |
parent stopping Criterion More... | |
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.
OrMultipleCriterion::OrMultipleCriterion | ( | mml::MultipleCriteria * | m, |
MonitoringManager * | monitoringManager, | ||
MultipleCriterion * | parent = nullptr |
||
) |
constructor
m | the xsdcxx generated MultipleCriterion |
|
overridedefault |
destructor
|
overridevirtual |
return true if at least one of the Criterion is reached
Implements MultipleCriterion.
References MultipleCriterion::criterias.
|
overridevirtual |
get stopping criterion name
Implements MultipleCriterion.