#include <Algorithm.hxx>
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. | |
Parameter * | getParameterAt (string name) |
Get a parameter in the set. | |
Parameter * | getParameterAt (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. | |
Algorithm & | operator= (const Algorithm &other) |
ParameterSet * | clone () |
Public Attributes | |
vector< FieldType > | paramVec |
cqosdb::Algorithm::Algorithm | ( | ) |
cqosdb::Algorithm::Algorithm | ( | const Algorithm & | other | ) |
cqosdb::Algorithm::~Algorithm | ( | ) |
string cqosdb::Algorithm::getClassName | ( | ) | [virtual] |
int cqosdb::Algorithm::getNumOfParameters | ( | ) | [virtual] |
string cqosdb::Algorithm::getTBName | ( | ) | [virtual] |
void cqosdb::Algorithm::addAParameter | ( | Parameter & | aParam | ) | [virtual] |
Parameter* cqosdb::Algorithm::getParameterAt | ( | string | name | ) | [virtual] |
Parameter* cqosdb::Algorithm::getParameterAt | ( | int | index | ) | [virtual] |
Get a parameter in the set.
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.
another | another parameter set | |
tMap | comparison tolerance values | |
rMap | comparison relations, which could be LT, LTEQ, GT, GTEQ, EQ, NEQ, BT |
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.
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.
ParameterSet* cqosdb::Algorithm::clone | ( | ) | [virtual] |
Implements cqosdb::ParameterSet.
vector<FieldType> cqosdb::Algorithm::paramVec |