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
IFitnessStrategy Class Referenceabstract

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

#include <IFitnessStrategy.h>

Inheritance diagram for IFitnessStrategy:

Public Member Functions

 IFitnessStrategy ()
 default constructor do nothing More...
 
virtual ~IFitnessStrategy ()
 default destructor do nothing More...
 
virtual double getFitness (const Individual *individual)=0
 declaration of the function getFitness. More...
 

Detailed Description

The interface for the fitness strategy of an individual.

Constructor & Destructor Documentation

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 ExtreamTestFitnessStrategy, InvertedFitnessStrategy, EuclidicDistanceFitnessStrategy, TemplateTaskedGaSimulationFitnessStrategy, SumFitnessStrategy, and TestFitnessStrategy.


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