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

# SumFitnessStrategy Class Reference

Test implementation. More...

`#include <SumFitnessStrategy.h>`

Inherits IFitnessStrategy.

Collaboration diagram for SumFitnessStrategy:
[legend]

List of all members.

## Public Member Functions
| SumFitnessStrategy ()
| default constructor
virtual | ~SumFitnessStrategy ()
| default destructor
virtual double | getFitness (const Individual *individual)
| implements the getFitness function of IFitnessStrategy.

## Detailed Description

Test implementation.

## Constructor & Destructor Documentation

SumFitnessStrategy | ( |  | ) |

default constructor

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

default destructor

## Member Function Documentation

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

implements the getFitness function of IFitnessStrategy.

Calculate the Sum of all double gens.

Parameters:

  | individual | (const Individual*) the individual

Returns:
  (double) the result

Implements IFitnessStrategy.

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

- SumFitnessStrategy.h
- SumFitnessStrategy.cpp