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

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# IFitnessStrategy Class Reference

The interface for the fitness strategy of an individual. More...

`#include <IFitnessStrategy.h>`

Inherited by EuclidicDistanceFitnessStrategy, ExtreamTestFitnessStrategy, InvertedFitnessStrategy, SumFitnessStrategy, and TestFitnessStrategy.

Inheritance diagram for IFitnessStrategy:

[legend]
List of all members.

## Public Member Functions
| IFitnessStrategy ()
| default constructor do nothing
virtual | ~IFitnessStrategy ()
| default destructor do nothing
virtual double | getFitness (const Individual *individual)=0
| declaration of the function getFitness.

## Detailed Description

The interface for the fitness strategy of an individual.

## Constructor & Destructor Documentation

IFitnessStrategy | ( |  | ) |

default constructor do nothing

~IFitnessStrategy | ( |  | ) | `[virtual]`

default destructor do nothing

## Member Function Documentation

virtual double getFitness | ( | const Individual * | individual | ) | `[pure virtual]`

declaration of the function getFitness.

This function will give the fitness value of an individual back. For which individual is him called by 'individual'.

Parameters:

  | individual | (const Individual*) calculate the fitness for this individual

Returns:
  (double) The fitness value

Implemented in EuclidicDistanceFitnessStrategy, ExtreamTestFitnessStrategy, InvertedFitnessStrategy, SumFitnessStrategy, and TestFitnessStrategy.

The documentation for this class was generated from the following files:

- IFitnessStrategy.h
- IFitnessStrategy.cpp