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 | |
| Method (mml::Method *m) | |
| constructor | |
| std::string | scopeTosString () |
| get a String of the scope | |
| virtual bool | test (std::vector< double > &values) |
| return true if the vector of fouble values passed the test (see scope) | |
| virtual std::string | toString ()=0 |
| get Method name | |
| virtual | ~Method ()=default |
| destructor | |
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) | |
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
| m | the xsdcxx generated method class |
References Any, Average, None, scope, and Sum.
Referenced by MinThreshold::MinThreshold(), Threshold::Threshold(), and TimePeriodThreshold::TimePeriodThreshold().
|
virtualdefault |
destructor
|
pure virtual |
return true if the double passed the test
Implemented in MinThreshold, Threshold, and TimePeriodThreshold.
Referenced by test().
| std::string Method::scopeTosString | ( | ) |
|
virtual |
|
pure virtual |
get Method name
Implemented in MinThreshold, Threshold, and TimePeriodThreshold.
|
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)
Referenced by Method(), scopeTosString(), and test().