ExtreamTestFitnessStrategy Class Reference

An example implementation and a extreme test for gen. More...

#include <ExtreamTestFitnessStrategy.h>

Inherits IFitnessStrategy.

Inheritance diagram for ExtreamTestFitnessStrategy:

Inheritance graph
[legend]
Collaboration diagram for ExtreamTestFitnessStrategy:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

An example implementation and a extreme test for gen.

Alg.


Constructor & Destructor Documentation

ExtreamTestFitnessStrategy ( IFitnessStrategy fitness  ) 

constructor This strategy needs a other fitness strategy to calculate the resulting fitness.

Parameters:
fitness (IFitnessStrategy*) the other fitness

~ExtreamTestFitnessStrategy (  )  [virtual]

default destructor do nothing


Member Function Documentation

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.

Parameters:
individual (const Indivual*) the individual for which the value is calculated
Returns:
(double) the result

Implements IFitnessStrategy.


The documentation for this class was generated from the following files:
Generated on Fri Oct 30 16:29:02 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7