#include <Comparator.hxx>
Public Member Functions | |
PropertySetComparator (PropertySet &LHS, PropertySet &RHS, map< string, double > &tMap, map< string, int > &rMap) | |
Constructor: initialize with left hand side, right hand side, comparison tolerances and relations. | |
PropertySetComparator (PropertySet &LHS, PropertySet &RHS, map< string, int > &rMap) | |
Constructor: initialize with left hand side, right hand side, comparison relations. | |
PropertySetComparator (PropertySet &LHS, PropertySet &RHS) | |
Constructor: initialize with left hand side andright hand side. | |
PropertySetComparator () | |
~PropertySetComparator () | |
string | getClassName () |
Return class name. | |
void | clear () |
void | setLHS (ParameterSet &lefthand) |
Set left hand side parameter set to be compared. | |
void | setRHS (ParameterSet &righthand) |
Set right hand side parameter set to be compared. | |
ParameterSet & | getLHS () |
Grab left hand side parameter set to be compared. | |
ParameterSet & | getRHS () |
Grab right hand side parameter set to be compared. | |
Parameter * | getLHSParameterAt (string paraName) |
Grab a parameter at the left hand side of comparison. | |
Parameter * | getRHSParameterAt (string paraName) |
Grab a parameter at the right hand side of comparison. | |
int | getDimension () |
Get count of parameters to be compared. | |
void | setToleranceAt (string name, double epsilon) |
Set up comparison tolerance of a parameter. | |
double | getToleranceAt (string name) |
Get comparison tolerance value of a parameter. | |
void | setRelationAt (string name, int aRelation) |
Set comparison relation at a parameter. | |
int | getRelationAt (string name) |
Grab comparison relation at a parameter. | |
bool | doCompare () |
Private Attributes | |
PropertySet | lhs |
PropertySet | rhs |
map< string, double > | toleranceMap |
map< string, int > | relationMap |
cqosdb::PropertySetComparator::PropertySetComparator | ( | PropertySet & | LHS, | |
PropertySet & | RHS, | |||
map< string, double > & | tMap, | |||
map< string, int > & | rMap | |||
) |
Constructor: initialize with left hand side, right hand side, comparison tolerances and relations.
LHS | left hand side of comparison | |
RHS | right hand side of comparison | |
tMap | comparison tolerances | |
rMap | comparison relations |
cqosdb::PropertySetComparator::PropertySetComparator | ( | PropertySet & | LHS, | |
PropertySet & | RHS, | |||
map< string, int > & | rMap | |||
) |
Constructor: initialize with left hand side, right hand side, comparison relations.
LHS | left hand side of comparison | |
RHS | right hand side of comparison | |
rMap | comparison relations |
cqosdb::PropertySetComparator::PropertySetComparator | ( | PropertySet & | LHS, | |
PropertySet & | RHS | |||
) |
Constructor: initialize with left hand side andright hand side.
LHS | left hand side of comparison | |
RHS | right hand side of comparison |
cqosdb::PropertySetComparator::PropertySetComparator | ( | ) | [inline] |
cqosdb::PropertySetComparator::~PropertySetComparator | ( | ) |
string cqosdb::PropertySetComparator::getClassName | ( | ) | [virtual] |
void cqosdb::PropertySetComparator::clear | ( | ) |
void cqosdb::PropertySetComparator::setLHS | ( | ParameterSet & | lefthand | ) | [virtual] |
void cqosdb::PropertySetComparator::setRHS | ( | ParameterSet & | righthand | ) | [virtual] |
ParameterSet & cqosdb::PropertySetComparator::getLHS | ( | ) | [virtual] |
ParameterSet & cqosdb::PropertySetComparator::getRHS | ( | ) | [virtual] |
Parameter * cqosdb::PropertySetComparator::getLHSParameterAt | ( | string | paraName | ) | [virtual] |
Grab a parameter at the left hand side of comparison.
paraName | Name string of the parameter |
Implements cqosdb::Comparator.
Parameter * cqosdb::PropertySetComparator::getRHSParameterAt | ( | string | paraName | ) | [virtual] |
Grab a parameter at the right hand side of comparison.
paraName | Name string of the parameter |
Implements cqosdb::Comparator.
int cqosdb::PropertySetComparator::getDimension | ( | ) | [virtual] |
void cqosdb::PropertySetComparator::setToleranceAt | ( | string | name, | |
double | epsilon | |||
) | [virtual] |
Set up comparison tolerance of a parameter.
name | Parameter name | |
epsilon | Comparison tolerance value |
Implements cqosdb::Comparator.
double cqosdb::PropertySetComparator::getToleranceAt | ( | string | name | ) | [virtual] |
Get comparison tolerance value of a parameter.
name | Parameter name |
Implements cqosdb::Comparator.
void cqosdb::PropertySetComparator::setRelationAt | ( | string | name, | |
int | aRelation | |||
) | [virtual] |
Set comparison relation at a parameter.
name | Parameter name | |
aRelation | Comparison relation |
Implements cqosdb::Comparator.
int cqosdb::PropertySetComparator::getRelationAt | ( | string | name | ) | [virtual] |
Grab comparison relation at a parameter.
name | Parameter name |
Implements cqosdb::Comparator.
bool cqosdb::PropertySetComparator::doCompare | ( | ) | [virtual] |
Implements cqosdb::Comparator.
map<string, double> cqosdb::PropertySetComparator::toleranceMap [private] |
map<string, int> cqosdb::PropertySetComparator::relationMap [private] |