#include <Algorithm.hxx>
Public Member Functions | |
AlgorithmComparator (Algorithm &LHS, Algorithm &RHS, map< string, double > &tMap, map< string, int > &rMap) | |
AlgorithmComparator (Algorithm &LHS, Algorithm &RHS) | |
AlgorithmComparator () | |
~AlgorithmComparator () | |
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 () |
After setting up left, right hand side, tolerances, and comparison relation, do comparison. | |
Private Attributes | |
Algorithm | lhs |
Algorithm | rhs |
map< string, double > | toleranceMap |
map< string, int > | relationMap |
cqosdb::AlgorithmComparator::AlgorithmComparator | ( | Algorithm & | LHS, | |
Algorithm & | RHS, | |||
map< string, double > & | tMap, | |||
map< string, int > & | rMap | |||
) |
cqosdb::AlgorithmComparator::AlgorithmComparator | ( | ) | [inline] |
cqosdb::AlgorithmComparator::~AlgorithmComparator | ( | ) |
string cqosdb::AlgorithmComparator::getClassName | ( | ) | [virtual] |
void cqosdb::AlgorithmComparator::clear | ( | ) |
void cqosdb::AlgorithmComparator::setLHS | ( | ParameterSet & | lefthand | ) | [virtual] |
void cqosdb::AlgorithmComparator::setRHS | ( | ParameterSet & | righthand | ) | [virtual] |
ParameterSet& cqosdb::AlgorithmComparator::getLHS | ( | ) | [virtual] |
ParameterSet& cqosdb::AlgorithmComparator::getRHS | ( | ) | [virtual] |
Parameter* cqosdb::AlgorithmComparator::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::AlgorithmComparator::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::AlgorithmComparator::getDimension | ( | ) | [virtual] |
void cqosdb::AlgorithmComparator::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::AlgorithmComparator::getToleranceAt | ( | string | name | ) | [virtual] |
Get comparison tolerance value of a parameter.
name | Parameter name |
Implements cqosdb::Comparator.
void cqosdb::AlgorithmComparator::setRelationAt | ( | string | name, | |
int | aRelation | |||
) | [virtual] |
Set comparison relation at a parameter.
name | Parameter name | |
aRelation | Comparison relation |
Implements cqosdb::Comparator.
int cqosdb::AlgorithmComparator::getRelationAt | ( | string | name | ) | [virtual] |
Grab comparison relation at a parameter.
name | Parameter name |
Implements cqosdb::Comparator.
bool cqosdb::AlgorithmComparator::doCompare | ( | ) | [virtual] |
After setting up left, right hand side, tolerances, and comparison relation, do comparison.
Implements cqosdb::Comparator.
Algorithm cqosdb::AlgorithmComparator::lhs [private] |
Algorithm cqosdb::AlgorithmComparator::rhs [private] |
map<string, double> cqosdb::AlgorithmComparator::toleranceMap [private] |
map<string, int> cqosdb::AlgorithmComparator::relationMap [private] |