A Method represent how to make the boolean assessment with criteria data (a vector of double) More...
#include <Method.h>
Public Types | |
enum | ScopeType { Any , Average , Sum , None } |
the scope of the method More... | |
Public Member Functions | |
virtual bool | individualTest (double tested)=0 |
return true if the double passed the test More... | |
Method (mml::Method *m) | |
constructor More... | |
std::string | scopeTosString () |
get a String of the scope More... | |
virtual bool | test (std::vector< double > &values) |
return true if the vector of fouble values passed the test (see scope) More... | |
virtual std::string | toString ()=0 |
get Method name More... | |
virtual | ~Method ()=default |
destructor More... | |
Protected Attributes | |
ScopeType | scope |
scope of the method Any: test is true if all indivitual test are true in the values vector Average: test is true if the indivudal test of values vector's average is true Sum: test is true if the indivudal test of the sum of all double of the values vector is true None: used for monitor wich are not applied to a structural component (ex: time) More... | |
A Method represent how to make the boolean assessment with criteria data (a vector of double)
enum Method::ScopeType |
Method::Method | ( | mml::Method * | m | ) |
constructor
the | xsdcxx generated method class |
|
virtualdefault |
destructor
|
pure virtual |
return true if the double passed the test
Implemented in TimePeriodThreshold, Threshold, and MinThreshold.
std::string Method::scopeTosString | ( | ) |
get a String of the scope
References Any, Average, None, and Sum.
Referenced by Criterion::scopeToString().
|
virtual |
return true if the vector of fouble values passed the test (see scope)
References Any, Average, None, and Sum.
Referenced by Criterion::checkCriterion().
|
pure virtual |
get Method name
Implemented in TimePeriodThreshold, Threshold, and MinThreshold.
Referenced by Criterion::getMethodString().
|
protected |
scope of the method Any: test is true if all indivitual test are true in the values vector Average: test is true if the indivudal test of values vector's average is true Sum: test is true if the indivudal test of the sum of all double of the values vector is true None: used for monitor wich are not applied to a structural component (ex: time)