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::cIndividualInfo Class Reference

#include <cIndividualInfo.h>

Collaboration diagram for enviroment::cIndividualInfo:

List of all members.

Public Member Functions

 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)
 cIndividualInfo (const cIndividualInfo &individualInfo)
virtual ~cIndividualInfo ()
cIndividualIdentifier getIdentifier () const
bool isLiving () const
list< cIndividualIdentifiergetIdentifiersOfParents () const
const cObjectFitnessgetFitness () const
string getOperatorName () const
string getOperatorInfo () const
cOperationIdentifier getOperatorIdentifier () const
time_t getCreationTime () const
double getOperationCost () const
const cObjectFitnessgetFitnessOfBestAtCreationTime () const
virtual bool equal (const cIndividualInfo &idIndividual, bool checkIdentifiers=true) const
bool operator== (const cIndividualInfo &idIndividual) const
bool operator!= (const cIndividualInfo &idIndividual) const
virtual cIndividualInfoclone () const

Protected Member Functions

bool kill ()

Protected Attributes

cIndividualIdentifier idIndividual
bool bIsLiving
list< cIndividualIdentifierliIdsParents
cObjectFitnesspFitness
string szCreatingOperationName
string szCreatingOperationInfo
cOperationIdentifier idCreatingOperation
time_t creationTime
double dCreationOperationCost
cObjectFitnesspFitnessOfBestAtCreationTime

Friends

class cEnviroment
class cIndividual

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:
ulAlgorithmIdentifierthe identifier of the enviroment instantiation
liIdentifierOfParentsthe list with the identifiers of the parent individuals of the individual for which this info is
pFitnessthe pFitness of the individual
szOperationNamethe name of the operation which created the individual
szOperationInfosome more information about the operation which created the individual
operationIdentifierthe identifier of the operation which created the individual
creationTimethe time_t when the individual was created
dOperationCostthe cost for the creation of the individual
inFitnessOfBestAtCreationTimethe pFitness of the best individual, at the time_t the individual was created
enviroment::cIndividualInfo::cIndividualInfo ( const cIndividualInfo individualInfo)

copyconstructor

Parameters:
individualInfothe cIndividualInfo to copy
virtual enviroment::cIndividualInfo::~cIndividualInfo ( )
virtual

destructor


Member Function Documentation

virtual cIndividualInfo* enviroment::cIndividualInfo::clone ( ) const
virtual

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:
idIndividualthe idIndividualobject to compare this idIndividualobject to
checkIdentifiersif 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:
pFitnessOfBestAtCreationTime
Returns:
a pointer to the pFitness of the best individual, at the time_t the individual was created
cIndividualIdentifier enviroment::cIndividualInfo::getIdentifier ( ) const
See also:
idIndividual
Returns:
the identifier of a individual
list<cIndividualIdentifier> enviroment::cIndividualInfo::getIdentifiersOfParents ( ) const
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:
dCreationOperationCost
Returns:
the cost for the creation of the individual
cOperationIdentifier enviroment::cIndividualInfo::getOperatorIdentifier ( ) const
See also:
idCreatingOperation
Returns:
the identifier of the operation which created the individual
string enviroment::cIndividualInfo::getOperatorInfo ( ) const
See also:
szCreatingOperationInfo
Returns:
some more information about the operation which created the individual
string enviroment::cIndividualInfo::getOperatorName ( ) const
See also:
szCreatingOperationName
Returns:
the name of the operation which created the individual
bool enviroment::cIndividualInfo::isLiving ( ) const
See also:
kill()
bIsLiving
Returns:
true if the object is living, else false
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:
idIndividualthe 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:
idIndividualthe 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

friend class cEnviroment
friend

Definition at line 57 of file cIndividualInfo.h.

friend class cIndividual
friend

Definition at line 58 of file cIndividualInfo.h.


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.

cOperationIdentifier enviroment::cIndividualInfo::idCreatingOperation
protected

the identifier of the operation which created the individual

Definition at line 100 of file cIndividualInfo.h.

cIndividualIdentifier enviroment::cIndividualInfo::idIndividual
protected

the identifier of a individual, wich is unique for all individuals

Definition at line 65 of file cIndividualInfo.h.

list<cIndividualIdentifier> enviroment::cIndividualInfo::liIdsParents
protected

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::pFitness
protected

the pFitness of the individual

Definition at line 84 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: