#include <cObjectFitness.h>
List of all members.
Detailed Description
Definition at line 56 of file cObjectFitness.h.
Constructor & Destructor Documentation
enviroment::cObjectFitness::cObjectFitness |
( |
double |
dInFittness, |
|
|
const cObjectFitnessAlgorithm * |
pInObjectFitnessAlgorithm = NULL |
|
) |
| |
|
protected |
constructor
- Parameters:
-
dInFittness | a value for the fitness of the object; the higher this value is the better the fitness |
pInObjectFitnessAlgorithm | the algorithm with which this fitness was created; if NULL no algorithm had created this object; Beware: this object won't be copied, if you delete it getFitnessAlgorithm() will return an invalid pointer |
enviroment::cObjectFitness::cObjectFitness |
( |
const cObjectFitness & |
objectFitness | ) |
|
copyconstructor
- Parameters:
-
virtual enviroment::cObjectFitness::~cObjectFitness |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual bool enviroment::cObjectFitness::equal |
( |
const cObjectFitness & |
fitness | ) |
const |
|
virtual |
Comparisson on equal method for two fitness objects.
- Parameters:
-
fitness | the fitnessobject to compare this fitnessobject to |
- Returns:
- true if the fitness this object represents is equal to the fitness the given object fitness represents
virtual string enviroment::cObjectFitness::getClassName |
( |
| ) |
const |
|
virtual |
virtual double enviroment::cObjectFitness::getFitness |
( |
| ) |
const |
|
virtual |
- Returns:
- a value for the fitness of the associated object; the higher this value is the better the fitness
virtual bool enviroment::cObjectFitness::operator< |
( |
const cObjectFitness & |
fitness | ) |
const |
|
virtual |
Comparisson on lower operator for two fitness objects.
- Parameters:
-
fitness | the fitnessobject to compare this fitnessobject to |
- Returns:
- true if the fitness this object represents is lower to the fitness the given object fitness represents; the higher the fitness is, the better is the fitness of the associated object
virtual bool enviroment::cObjectFitness::operator== |
( |
const cObjectFitness & |
fitness | ) |
const |
|
virtual |
Comparisson on equal operator for two fitness objects.
- Parameters:
-
fitness | the fitnessobject to compare this fitnessobject to |
- Returns:
- true if the fitness this object represents is equal to the fitness the given object fitness represents
Friends And Related Function Documentation
Member Data Documentation
double enviroment::cObjectFitness::dFittness |
|
protected |
a value for the fitness of the object; the higher this value is the better the fitness of the associated object
Definition at line 66 of file cObjectFitness.h.
the algorithm with which this fitness was created; if NULL no algorithm had created this object
Definition at line 72 of file cObjectFitness.h.
The documentation for this class was generated from the following file: