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

SIGEL_GP::SIG_GPMutationTournament Class Reference

This class realizes the spezial tournament, which ends with a mutation of the winner. More...

#include <SIG_GPMutationTournament.h>

Inheritance diagram for SIGEL_GP::SIG_GPMutationTournament:

SIGEL_GP::SIG_GPTournament List of all members.

Public Methods

 SIG_GPMutationTournament (SIGEL_Tools::SIG_Randomizer& randomizer, SIG_GPFitnessTrainer& fitTrain, SIG_GPPopulation& actPool, SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP, int ppos1, int ppos2)
 The constructor of the mutationtournament. More...

virtual ~SIG_GPMutationTournament ()
 The destructor of the mutationtournament. More...

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


Private Attributes

QString name

Detailed Description

This class realizes the spezial tournament, which ends with a mutation of the winner.

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

Definition at line 21 of file SIG_GPMutationTournament.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPMutationTournament::SIG_GPMutationTournament ( SIGEL_Tools::SIG_Randomizer & randomizer,
SIG_GPFitnessTrainer & fitTrain,
SIG_GPPopulation & actPool,
SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP,
int ppos1,
int ppos2 )
 

The constructor of the mutationtournament.

Precondition:
The tournament creation routine creates a tournament with a mutation of the winner and the GPManager wants to compute the tournament.
Postcondition:
The mutationtournament object is created.
Parameters:
randomizer   The randomizer which creates the random mutation point.
fitTrain   The fitnesstrainer, who controls the fitness computation process.
actPool   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.

Definition at line 5 of file SIG_GPMutationTournament.cpp.

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

The destructor of the mutationtournament.

Precondition:
The tournament is played, a mutated copy of the winner is placed in position of the loser in the pool, the fitnesstask of the new individual is complete and returned the correct fitness.
Postcondition:
The tournament is destructed.

Definition at line 20 of file SIG_GPMutationTournament.cpp.


Member Function Documentation

bool SIGEL_GP::SIG_GPMutationTournament::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 23 of file SIG_GPMutationTournament.cpp.


Member Data Documentation

QString SIGEL_GP::SIG_GPMutationTournament::name [private]
 

Definition at line 53 of file SIG_GPMutationTournament.h.


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