#include <cObjectFitnessAlgorithm.h>
List of all members.
Detailed Description
Definition at line 59 of file cObjectFitnessAlgorithm.h.
Constructor & Destructor Documentation
enviroment::cObjectFitnessAlgorithm::cObjectFitnessAlgorithm |
( |
| ) |
|
enviroment::cObjectFitnessAlgorithm::cObjectFitnessAlgorithm |
( |
cIndividual * |
pInOriginalIndividual | ) |
|
constructor
- Parameters:
-
pInOriginalIndividual | the individual with which the fitness should be evalued; Beware: this object won't be copied, so don't delete it as long as this object exists |
enviroment::cObjectFitnessAlgorithm::cObjectFitnessAlgorithm |
( |
const cObjectFitnessAlgorithm & |
objectFitnessAlgorithm | ) |
|
copyconstructor
- Parameters:
-
virtual enviroment::cObjectFitnessAlgorithm::~cObjectFitnessAlgorithm |
( |
| ) |
|
|
pure virtual |
Member Function Documentation
This function evalues the fitness for the given individual. Beware: You have to delete the returned fitness after usage.
- See also:
- pOriginalIndividual
- Parameters:
-
individual | the cIndividual for which a fitnessobject should be created |
- Returns:
- a pointer to a fitnessobject for the fitness of the given individual or NULL, if no fitness could be created
Implemented in enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual const cObjectFitness* enviroment::cObjectFitnessAlgorithm::getBestFitness |
( |
| ) |
const |
|
pure virtual |
This Method returns the best possible fitness the algorithm can create. No individual with a better/ higher fitness can be created with this algorithm. Normaly this would be an indivudual which represents the original individual perfectly and don't use recources. If no best possible fitness can be evalued NULL is returned.
- Returns:
- a refernce to the best possible fitness or NULL, if non can be creted
Implemented in enviroment::fib::cFibObjectFitnessAlgorithm, and enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual string enviroment::cObjectFitnessAlgorithm::getClassName |
( |
| ) |
const |
|
virtual |
cIndividual* enviroment::cObjectFitnessAlgorithm::getOriginalIndividual |
( |
| ) |
|
const cIndividual* enviroment::cObjectFitnessAlgorithm::getOriginalIndividual |
( |
| ) |
const |
virtual const cObjectFitness* enviroment::cObjectFitnessAlgorithm::getWorstCaseFitness |
( |
| ) |
const |
|
pure virtual |
This Method returns the worst case fitness for the algorithm and originalindividual. An individual with the worst case fitness can easyly be created. Normaly this would be the fitness of the originalindividual. If no worst case fitness can be evalued NULL is returned.
- Returns:
- a refernce to the worst case fitness or NULL, if non can be created
Implemented in enviroment::fib::cFibObjectFitnessAlgorithm, and enviroment::fib::cFibObjectFitnessBasicAlgorithm.
virtual bool enviroment::cObjectFitnessAlgorithm::setOriginalIndividual |
( |
cIndividual * |
pInOriginalIndividual | ) |
|
|
virtual |
Member Data Documentation
pthread_mutex_t enviroment::cObjectFitnessAlgorithm::mutexOriginalIndividual |
|
mutableprotected |
cIndividual* enviroment::cObjectFitnessAlgorithm::pOriginalIndividual |
|
protected |
The individual with which the fitness should be evalued. The more similar the given individual is to this (originalIndividual) the higher its fitness will be, if it's other properties (e.g. size) are the same.
Definition at line 69 of file cObjectFitnessAlgorithm.h.
The documentation for this class was generated from the following file: