cqosdb::Algorithm Class Reference

#include <Algorithm.hxx>

Inheritance diagram for cqosdb::Algorithm:

cqosdb::ParameterSet

List of all members.

Public Member Functions

 Algorithm ()
 Algorithm (const Algorithm &other)
 ~Algorithm ()
string getClassName ()
 Return class name.
int getNumOfParameters ()
 Get count of parameters in the set.
string getTBName ()
 Get table where the set is store in database.
void addAParameter (Parameter &aParam)
 Add a parameter to the set.
ParametergetParameterAt (string name)
 Get a parameter in the set.
ParametergetParameterAt (int index)
 Get a parameter in the set.
void setParameterValueAt (string name, int value)
void setParameterValueAt (string name, long value)
void setParameterValueAt (string name, double value)
void setParameterValueAt (string name, string value)
void setParameterValueAt (int index, int value)
void setParameterValueAt (int index, long value)
void setParameterValueAt (int index, double value)
void setParameterValueAt (int index, string value)
bool compareWith (ParameterSet &another, map< string, double > tMap, map< string, int > rMap)
 Compare with another parameter set of the same type.
string getDBConditions (int *tbIndices, map< string, double > tMap, map< string, int > rMap)
 Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.
Algorithmoperator= (const Algorithm &other)
ParameterSetclone ()

Public Attributes

vector< FieldTypeparamVec


Constructor & Destructor Documentation

cqosdb::Algorithm::Algorithm (  ) 

cqosdb::Algorithm::Algorithm ( const Algorithm other  ) 

cqosdb::Algorithm::~Algorithm (  ) 


Member Function Documentation

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

Return class name.

Implements cqosdb::ParameterSet.

int cqosdb::Algorithm::getNumOfParameters (  )  [virtual]

Get count of parameters in the set.

Implements cqosdb::ParameterSet.

string cqosdb::Algorithm::getTBName (  )  [virtual]

Get table where the set is store in database.

Implements cqosdb::ParameterSet.

void cqosdb::Algorithm::addAParameter ( Parameter aParam  )  [virtual]

Add a parameter to the set.

Implements cqosdb::ParameterSet.

Parameter* cqosdb::Algorithm::getParameterAt ( string  name  )  [virtual]

Get a parameter in the set.

Parameters:
name Parameter name

Implements cqosdb::ParameterSet.

Parameter* cqosdb::Algorithm::getParameterAt ( int  index  )  [virtual]

Get a parameter in the set.

Parameters:
index Parameter index in the set

Implements cqosdb::ParameterSet.

void cqosdb::Algorithm::setParameterValueAt ( string  name,
int  value 
)

void cqosdb::Algorithm::setParameterValueAt ( string  name,
long  value 
)

void cqosdb::Algorithm::setParameterValueAt ( string  name,
double  value 
)

void cqosdb::Algorithm::setParameterValueAt ( string  name,
string  value 
)

void cqosdb::Algorithm::setParameterValueAt ( int  index,
int  value 
)

void cqosdb::Algorithm::setParameterValueAt ( int  index,
long  value 
)

void cqosdb::Algorithm::setParameterValueAt ( int  index,
double  value 
)

void cqosdb::Algorithm::setParameterValueAt ( int  index,
string  value 
)

bool cqosdb::Algorithm::compareWith ( ParameterSet another,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Compare with another parameter set of the same type.

Parameters:
another another parameter set
tMap comparison tolerance values
rMap comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT
Returns:
true if every pair of parameters comparison is true false otherwise

Implements cqosdb::ParameterSet.

string cqosdb::Algorithm::getDBConditions ( int *  tbIndices,
map< string, double >  tMap,
map< string, int >  rMap 
) [virtual]

Produce a SQL string text that specifies conditions related to the parameter set, which can be used in 'where' clause in a SQL command.

Parameters:
tbIndices indices of tables storing the parameter set
tMap comparison tolerance values
rMap comparison relations, either L, LTEQ, EQ, NEQ, GT, GTEQ, or BT

Implements cqosdb::ParameterSet.

Algorithm& cqosdb::Algorithm::operator= ( const Algorithm other  ) 

ParameterSet* cqosdb::Algorithm::clone (  )  [virtual]

Implements cqosdb::ParameterSet.


Member Data Documentation


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