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

# EliteSelectStrategy Class Reference

This class makes a elite select and bring only the best individual in the next generation. More...

`#include <EliteSelectStrategy.h>`

Inherits ISelectStrategy.

Collaboration diagram for EliteSelectStrategy:
[legend]

List of all members.

## Public Member Functions
| EliteSelectStrategy ()
| default constructor
virtual | ~EliteSelectStrategy ()
| default destructor
virtual void | select (Generation *oldGeneration, Generation *newGeneration)
| select the individual in the old generation which should be in the new generation (only the best).

## Detailed Description

This class makes a elite select and bring only the best individual in the next generation.

## Constructor & Destructor Documentation

EliteSelectStrategy | ( |  | ) |

default constructor

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

default destructor

## Member Function Documentation

void select | ( | Generation * | oldGeneration,
|  | Generation * | newGeneration |
| ) |  |  | `[virtual]`

select the individual in the old generation which should be in the new generation (only the best).

Parameters:

  | oldGeneration | (Generation*) the old generation
  | newGeneration | (Generation*) the new generation

Implements ISelectStrategy.

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

- EliteSelectStrategy.h
- EliteSelectStrategy.cpp