#include <ExtreamTestFitnessStrategy.h>
Inherits IFitnessStrategy.
Inheritance diagram for ExtreamTestFitnessStrategy:


Public Member Functions | |
| ExtreamTestFitnessStrategy (IFitnessStrategy *fitness) | |
| constructor This strategy needs a other fitness strategy to calculate the resulting fitness. | |
| virtual | ~ExtreamTestFitnessStrategy () |
| default destructor do nothing | |
| virtual double | getFitness (const Individual *individual) |
| implementation for getFitness of IFitnessStrategy. | |
Alg.
| ExtreamTestFitnessStrategy | ( | IFitnessStrategy * | fitness | ) |
constructor This strategy needs a other fitness strategy to calculate the resulting fitness.
| fitness | (IFitnessStrategy*) the other fitness |
| ~ExtreamTestFitnessStrategy | ( | ) | [virtual] |
default destructor do nothing
| double getFitness | ( | const Individual * | individual | ) | [virtual] |
implementation for getFitness of IFitnessStrategy.
return aČ of the other fitness strategy if the value is lower than 10. Else it return 100.
| individual | (const Indivual*) the individual for which the value is calculated |
Implements IFitnessStrategy.
1.4.7