#include <cEndConditionCheck.h>
List of all members.
Detailed Description
Definition at line 62 of file cEndConditionCheck.h.
Constructor & Destructor Documentation
enviroment::cEndConditionCheck::cEndConditionCheck |
( |
| ) |
|
enviroment::cEndConditionCheck::cEndConditionCheck |
( |
const cEndConditionCheck & |
endConditionCheck | ) |
|
virtual enviroment::cEndConditionCheck::~cEndConditionCheck |
( |
| ) |
|
|
virtual |
Member Function Documentation
static void enviroment::cEndConditionCheck::catchSignalAbort |
( |
int |
parameter | ) |
|
|
staticprivate |
static void enviroment::cEndConditionCheck::catchSignalInterrupt |
( |
int |
parameter | ) |
|
|
staticprivate |
static void enviroment::cEndConditionCheck::catchSignalTerminate |
( |
int |
parameter | ) |
|
|
staticprivate |
This method clones this object.
- Returns:
- a clone of this object
virtual bool enviroment::cEndConditionCheck::endConditionCheck |
( |
| ) |
|
|
virtual |
- Returns:
- true if the endcondition holds and the enviroment should be stoped, else false
virtual string enviroment::cEndConditionCheck::getClassName |
( |
| ) |
const |
|
virtual |
- Returns:
- the name of this class
double enviroment::cEndConditionCheck::getMaxCpuRuntime |
( |
| ) |
const |
- See also:
- dMaxCpuRuntime
- Returns:
- The maximum cpu -time (in system clocks) the enviroment can consume. If negativ (-1.0) the maximal cpu -time condition isn't checked/ is deaktivated.
time_t enviroment::cEndConditionCheck::getMaxDate |
( |
| ) |
const |
- See also:
- maxDate
- Returns:
- The (real-)time /date till which the enviroment can run. If 0 the maximal date condition isn't checked/ is deaktivated.
cObjectFitness* enviroment::cEndConditionCheck::getMaxFitness |
( |
| ) |
const |
- See also:
- pMaxFitness
- Returns:
- The maximal fitness for individuals in the enviroment. If NULL the maximal fitness condition isn't checked/ is deaktivated.
unsigned long enviroment::cEndConditionCheck::getMaxOperationCalls |
( |
| ) |
const |
- See also:
- lMaxOperationCalls
- Returns:
- The maximum calls of operators/ operations executed of the enviroment. If 0 the maximal operators condition isn't checked/ is deaktivated.
double enviroment::cEndConditionCheck::getMaxRuntime |
( |
| ) |
const |
- See also:
- dMaxRuntime
- Returns:
- The maximum runtime (in secounds) the enviroment can consume. If negativ (-1.0) the maximal runtime condition isn't checked/ is deaktivated.
double enviroment::cEndConditionCheck::setMaxCpuRuntime |
( |
double |
dMaxCpuTime = -1.0 | ) |
|
This method sets the maximum cpu -time (in system clocks) the enviroment can consume. If negativ (standardvalue = -1.0) the maximal cpu -time condition isn't checked/ is deaktivated.
- See also:
- dMaxCpuRuntime
- Parameters:
-
dMaxCpuTime | the maximal cpu -time the enviroment can consume of the enviroment |
- Returns:
- true if the maximal cpu -time was set, else false
bool enviroment::cEndConditionCheck::setMaxDate |
( |
time_t |
tMaxDate = 0 | ) |
|
This method sets the (real-)time /date till which the enviroment can run. If 0 (standardvalue) the maximal date condition isn't checked/ is deaktivated.
- See also:
- maxDate
- Parameters:
-
tMaxDate | the maximal date till which the enviroment can run of the enviroment |
- Returns:
- true if the maximal date was set, else false
bool enviroment::cEndConditionCheck::setMaxFitness |
( |
cObjectFitness * |
fitness = NULL | ) |
|
This method sets the maximal fitness for individuals in the enviroment. If NULL is set (standardvalue) the maximal fitness condition isn't checked/ is deaktivated.
- See also:
- pMaxFitness
- Parameters:
-
fitness | the maximal fitness for individuals in the enviroment |
- Returns:
- true if the fitness was set, else false
bool enviroment::cEndConditionCheck::setMaxOperationCalls |
( |
unsigned long |
lMaxCalls = 0 | ) |
|
This method sets the maximum calls of operators/ operations executed of the enviroment. If 0 is set (standardvalue) the operators fitness condition isn't checked/ is deaktivated.
- See also:
- lMaxOperationCalls
- Parameters:
-
lMaxCalls | the maximal calls of operators/ operations executed of the enviroment |
- Returns:
- true if the maximal calls was set, else false
bool enviroment::cEndConditionCheck::setMaxRuntime |
( |
double |
dMaxTime = -1.0 | ) |
|
This method sets the maximum runtime (in secounds) the enviroment can consume. If negativ (standardvalue = -1.0) the maximal runtime condition isn't checked/ is deaktivated.
- See also:
- dMaxRuntime
- Parameters:
-
dMaxTime | the maximal runtime the enviroment can consume of the enviroment |
- Returns:
- true if the maximal runtime was set, else false
Member Data Documentation
bool enviroment::cEndConditionCheck::bSignalAbortReceived |
|
staticprotected |
This variable is true if an signal abort was received, else false.
Definition at line 99 of file cEndConditionCheck.h.
bool enviroment::cEndConditionCheck::bSignalInterruptReceived |
|
staticprotected |
This variable is true if an signal interrupt was received, else false.
Definition at line 104 of file cEndConditionCheck.h.
bool enviroment::cEndConditionCheck::bSignalTerminateReceived |
|
staticprotected |
This variable is true if an signal terminat was received, else false.
Definition at line 109 of file cEndConditionCheck.h.
double enviroment::cEndConditionCheck::dMaxCpuRuntime |
|
protected |
The maximum cpu -time (in system clocks) the enviroment can consume. If negativ (-1.0) the maximal cpu -time condition isn't checked/ is deaktivated.
Definition at line 81 of file cEndConditionCheck.h.
double enviroment::cEndConditionCheck::dMaxRuntime |
|
protected |
The maximum runtime (in secounds) the enviroment can consume. If negativ (-1.0) the maximal runtime condition isn't checked/ is deaktivated.
Definition at line 87 of file cEndConditionCheck.h.
unsigned long enviroment::cEndConditionCheck::lMaxOperationCalls |
|
protected |
The maximum calls of operators/ operations executed of the enviroment. If 0 the maximal operators condition isn't checked/ is deaktivated.
Definition at line 75 of file cEndConditionCheck.h.
time_t enviroment::cEndConditionCheck::maxDate |
|
protected |
The (real-)time /date till which the enviroment can run. If 0 the maximal date condition isn't checked/ is deaktivated.
Definition at line 93 of file cEndConditionCheck.h.
The maximal fitness for individuals in the enviroment. If NULL the maximal fitness condition isn't checked/ is deaktivated.
Definition at line 69 of file cEndConditionCheck.h.
The documentation for this class was generated from the following file: