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

SIGEL_GP::SIG_GPExperiment Class Reference

The SIG_GPExperiment represents the main data structure for the evolution preformed with the SIGEL_GP_Package. More...

#include <SIG_GPExperiment.h>

List of all members.

Public Methods

 SIG_GPExperiment (QString exp)
 The constructor of an experiment. More...

 SIG_GPExperiment ()
 The constructor for an experiment. More...

QString cutAfterFiveHashes (QTextStream& source)
void loadExperiment (QTextStream &file)
 This sets experimentdatas from a QDataStream to the attributes of an experimentobject. More...

void saveExperiment (QTextStream & file)
 This encodes the experiment data to a QDataStream. More...

double calculateFitness (SIGEL_Program::SIG_Program & program)
 Starts the FitnessCalculation as a local PVM client. More...

SIGEL_GP::SIG_GPParametergetGPParameter ()
 This operation returns a reference of the gpparameter. More...

SIGEL_GP::SIG_GPPopulationgetPopulation ()
 This operation returns a reference of the population. More...

SIGEL_GP::SIG_GPPopulationgetPopulationPointer ()
 This operation returns a pointer to the population. More...

void exportExperimentHistoryToGNUPlot ( QString fileName )

Public Attributes

SIGEL_Robot::SIG_Robot robot
 The used robot architecture. More...

SIG_GPParameter gpParameter
 The used parameter for the genetic programming. More...

QString experimentName
 The name of the experiment. More...

SIGEL_Environment::SIG_Environment environment
 The used environment. More...

QString fitnessFunctionName
 The name of the used fitnessfunction. More...

SIG_GPPopulation population
 The population of the experiment. More...

SIGEL_Simulation::SIG_SimulationParameters simulationParameter
 The used parameter for the simulation. More...

QString comment
 This QString data content is a describtion of the experiment. More...

QList< SIG_GPExperimentHistoryEntry > experimentHistory

Private Methods

void writeHistoryToFileTransfer ( QTextStream &file )
void readHistoryFromFileTransfer ( QTextStream &file )


Detailed Description

The SIG_GPExperiment represents the main data structure for the evolution preformed with the SIGEL_GP_Package.

It contains any nessecary information and data to describe and preform an evolution run.

Definition at line 31 of file SIG_GPExperiment.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPExperiment::SIG_GPExperiment ( QString exp )
 

The constructor of an experiment.

Precondition:
The data of the experiment is given in a QString.
Postcondition:
The object of an experiment is created correctly.
Parameters:
exp   The experiment encoded in a QString.

Definition at line 10 of file SIG_GPExperiment.cpp.

SIGEL_GP::SIG_GPExperiment::SIG_GPExperiment ( )
 

The constructor for an experiment.

Precondition:
An empty experiment has to be constructed. There is no data given in a QString. Every component of the experiment will be set from the GUI.
Postcondition:
The experiment has been constructed and its attributes are empty.

Definition at line 12 of file SIG_GPExperiment.cpp.


Member Function Documentation

double SIGEL_GP::SIG_GPExperiment::calculateFitness ( SIGEL_Program::SIG_Program & program )
 

Starts the FitnessCalculation as a local PVM client.

Parameters:
program   The Program to be evaluated.
Returns:
the calculated Fitness

Definition at line 103 of file SIG_GPExperiment.cpp.

QString SIGEL_GP::SIG_GPExperiment::cutAfterFiveHashes ( QTextStream & source )
 

Definition at line 17 of file SIG_GPExperiment.cpp.

void SIGEL_GP::SIG_GPExperiment::exportExperimentHistoryToGNUPlot ( QString fileName )
 

Definition at line 123 of file SIG_GPExperiment.cpp.

SIGEL_GP::SIG_GPParameter & SIGEL_GP::SIG_GPExperiment::getGPParameter ( )
 

This operation returns a reference of the gpparameter.

Returns:
A reference of the gpgparameter.

Definition at line 108 of file SIG_GPExperiment.cpp.

SIGEL_GP::SIG_GPPopulation & SIGEL_GP::SIG_GPExperiment::getPopulation ( )
 

This operation returns a reference of the population.

Returns:
A reference of the population.

Definition at line 113 of file SIG_GPExperiment.cpp.

SIGEL_GP::SIG_GPPopulation * SIGEL_GP::SIG_GPExperiment::getPopulationPointer ( )
 

This operation returns a pointer to the population.

Returns:
A pointer to the population.

Definition at line 118 of file SIG_GPExperiment.cpp.

void SIGEL_GP::SIG_GPExperiment::loadExperiment ( QTextStream & file )
 

This sets experimentdatas from a QDataStream to the attributes of an experimentobject.

Precondition:
There are experiment data, encoded in a QDataStream and there is an object of an experiment.
Postcondition:
The loaded experiment is set to the attributes.
Parameters:
file   The data of an experiment, encoded in a QDataStream.

Definition at line 29 of file SIG_GPExperiment.cpp.

void SIGEL_GP::SIG_GPExperiment::readHistoryFromFileTransfer ( QTextStream & file ) [private]
 

Definition at line 87 of file SIG_GPExperiment.cpp.

void SIGEL_GP::SIG_GPExperiment::saveExperiment ( QTextStream & file )
 

This encodes the experiment data to a QDataStream.

Precondition:
There is an object of an experiment.
Parameters:
file   The data of the experiment, encoded in a QDataStream.
Postcondition:
The experiment data is written, encoded in a QDataStream.

Definition at line 55 of file SIG_GPExperiment.cpp.

void SIGEL_GP::SIG_GPExperiment::writeHistoryToFileTransfer ( QTextStream & file ) [private]
 

Definition at line 76 of file SIG_GPExperiment.cpp.


Member Data Documentation

QString SIGEL_GP::SIG_GPExperiment::comment
 

This QString data content is a describtion of the experiment.

Definition at line 80 of file SIG_GPExperiment.h.

SIGEL_Environment::SIG_Environment SIGEL_GP::SIG_GPExperiment::environment
 

The used environment.

Definition at line 55 of file SIG_GPExperiment.h.

QList< SIG_GPExperimentHistoryEntry > SIGEL_GP::SIG_GPExperiment::experimentHistory
 

Definition at line 83 of file SIG_GPExperiment.h.

QString SIGEL_GP::SIG_GPExperiment::experimentName
 

The name of the experiment.

Definition at line 49 of file SIG_GPExperiment.h.

QString SIGEL_GP::SIG_GPExperiment::fitnessFunctionName
 

The name of the used fitnessfunction.

Definition at line 61 of file SIG_GPExperiment.h.

SIG_GPParameter SIGEL_GP::SIG_GPExperiment::gpParameter
 

The used parameter for the genetic programming.

Definition at line 43 of file SIG_GPExperiment.h.

SIG_GPPopulation SIGEL_GP::SIG_GPExperiment::population
 

The population of the experiment.

Definition at line 67 of file SIG_GPExperiment.h.

SIGEL_Robot::SIG_Robot SIGEL_GP::SIG_GPExperiment::robot
 

The used robot architecture.

Definition at line 37 of file SIG_GPExperiment.h.

SIGEL_Simulation::SIG_SimulationParameters SIGEL_GP::SIG_GPExperiment::simulationParameter
 

The used parameter for the simulation.

Definition at line 74 of file SIG_GPExperiment.h.


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