|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_H
27 #define STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_H
33 #include <MonitorIn.hxx>
67 std::string
getName()
override = 0;
70 std::string getMethodString();
73 std::string scopeToString();
81 std::vector<double> values;
83 virtual void calculate() = 0;
87 mml::Criteria* mappedObject;
93 #endif // STOPPINGCRITERION_STOPPINGCRITERIA_CRITERIA_H
std::string scopeToString()
get Method scope as string
Definition: Criterion.cpp:84
Class which represents a simple criterion A criterion can be checked using checkCriterion method to k...
Definition: Criterion.h:47
std::string unit
unit
Definition: Criterion.h:112
mml::Criteria * mappedObject
the xsdcxx object representing criterion, used for serialization
Definition: Criterion.h:110
std::string scopeTosString()
get a String of the scope
Definition: Method.cpp:90
static Method * createMethod(mml::Method &m)
create a method according to the xsdcxx object method
Definition: MethodFactory.cpp:38
#define MML_API
Definition: MMLAPI.h:43
StoppingCriterion * getChild(const unsigned int i) override
get the child repered by index, return null if no child
Definition: Criterion.cpp:69
int getNumberOfChildren() override
get number of childre; return -1 for non multiple criteria
Definition: Criterion.cpp:74
virtual std::string getName()=0
get stopping criterion name
Method * meth
the computationnal method used to check if criterion is true
Definition: Criterion.h:100
virtual bool checkCriterion()=0
return true if the stopping criterion is reach
virtual void calculate()=0
calculate stopping criteria data and store it into values vector
virtual StoppingCriterion * getChild(const unsigned int i)=0
get the child repered by index, return nullptr if no child
virtual bool test(std::vector< double > &values)
return true if the vector of fouble values passed the test (see scope)
Definition: Method.cpp:56
Criterion(mml::Criteria *c, MonitoringManager *monitoringManager, MultipleCriterion *parent=nullptr)
constructor
Definition: Criterion.cpp:36
Manager of the benchmark tests. Do simulation loop and tests.
Definition: MonitoringManager.h:50
virtual int getNumberOfChildren()=0
get number of childre; return -1 for non multiple criteria
std::string getMethodString()
get Method Name
Definition: Criterion.cpp:79
class which represent the stopping criterion to check to stop simulation a StoppingCriterion is eithe...
Definition: StoppingCriterion.h:48
void write()
write values in the mmlOut file
Definition: Criterion.cpp:58
std::vector< double > values
vector that stores current data of the stopping criteria
Definition: Criterion.h:104
bool checkCriterion() override
return true if the criterion is reach
Definition: Criterion.cpp:52
~Criterion() override
destructor
Definition: Criterion.cpp:43
class which represents a multiple criterion a multiple criterion is either an OrMUltipleCriterion or ...
Definition: MultipleCriterion.h:45
virtual std::string toString()=0
get Method name
A Method represent how to make the boolean assessment with criteria data (a vector of double)
Definition: Method.h:42