#include <cIndividualInfo.h>
List of all members.
Protected Member Functions |
bool | kill () |
Detailed Description
Definition at line 55 of file cIndividualInfo.h.
Constructor & Destructor Documentation
enviroment::cIndividualInfo::cIndividualInfo |
( |
unsigned long |
ulAlgorithmIdentifier, |
|
|
const list< cIndividualIdentifier > & |
liIdentifierOfParents, |
|
|
const cObjectFitness & |
inFitness, |
|
|
const string & |
szOperationName, |
|
|
const string & |
szOperationInfo, |
|
|
const cOperationIdentifier & |
operationIdentifier, |
|
|
time_t |
inCreationTime, |
|
|
double |
dOperationCost, |
|
|
const cObjectFitness * |
inFitnessOfBestAtCreationTime |
|
) |
| |
constructor
- Parameters:
-
ulAlgorithmIdentifier | the identifier of the enviroment instantiation |
liIdentifierOfParents | the list with the identifiers of the parent individuals of the individual for which this info is |
pFitness | the pFitness of the individual |
szOperationName | the name of the operation which created the individual |
szOperationInfo | some more information about the operation which created the individual |
operationIdentifier | the identifier of the operation which created the individual |
creationTime | the time_t when the individual was created |
dOperationCost | the cost for the creation of the individual |
inFitnessOfBestAtCreationTime | the pFitness of the best individual, at the time_t the individual was created |
enviroment::cIndividualInfo::cIndividualInfo |
( |
const cIndividualInfo & |
individualInfo | ) |
|
copyconstructor
- Parameters:
-
virtual enviroment::cIndividualInfo::~cIndividualInfo |
( |
| ) |
|
|
virtual |
Member Function Documentation
This method clones this object.
- Returns:
- a clone of this object
virtual bool enviroment::cIndividualInfo::equal |
( |
const cIndividualInfo & |
idIndividual, |
|
|
bool |
checkIdentifiers = true |
|
) |
| const |
|
virtual |
Comparisson on equal method for two cIndividualInfo objects.
- Parameters:
-
idIndividual | the idIndividualobject to compare this idIndividualobject to |
checkIdentifiers | if true (standradvalue) the identifiers will be checked also, else not |
- Returns:
- true if the cIndividualInfo this object represents is equal to the cIndividualInfo the given object idIndividual represents
time_t enviroment::cIndividualInfo::getCreationTime |
( |
| ) |
const |
- See also:
- creationTime
- Returns:
- the time_t when the individual was created
const cObjectFitness* enviroment::cIndividualInfo::getFitness |
( |
| ) |
const |
- See also:
- pFitness
- Returns:
- a pointer to the pFitness of the individual
const cObjectFitness* enviroment::cIndividualInfo::getFitnessOfBestAtCreationTime |
( |
| ) |
const |
- See also:
- idIndividual
- Returns:
- the identifier of a individual
- See also:
- liIdsParents
- Returns:
- the list with the identifiers of the parent individuals of the individual for which this info is
double enviroment::cIndividualInfo::getOperationCost |
( |
| ) |
const |
- See also:
- idCreatingOperation
- Returns:
- the identifier of the operation which created the individual
string enviroment::cIndividualInfo::getOperatorInfo |
( |
| ) |
const |
string enviroment::cIndividualInfo::getOperatorName |
( |
| ) |
const |
bool enviroment::cIndividualInfo::isLiving |
( |
| ) |
const |
bool enviroment::cIndividualInfo::kill |
( |
| ) |
|
|
protected |
This method kills the individual, so it isn't living anymor. (The method dosn't change or deletes the object of the individual, but sets it's status to not living.)
- See also:
- isLiving()
-
bIsLiving
- Returns:
- true if the individal was killed, else false
bool enviroment::cIndividualInfo::operator!= |
( |
const cIndividualInfo & |
idIndividual | ) |
const |
Comparisson on not equal operator for two cIndividualInfo objects.
- Parameters:
-
idIndividual | the idIndividualobject to compare this idIndividualobject to |
- Returns:
- true if the cIndividualInfo this object represents is not equal to the cIndividualInfo the given object idIndividual represents
bool enviroment::cIndividualInfo::operator== |
( |
const cIndividualInfo & |
idIndividual | ) |
const |
Comparisson on equal operator for two cIndividualInfo objects.
- Parameters:
-
idIndividual | the idIndividualobject to compare this idIndividualobject to |
- Returns:
- true if the cIndividualInfo this object represents is equal to the cIndividualInfo the given object idIndividual represents
Friends And Related Function Documentation
Member Data Documentation
bool enviroment::cIndividualInfo::bIsLiving |
|
protected |
if true the individual is living; then a object should exists for it; if false the individual info exists for giving information about an object that dosn't exists anymore
Definition at line 73 of file cIndividualInfo.h.
time_t enviroment::cIndividualInfo::creationTime |
|
protected |
the time_t when the individual was created; this is the time_t, when the individual was inserted in the enviroment
Definition at line 106 of file cIndividualInfo.h.
double enviroment::cIndividualInfo::dCreationOperationCost |
|
protected |
the cost for the creation of the individual; this should be a value which is sytem independent
Definition at line 112 of file cIndividualInfo.h.
the identifier of the operation which created the individual
Definition at line 100 of file cIndividualInfo.h.
the identifier of a individual, wich is unique for all individuals
Definition at line 65 of file cIndividualInfo.h.
the list with the identifiers of the parent individuals of the individual for which this info is
Definition at line 79 of file cIndividualInfo.h.
cObjectFitness* enviroment::cIndividualInfo::pFitnessOfBestAtCreationTime |
|
protected |
the pFitness of the best individual, at the time_t the individual was created
Definition at line 118 of file cIndividualInfo.h.
string enviroment::cIndividualInfo::szCreatingOperationInfo |
|
protected |
some more information about the operation which created the individual; like: parameters or used algorithms
Definition at line 95 of file cIndividualInfo.h.
string enviroment::cIndividualInfo::szCreatingOperationName |
|
protected |
the name of the operation which created the individual
Definition at line 89 of file cIndividualInfo.h.
The documentation for this class was generated from the following file: