Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ISelectStrategy Class Referenceabstract

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

#include <ISelectStrategy.h>

Inheritance diagram for ISelectStrategy:

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...
 

Detailed Description

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

Constructor & Destructor Documentation

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 RandomSelectStrategy, TournamentSelectStrategy, and EliteSelectStrategy.


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