cqosdb::AlgorithmComparator Class Reference

#include <Algorithm.hxx>

Inheritance diagram for cqosdb::AlgorithmComparator:

cqosdb::Comparator

List of all members.

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.
ParameterSetgetLHS ()
 Grab left hand side parameter set to be compared.
ParameterSetgetRHS ()
 Grab right hand side parameter set to be compared.
ParametergetLHSParameterAt (string paraName)
 Grab a parameter at the left hand side of comparison.
ParametergetRHSParameterAt (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


Constructor & Destructor Documentation

cqosdb::AlgorithmComparator::AlgorithmComparator ( Algorithm LHS,
Algorithm RHS,
map< string, double > &  tMap,
map< string, int > &  rMap 
)

cqosdb::AlgorithmComparator::AlgorithmComparator ( Algorithm LHS,
Algorithm RHS 
)

cqosdb::AlgorithmComparator::AlgorithmComparator (  )  [inline]

cqosdb::AlgorithmComparator::~AlgorithmComparator (  ) 


Member Function Documentation

string cqosdb::AlgorithmComparator::getClassName (  )  [virtual]

Return class name.

Implements cqosdb::Comparator.

void cqosdb::AlgorithmComparator::clear (  ) 

void cqosdb::AlgorithmComparator::setLHS ( ParameterSet lefthand  )  [virtual]

Set left hand side parameter set to be compared.

Implements cqosdb::Comparator.

void cqosdb::AlgorithmComparator::setRHS ( ParameterSet righthand  )  [virtual]

Set right hand side parameter set to be compared.

Implements cqosdb::Comparator.

ParameterSet& cqosdb::AlgorithmComparator::getLHS (  )  [virtual]

Grab left hand side parameter set to be compared.

Implements cqosdb::Comparator.

ParameterSet& cqosdb::AlgorithmComparator::getRHS (  )  [virtual]

Grab right hand side parameter set to be compared.

Implements cqosdb::Comparator.

Parameter* cqosdb::AlgorithmComparator::getLHSParameterAt ( string  paraName  )  [virtual]

Grab a parameter at the left hand side of comparison.

Parameters:
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.

Parameters:
paraName Name string of the parameter

Implements cqosdb::Comparator.

int cqosdb::AlgorithmComparator::getDimension (  )  [virtual]

Get count of parameters to be compared.

Implements cqosdb::Comparator.

void cqosdb::AlgorithmComparator::setToleranceAt ( string  name,
double  epsilon 
) [virtual]

Set up comparison tolerance of a parameter.

Parameters:
name Parameter name
epsilon Comparison tolerance value

Implements cqosdb::Comparator.

double cqosdb::AlgorithmComparator::getToleranceAt ( string  name  )  [virtual]

Get comparison tolerance value of a parameter.

Parameters:
name Parameter name

Implements cqosdb::Comparator.

void cqosdb::AlgorithmComparator::setRelationAt ( string  name,
int  aRelation 
) [virtual]

Set comparison relation at a parameter.

Parameters:
name Parameter name
aRelation Comparison relation

Implements cqosdb::Comparator.

int cqosdb::AlgorithmComparator::getRelationAt ( string  name  )  [virtual]

Grab comparison relation at a parameter.

Parameters:
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.


Member Data Documentation

map<string, double> cqosdb::AlgorithmComparator::toleranceMap [private]

map<string, int> cqosdb::AlgorithmComparator::relationMap [private]


The documentation for this class was generated from the following file:

Generated on Thu May 8 19:35:48 2008 for CQoS Database Library by  doxygen 1.5.5