Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

SIGEL_GP::SIG_GPCrossOverTournament Class Reference

This class realizes the spezial tournament, which ends with a crossover of the winners. More...

#include <SIG_GPCrossOverTournament.h>

Inheritance diagram for SIGEL_GP::SIG_GPCrossOverTournament:

SIGEL_GP::SIG_GPTournament List of all members.

Public Methods

 SIG_GPCrossOverTournament (SIGEL_Tools::SIG_Randomizer& randomizer, SIG_GPFitnessTrainer& fitTrain, SIG_GPPopulation& actPool, SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP, int indPos1, int indPos2, int indPos3, int indPos4)
 The constructor of the crossovertournament. More...

virtual ~SIG_GPCrossOverTournament ()
 The destructor of the crossovertournament. More...

virtual bool run ()
 The virtual function effects the tournament to start. More...


Private Attributes

QString name1
QString name2

Detailed Description

This class realizes the spezial tournament, which ends with a crossover of the winners.

It inherites its basic structure from SIG_GPTournament and uses the static function crossOver of SIG_GPOperations for the genetic operation.

Definition at line 20 of file SIG_GPCrossOverTournament.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPCrossOverTournament::SIG_GPCrossOverTournament ( SIGEL_Tools::SIG_Randomizer & randomizer,
SIGEL_GP::SIG_GPFitnessTrainer & fitTrain,
SIGEL_GP::SIG_GPPopulation & actPool,
SIGEL_GP::SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP,
int indPos1,
int indPos2,
int indPos3,
int indPos4 )
 

The constructor of the crossovertournament.

Precondition:
The tournament creation routine creates a tournament with a crossover of the winners and the GPManager wants to compute the tournament.
Postcondition:
The crossovertournament object is created.
Parameters:
randomizer   The randomizer which creates the random mutation point.
fitTrain   The fitnesstrainer, who controls the fitness computation process.
popula   The pool, which contains the possible members of the tournament.
indPool1   The pool position of tournament member number one.
indPool2   The pool position of tournament member number two.
indPool3   The pool position of tournament member number three.
indPool4   The pool position of tournament member number four.

Definition at line 7 of file SIG_GPCrossOverTournament.cpp.

SIGEL_GP::SIG_GPCrossOverTournament::~SIG_GPCrossOverTournament ( ) [virtual]
 

The destructor of the crossovertournament.

Precondition:
The tournament is played, a crossovered copies of the winners are placed in position of the losers in the pool, the fitnesstask of the new individuals are complete and returned the correct fitness.
Postcondition:
The tournament is destructed.

Definition at line 27 of file SIG_GPCrossOverTournament.cpp.


Member Function Documentation

bool SIGEL_GP::SIG_GPCrossOverTournament::run ( ) [virtual]
 

The virtual function effects the tournament to start.

Precondition:
The tournament is created and the GPmanager activates the execution of the tournament.
Postcondition:
The tournament is started.
Returns:
The boolean for successful launching the function.

Reimplemented from SIGEL_GP::SIG_GPTournament.

Definition at line 30 of file SIG_GPCrossOverTournament.cpp.


Member Data Documentation

QString SIGEL_GP::SIG_GPCrossOverTournament::name1 [private]
 

Definition at line 58 of file SIG_GPCrossOverTournament.h.

QString SIGEL_GP::SIG_GPCrossOverTournament::name2 [private]
 

Definition at line 59 of file SIG_GPCrossOverTournament.h.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:42 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000