#include <AlpsParams.h>
Public Types | |
enum | boolParams { checkMemory, deleteDeadNode, interClusterBalance, intraClusterBalance, printSolution, endOfBoolParams } |
Character parameters. More... | |
enum | intParams { bufSpare, clockType, eliteSize, hubInitNodeNum, hubMsgLevel, hubNum, largeSize, logFileLevel, masterInitNodeNum, masterReportInterval, hubWorkClusterSizeLimit, mediumSize, msgLevel, nodeLimit, nodeLogInterval, processNum, staticBalanceScheme, searchStrategy, searchStrategyRampUp, smallSize, solLimit, unitWorkNodes, workerMsgLevel, endOfIntParams } |
Integer paramters. More... | |
enum | dblParams { changeWorkThreshold, donorThreshold, hubReportPeriod, masterBalancePeriod, needWorkThreshold, receiverThreshold, timeLimit, tolerance, unitWorkTime, zeroLoad, endOfDblParams } |
Double parameters. More... | |
enum | strParams { instance, logFile, endOfStrParams } |
String parameters. More... | |
enum | strArrayParams { strArrayDummy, endOfStrArrayParams } |
There are no string array parameters. More... | |
Public Member Functions | |
virtual | ~AlpsParams () |
AlpsParams & | operator= (const AlpsParams &x) |
virtual void | createKeywordList () |
Method for creating the list of keyword looked for in the parameter file. | |
virtual void | setDefaultEntries () |
Method for setting the default values for the parameters. | |
void | setEntry (const boolParams key, const char *val) |
char* is true(1) or false(0), not used | |
void | setEntry (const boolParams key, const char val) |
char is true(1) or false(0), not used | |
void | setEntry (const boolParams key, const bool val) |
This method is the one that ever been used. | |
void | setEntry (const intParams key, const char *val) |
void | setEntry (const intParams key, const int val) |
void | setEntry (const dblParams key, const char *val) |
void | setEntry (const dblParams key, const double val) |
void | setEntry (const strParams key, const char *val) |
void | setEntry (const strArrayParams key, const char *val) |
Constructors. | |
AlpsParams () | |
The default constructor creates a parameter set with from the template argument structure. | |
Query methods | |
For user's application: Copy following code exactly (till the end of this class) and do NOT change anything. The reason can not put following functions in base class
| |
bool | entry (const boolParams key) const |
int | entry (const intParams key) const |
double | entry (const dblParams key) const |
const std::string & | entry (const strParams key) const |
const std::vector< std::string > & | entry (const strArrayParams key) const |
Packing/unpacking methods | |
void | pack (AlpsEncoded &buf) |
Pack the parameter set into buf. | |
void | unpack (AlpsEncoded &buf) |
Unpack the parameter set from buf. |
Definition at line 36 of file AlpsParams.h.
Character parameters.
All of these variable are used as booleans (ture = 1, false = 0).
Definition at line 40 of file AlpsParams.h.
Integer paramters.
Definition at line 63 of file AlpsParams.h.
Double parameters.
Definition at line 155 of file AlpsParams.h.
String parameters.
instance |
The instance to be solved. Default: "NONE" |
logFile |
The name of log file. Default: "Alps.log " |
endOfStrParams |
Definition at line 196 of file AlpsParams.h.
There are no string array parameters.
Definition at line 209 of file AlpsParams.h.
AlpsParams::AlpsParams | ( | ) | [inline] |
The default constructor creates a parameter set with from the template argument structure.
The keyword list is created and the defaults are set.
Definition at line 224 of file AlpsParams.h.
virtual AlpsParams::~AlpsParams | ( | ) | [inline, virtual] |
Definition at line 238 of file AlpsParams.h.
AlpsParams& AlpsParams::operator= | ( | const AlpsParams & | x | ) | [inline] |
Definition at line 241 of file AlpsParams.h.
virtual void AlpsParams::createKeywordList | ( | ) | [virtual] |
Method for creating the list of keyword looked for in the parameter file.
Implements AlpsParameterSet.
virtual void AlpsParams::setDefaultEntries | ( | ) | [virtual] |
Method for setting the default values for the parameters.
Implements AlpsParameterSet.
bool AlpsParams::entry | ( | const boolParams | key | ) | const [inline] |
Definition at line 290 of file AlpsParams.h.
int AlpsParams::entry | ( | const intParams | key | ) | const [inline] |
Definition at line 292 of file AlpsParams.h.
double AlpsParams::entry | ( | const dblParams | key | ) | const [inline] |
Definition at line 294 of file AlpsParams.h.
const std::string& AlpsParams::entry | ( | const strParams | key | ) | const [inline] |
Definition at line 297 of file AlpsParams.h.
const std::vector<std::string>& AlpsParams::entry | ( | const strArrayParams | key | ) | const [inline] |
Definition at line 300 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const boolParams | key, | |
const char * | val | |||
) | [inline] |
char* is true(1) or false(0), not used
Definition at line 306 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const boolParams | key, | |
const char | val | |||
) | [inline] |
char is true(1) or false(0), not used
Definition at line 309 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const boolParams | key, | |
const bool | val | |||
) | [inline] |
This method is the one that ever been used.
Definition at line 312 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const intParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 315 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const intParams | key, | |
const int | val | |||
) | [inline] |
Definition at line 318 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const dblParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 321 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const dblParams | key, | |
const double | val | |||
) | [inline] |
Definition at line 324 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const strParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 327 of file AlpsParams.h.
void AlpsParams::setEntry | ( | const strArrayParams | key, | |
const char * | val | |||
) | [inline] |
Definition at line 330 of file AlpsParams.h.
void AlpsParams::pack | ( | AlpsEncoded & | buf | ) | [inline, virtual] |
Pack the parameter set into buf.
Reimplemented from AlpsParameterSet.
Definition at line 338 of file AlpsParams.h.
void AlpsParams::unpack | ( | AlpsEncoded & | buf | ) | [inline, virtual] |
Unpack the parameter set from buf.
Reimplemented from AlpsParameterSet.
Definition at line 352 of file AlpsParams.h.