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

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

- Search for |

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

# SumFitnessStrategy Class Reference

Test implementation. More...

`#include <SumFitnessStrategy.h>`

Inherits IFitnessStrategy.

Inheritance diagram for SumFitnessStrategy:

[legend]
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