Robot Simulator of the Robotics Group for Self-Organization of Control: ExtreamTestFitnessStrategy Class Reference

# ExtreamTestFitnessStrategy Class Reference

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

`#include <ExtreamTestFitnessStrategy.h>`

Inherits IFitnessStrategy.

Collaboration diagram for ExtreamTestFitnessStrategy:
[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:

- ExtreamTestFitnessStrategy.h
- ExtreamTestFitnessStrategy.cpp