Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExtreamTestFitnessStrategy Class Reference

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

#include <ExtreamTestFitnessStrategy.h>

Inheritance diagram for ExtreamTestFitnessStrategy:
Collaboration diagram for ExtreamTestFitnessStrategy:

Public Member Functions

 ExtreamTestFitnessStrategy (IFitnessStrategy *fitness)
 constructor This strategy needs a other fitness strategy to calculate the resulting fitness. More...
 
virtual ~ExtreamTestFitnessStrategy ()
 default destructor do nothing More...
 
virtual double getFitness (const Individual *individual)
 implementation for getFitness of IFitnessStrategy. More...
 
- Public Member Functions inherited from IFitnessStrategy
 IFitnessStrategy ()
 default constructor do nothing More...
 
virtual ~IFitnessStrategy ()
 default destructor do nothing More...
 

Detailed Description

An example implementation and a extreme test for gen.

Alg.

Constructor & Destructor Documentation

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

Parameters
fitness(IFitnessStrategy*) the other fitness

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: