cqosdb::PropertySetComparator Class Reference

Implement Comparator interfaces for comparing matrix property sets. More...

#include <Comparator.hxx>

Inheritance diagram for cqosdb::PropertySetComparator:

cqosdb::Comparator

List of all members.

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.
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 ()

Private Attributes

PropertySet lhs
PropertySet rhs
map< string, double > toleranceMap
map< string, int > relationMap


Detailed Description

Implement Comparator interfaces for comparing matrix property sets.

Constructor & Destructor Documentation

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.

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

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

Parameters:
LHS left hand side of comparison
RHS right hand side of comparison

cqosdb::PropertySetComparator::PropertySetComparator (  )  [inline]

cqosdb::PropertySetComparator::~PropertySetComparator (  ) 


Member Function Documentation

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

Return class name.

Implements cqosdb::Comparator.

void cqosdb::PropertySetComparator::clear (  ) 

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

Set left hand side parameter set to be compared.

Implements cqosdb::Comparator.

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

Set right hand side parameter set to be compared.

Implements cqosdb::Comparator.

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

Grab left hand side parameter set to be compared.

Implements cqosdb::Comparator.

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

Grab right hand side parameter set to be compared.

Implements cqosdb::Comparator.

Parameter * cqosdb::PropertySetComparator::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::PropertySetComparator::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::PropertySetComparator::getDimension (  )  [virtual]

Get count of parameters to be compared.

Implements cqosdb::Comparator.

void cqosdb::PropertySetComparator::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::PropertySetComparator::getToleranceAt ( string  name  )  [virtual]

Get comparison tolerance value of a parameter.

Parameters:
name Parameter name

Implements cqosdb::Comparator.

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

Set comparison relation at a parameter.

Parameters:
name Parameter name
aRelation Comparison relation

Implements cqosdb::Comparator.

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

Grab comparison relation at a parameter.

Parameters:
name Parameter name

Implements cqosdb::Comparator.

bool cqosdb::PropertySetComparator::doCompare (  )  [virtual]

Returns:
true if (LHS[i] - RHS[i]) rMap[i] tolerance[i] is true for every property i (i>=0 && i< parameter count); false otherwise.

Implements cqosdb::Comparator.


Member Data Documentation

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

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


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

Generated on Tue Sep 23 19:59:06 2008 for CQoS Database Library by  doxygen 1.5.5