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

SIGEL_GP::SIG_GPTournament Class Reference

This class is the parent class which all other GPTournament-classes will inherite from. More...

#include <SIG_GPTournament.h>

Inheritance diagram for SIGEL_GP::SIG_GPTournament:

SIGEL_GP::SIG_GPCrossOverTournament SIGEL_GP::SIG_GPMutationTournament SIGEL_GP::SIG_GPSimpleTournament List of all members.

Public Methods

 SIG_GPTournament (SIGEL_Tools::SIG_Randomizer& randomizer, SIG_GPFitnessTrainer& trainer, SIG_GPPopulation& actPool, SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP)
 The constructor of the GPTournament. More...

virtual ~SIG_GPTournament ()
 The destructor of the tournament. More...

virtual bool run ()
 This methode is virtual for definition in the inherited class. More...


Public Attributes

SIGEL_Robot::SIG_LanguageParameterslanguageP
 The current language parameter settings. More...

SIGEL_Tools::SIG_Randomizerrandomizer
 The randomizer, which is needed to create the randompoint used for the genetic operations. More...

SIG_GPFitnessTrainertrainer
 The fitnesstrainer controls the computations of fitnessvalues after the genetic mutation of the winner of the tournament. More...

QVector<SIG_GPTournamentIndividualindis
 The tournamentindividual is used record the positions of the tournament members and the next tournament in which the tournamentindividual is member of, plus the taskid of the pvm-task given from the fitnesstrainer. More...

bool justWaiting
 The flag signals if the tournament can be played or have to wait for earlier tournaments. More...

int depNumber
 The number of tournaments which have to be played first, before this tournament can be played. More...

SIG_GPPopulationgpPool
 The actual individual pool. More...

SIG_GPParametergpParameter
 The current GP settings that contain neccessary information for some GP operations. More...


Protected Methods

void inhume ( SIG_GPIndividual &corps )

Detailed Description

This class is the parent class which all other GPTournament-classes will inherite from.

It has a randomizer reference, for creation of random number in the genetic operator. It has an fitnesstrainer reference for controlling the fitnesscomputation preformed by pvm. The GPTournament-class includes QVector for a datastructure of the envolved tournamentindividuals. The class has a reference of the actual individual pool, a flag for indicating if the tournament is ready to play and an integer value, which shows how many tournament are to play before this tournament can be played.

Definition at line 27 of file SIG_GPTournament.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPTournament::SIG_GPTournament ( SIGEL_Tools::SIG_Randomizer & randomizer,
SIG_GPFitnessTrainer & trainer,
SIG_GPPopulation & actPool,
SIG_GPParameter & gpParameter,
SIGEL_Robot::SIG_LanguageParameters & languageP )
 

The constructor of the GPTournament.

Precondition:
A tournamentset is in creation.
Postcondition:
All attributes are set to the parameters an a topological sorting is expected.
Parameters:
randomizer   The reference to the randomizer object of the GPManager.
trainer   The reference to the GPFitnesstrainer of the GPManager.
actPool   The reference to the actual pool object.

Definition at line 3 of file SIG_GPTournament.cpp.

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

The destructor of the tournament.

Precondition:
The tournament is played, the winner was the victim of cruel genetic operations and the fitness of its debris was computed and the debris was placed in the pool for other demonic tournaments.
Postcondition:
The object is destructed.

Definition at line 20 of file SIG_GPTournament.cpp.


Member Function Documentation

void SIGEL_GP::SIG_GPTournament::inhume ( SIG_GPIndividual & corps ) [protected]
 

Definition at line 26 of file SIG_GPTournament.cpp.

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

This methode is virtual for definition in the inherited class.

Reimplemented in SIGEL_GP::SIG_GPCrossOverTournament, SIGEL_GP::SIG_GPMutationTournament, and SIGEL_GP::SIG_GPSimpleTournament.

Definition at line 23 of file SIG_GPTournament.cpp.


Member Data Documentation

int SIGEL_GP::SIG_GPTournament::depNumber
 

The number of tournaments which have to be played first, before this tournament can be played.

Definition at line 69 of file SIG_GPTournament.h.

SIG_GPParameter & SIGEL_GP::SIG_GPTournament::gpParameter
 

The current GP settings that contain neccessary information for some GP operations.

Definition at line 83 of file SIG_GPTournament.h.

SIG_GPPopulation & SIGEL_GP::SIG_GPTournament::gpPool
 

The actual individual pool.

Definition at line 76 of file SIG_GPTournament.h.

QVector< SIG_GPTournamentIndividual > SIGEL_GP::SIG_GPTournament::indis
 

The tournamentindividual is used record the positions of the tournament members and the next tournament in which the tournamentindividual is member of, plus the taskid of the pvm-task given from the fitnesstrainer.

Definition at line 55 of file SIG_GPTournament.h.

bool SIGEL_GP::SIG_GPTournament::justWaiting
 

The flag signals if the tournament can be played or have to wait for earlier tournaments.

Definition at line 62 of file SIG_GPTournament.h.

SIGEL_Robot::SIG_LanguageParameters & SIGEL_GP::SIG_GPTournament::languageP
 

The current language parameter settings.

Definition at line 34 of file SIG_GPTournament.h.

SIGEL_Tools::SIG_Randomizer & SIGEL_GP::SIG_GPTournament::randomizer
 

The randomizer, which is needed to create the randompoint used for the genetic operations.

Definition at line 40 of file SIG_GPTournament.h.

SIG_GPFitnessTrainer & SIGEL_GP::SIG_GPTournament::trainer
 

The fitnesstrainer controls the computations of fitnessvalues after the genetic mutation of the winner of the tournament.

Definition at line 47 of file SIG_GPTournament.h.


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