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

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

- Search for |

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

# ISelectStrategy Class Reference

this interface is for a select strategy of the generation class. More...

`#include <ISelectStrategy.h>`

Inherited by EliteSelectStrategy, RandomSelectStrategy, and TournamentSelectStrategy.

Inheritance diagram for ISelectStrategy:

[legend]
List of all members.

## Public Member Functions
| ISelectStrategy ()
| default constructor
virtual | ~ISelectStrategy ()
| default destructor
virtual void | select (Generation *oldGeneration, Generation *newGeneration)=0
| abstract function which select the individual from the old generation and copy it in the new generation.

## Detailed Description

this interface is for a select strategy of the generation class.

## Constructor & Destructor Documentation

ISelectStrategy | ( |  | ) |

default constructor

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

default destructor

## Member Function Documentation

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

abstract function which select the individual from the old generation and copy it in the new generation.

Parameters:

  | oldGeneration | (Generation*) the old generation from where the individual comes
  | newGeneration | (Generation*) the new generation where the selected individual should be

Implemented in EliteSelectStrategy, RandomSelectStrategy, and TournamentSelectStrategy.

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

- ISelectStrategy.h
- ISelectStrategy.cpp