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:

Inheritance graph
[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:
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