Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
this interface is for a select strategy of the generation class. More...
#include <ISelectStrategy.h>
Public Member Functions | |
ISelectStrategy () | |
default constructor More... | |
virtual | ~ISelectStrategy () |
default destructor More... | |
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. More... | |
this interface is for a select strategy of the generation class.
ISelectStrategy | ( | ) |
default constructor
|
virtual |
default destructor
|
pure virtual |
abstract function which select the individual from the old generation and copy it in the new generation.
oldGeneration | (Generation*) the old generation from where the individual comes |
newGeneration | (Generation*) the new generation where the selected individual should be |
Implemented in RandomSelectStrategy, TournamentSelectStrategy, and EliteSelectStrategy.