The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
enviroment::cEndConditionCheck Class Reference

#include <cEndConditionCheck.h>

Collaboration diagram for enviroment::cEndConditionCheck:

List of all members.

Public Member Functions

 cEndConditionCheck ()
 cEndConditionCheck (const cEndConditionCheck &endConditionCheck)
virtual ~cEndConditionCheck ()
virtual string getClassName () const
virtual bool endConditionCheck ()
cObjectFitnessgetMaxFitness () const
bool setMaxFitness (cObjectFitness *fitness=NULL)
unsigned long getMaxOperationCalls () const
bool setMaxOperationCalls (unsigned long lMaxCalls=0)
double getMaxCpuRuntime () const
double setMaxCpuRuntime (double dMaxCpuTime=-1.0)
double getMaxRuntime () const
bool setMaxRuntime (double dMaxTime=-1.0)
time_t getMaxDate () const
bool setMaxDate (time_t tMaxDate=0)
virtual cEndConditionCheckclone () const

Protected Attributes

cObjectFitnesspMaxFitness
unsigned long lMaxOperationCalls
double dMaxCpuRuntime
double dMaxRuntime
time_t maxDate

Static Protected Attributes

static bool bSignalAbortReceived
static bool bSignalInterruptReceived
static bool bSignalTerminateReceived

Static Private Member Functions

static void catchSignalAbort (int parameter)
static void catchSignalInterrupt (int parameter)
static void catchSignalTerminate (int parameter)

Detailed Description

Definition at line 62 of file cEndConditionCheck.h.


Constructor & Destructor Documentation

enviroment::cEndConditionCheck::cEndConditionCheck ( )

standardconstructor

enviroment::cEndConditionCheck::cEndConditionCheck ( const cEndConditionCheck endConditionCheck)

copyconstructor

virtual enviroment::cEndConditionCheck::~cEndConditionCheck ( )
virtual

Destructor of the class cEndConditionCheck.


Member Function Documentation

static void enviroment::cEndConditionCheck::catchSignalAbort ( int  parameter)
staticprivate

This method should catch the signal abort.

See also:
bSignalAbortReceived
static void enviroment::cEndConditionCheck::catchSignalInterrupt ( int  parameter)
staticprivate

This method should catch the signal interrupt.

See also:
bSignalInterruptReceived
static void enviroment::cEndConditionCheck::catchSignalTerminate ( int  parameter)
staticprivate

This method should catch the signal terminate.

See also:
bSignalTerminateReceived
virtual cEndConditionCheck* enviroment::cEndConditionCheck::clone ( ) const
virtual

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:
dMaxCpuTimethe 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:
tMaxDatethe 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:
fitnessthe 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:
lMaxCallsthe 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:
dMaxTimethe 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.

cObjectFitness* enviroment::cEndConditionCheck::pMaxFitness
protected

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: