26#ifndef STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_H
27#define STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_H
33#include <MonitorIn.hxx>
#define MML_API
Definition MMLAPI.h:43
std::string unit
unit
Definition Criterion.h:89
std::string scopeToString()
get Method scope as string
Definition Criterion.cpp:84
virtual void calculate()=0
calculate stopping criteria data and store it into values vector
std::string getName() override=0
get stopping criterion name
std::vector< double > values
vector that stores current data of the stopping criteria
Definition Criterion.h:81
void write()
write values in the mmlOut file
Definition Criterion.cpp:58
mml::Criteria * mappedObject
the xsdcxx object representing criterion, used for serialization
Definition Criterion.h:87
std::string getMethodString()
get Method Name
Definition Criterion.cpp:79
Method * meth
the computationnal method used to check if criterion is true
Definition Criterion.h:77
Criterion(mml::Criteria *c, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
constructor
Definition Criterion.cpp:36
double factor
factor to multiplate for conversion to SI
Definition Criterion.h:79
A Method represent how to make the boolean assessment with criteria data (a vector of double).
Definition Method.h:42
Manager of the benchmark tests.
Definition MonitoringManager.h:50
class which represents a multiple criterion a multiple criterion is either an OrMUltipleCriterion or ...
Definition MultipleCriterion.h:45
virtual bool checkCriterion()=0
return true if the stopping criterion is reach
virtual int getNumberOfChildren()=0
get number of childre; return -1 for non multiple criteria
virtual StoppingCriterion * getChild(const unsigned int i)=0
get the child repered by index, return nullptr if no child
StoppingCriterion(MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
constructor
Definition StoppingCriterion.cpp:34
MultipleCriterion * parent
parent stopping Criterion
Definition StoppingCriterion.h:76
MonitoringManager * monitoringManager
monitoring manager
Definition StoppingCriterion.h:74