27 #ifndef STOPPINGCRITERION_STOPPINGCRITERIA_METHOD_H
28 #define STOPPINGCRITERION_STOPPINGCRITERIA_METHOD_H
32 #include <MonitorIn.hxx>
33 #include <MonitoringModel.hxx>
62 virtual bool test(std::vector<double>& values);
A Method represent how to make the boolean assessment with criteria data (a vector of double)
Definition: Method.h:42
virtual std::string toString()=0
get Method name
virtual bool individualTest(double tested)=0
return true if the double passed the test
Method(mml::Method *m)
constructor
Definition: Method.cpp:34
virtual ~Method()=default
destructor
virtual bool test(std::vector< double > &values)
return true if the vector of fouble values passed the test (see scope)
Definition: Method.cpp:56
ScopeType scope
scope of the method Any: test is true if all indivitual test are true in the values vector Average: t...
Definition: Method.h:81
std::string scopeTosString()
get a String of the scope
Definition: Method.cpp:90
ScopeType
the scope of the method
Definition: Method.h:53
@ Sum
Definition: Method.h:56
@ Any
Definition: Method.h:54
@ None
Definition: Method.h:57
@ Average
Definition: Method.h:55