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

SIGEL_GP::SIG_GPSimpleTournament Class Reference

This class defineds the tournament with a reproduction of the winner as the tournament price. More...

#include <SIG_GPSimpleTournament.h>

Inheritance diagram for SIGEL_GP::SIG_GPSimpleTournament:

SIGEL_GP::SIG_GPTournament List of all members.

Public Methods

 SIG_GPSimpleTournament ( SIGEL_Tools::SIG_Randomizer& randomizer, SIG_GPFitnessTrainer& trainer, SIG_GPPopulation& actPool, SIG_GPParameter& gpParameter, SIGEL_Robot::SIG_LanguageParameters &languageP, int ppos1, int ppos2 )
 The constructor of the Simpletournament obejct. More...

virtual ~SIG_GPSimpleTournament ()
 The destructor of the SimpleTournament object. More...

virtual bool run ()
 This virtual methode executes the tournament. More...


Private Attributes

QString name

Detailed Description

This class defineds the tournament with a reproduction of the winner as the tournament price.

It uses the randomizer and the fitnesstrainer for randompoint creation und fitnessvalue computation. It inherites from SIG_GPTournament so please look ther for further details.

Definition at line 21 of file SIG_GPSimpleTournament.h.


Constructor & Destructor Documentation

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

The constructor of the Simpletournament obejct.

Precondition:
A tournamentset is in creation.
Postcondition:
The object is created initialized with the parameters an waits for the topological sorting and the execution of the tournament
Parameters:
randomizer   The reference to the randomizer object of the GPManager.
trainer   The reference to the fitnesstrainer object of the GPManager.
actPool   The actual population of the pool.
ppos1   The first tournament member adress in the pool.
ppos2   The second tournament member adress in the pool.

Definition at line 5 of file SIG_GPSimpleTournament.cpp.

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

The destructor of the SimpleTournament object.

Precondition:
The tournament is played, the winner is reproducted, set to the pool and the next tournament wants to be played.
Postcondition:
The object is destructed.

Definition at line 20 of file SIG_GPSimpleTournament.cpp.


Member Function Documentation

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

This virtual methode executes the tournament.

Reimplemented from SIGEL_GP::SIG_GPTournament.

Definition at line 23 of file SIG_GPSimpleTournament.cpp.


Member Data Documentation

QString SIGEL_GP::SIG_GPSimpleTournament::name [private]
 

Definition at line 69 of file SIG_GPSimpleTournament.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