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

# TemplateTaskedGaSimulationFitnessStrategy Class Reference

the fitness strategy for this demonstration simulation More...

`#include <TemplateTaskedGaSimulationFitnessStrategy.h>`

Inherits IFitnessStrategy.

Collaboration diagram for TemplateTaskedGaSimulationFitnessStrategy:
[legend]

List of all members.

## Public Member Functions
| TemplateTaskedGaSimulationFitnessStrategy ()
| default constructor
virtual | ~TemplateTaskedGaSimulationFitnessStrategy ()
| default destructor
virtual double | getFitness (const Individual *individual)
| this return the saved fitness value (entropy)
## Public Attributes
std::vector< double > | m_storage
| a storage for all Entropies!

## Detailed Description

the fitness strategy for this demonstration simulation

## Constructor & Destructor Documentation

TemplateTaskedGaSimulationFitnessStrategy | ( |  | ) |

default constructor

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

default destructor

## Member Function Documentation

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

this return the saved fitness value (entropy)

Be careful because this method isn't safe for individuals, which are not saved in the storage!!!

Parameters:

  | individual | (for this we search the entropy)

Returns:
  the fitness

Implements IFitnessStrategy.

## Member Data Documentation

std::vector<double> m_storage

a storage for all Entropies!

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

- TemplateTaskedGaSimulationFitnessStrategy.h
- TemplateTaskedGaSimulationFitnessStrategy.cpp