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

SIGEL_MasterGUI::SIG_Experiment Class Reference

This class encapsules an experiment on GUI-side. More...

#include <SIG_Experiment.h>

Inheritance diagram for SIGEL_MasterGUI::SIG_Experiment:

List of all members.

Public Methods

 SIG_Experiment ( QString name, QWidgetStack *theWidgetStack, SIG_ExperimentItem *theExperimentItem )
 The constructor of SIG_Experiment. More...

 ~SIG_Experiment ()
 The destructor. More...

QString getName () const
 This function return the name of the experiment. More...

void setName ( QString newName )
 This function set the name of the experiment to a new name. More...


Public Attributes

SIGEL_GP::SIG_GPExperiment gpExperiment
 The SIG_GPExperiment belonging to this experiment. More...

SIGEL_GP::SIG_GUIGPManager* gpManager
 The SIG_GPManager belonging to this experiment. More...

QPopupMenu* menuGPParameter
 The popup menu belonging to the gp parameters. More...

QPopupMenu* menuSimulationParameter
 The popup menu belonging to the simulation parameters. More...

QPopupMenu* menuRobotView
 The popup menu belonging to the robot view. More...

QPopupMenu* menuEnvironmentView
 The popup menu belonging to the environment view. More...

QPopupMenu* menuExperimentView
 The popup menu belonging to the experiment view. More...

SIG_ExperimentItemexperimentItem
 The SIG_ExperimentItem belonging to the experiment. More...

SIG_GPParametergpParameter
 The SIG_GPParameter belonging to the experiment. More...

SIG_SimulationParametersimulationParameter
 The SIG_SimulationParameter belonging to the experiment. More...

SIG_EnvironmentViewenvironmentView
 The SIG_EnvironmentView belonging to the experiment. More...

SIG_RobotViewrobotView
 The SIG_RobotView belonging to the experiment. More...

SIG_ExperimentViewexperimentView
 The SIG_ExperimentView belonging to the experiment. More...

SIG_AllIndividualsViewallIndividualsView
 The widget in which all the individuals can be viewed. More...

SIG_LanguageParameterslanguageParameters
 The widget in which the language parameters can be set. More...


Public Slots

void putAllIntoExperiment ()
 This function is called to put all the data out of the widget into the experiment. More...

void getAllOutOfExperiment ()
 This function is called to read all data out of the experiment to put it into the corresponding widgets. More...

void slotRightClick ( QString option, const QPoint & thePoint )
 This slot is called by the experiment list view, whenever the user performs a right click onto an item. More...

void slotSelectionChanged ( QString option )
 This slot is called by the experiment list view, whenever the selection changes. More...

void slotStartEvolution ()
 This slot is called whenever the evolution shall be started. More...

void slotStopEvolution ()
 This slot is called to stop the evolution. More...

void slotSimulationParameterImport ()
 This slot is used to import simulation parameter. More...

void slotSimulationParameterExport ()
 This slot is used to export simulation parameter. More...

void slotEnvironmentImport ()
 This slot is used to import an environment. More...

void slotEnvironmentExport ()
 This slot is used to export an environment. More...

void slotGPParameterImport ()
 This slot is used to import gp parameters. More...

void slotGPParameterExport ()
 This slot is used to export gp parameters. More...

void slotLanguageParameterImport ()
 This slot is used to import language parameters. More...

void slotLanguageParameterExport ()
 This slot is used to export language parameters. More...

void slotPopulationImport ()
 This slot is used to import a population. More...

void slotPopulationExport ()
 This slot is used to export a population. More...

void slotRobotImport ()
 This slot is called to import a robot. More...

void slotGNUPlotExport ()
void slotRobotLoad ()
 This slot load an already processed robot. More...

void slotRobotSave ()
 This slot saves a robot. More...

void slotEvolutionStopped ()
 This slot is called whenever the evolution stops. More...


Signals

void signalEvolutionNotRunning ( bool )

Protected Methods

QString checkEnding ( QString fileName, QString ending )
 This function checks if a filename has a given ending. More...


Protected Attributes

QDict<QWidget> widgetDict
 All widgets belonging to an experiment are stored in this dictionary. More...

QDict<QPopupMenu> menuDict
 All menus belonging to an experiment are stored in this dictionary. More...

QString experimentName
 The experiment name. More...

QWidgetStack* widgetStack
 A pointer to the widget stack in the main window. More...


Detailed Description

This class encapsules an experiment on GUI-side.

It holds one SIG_GPExperiment as well as one SIG_GPManager.

Definition at line 32 of file SIG_Experiment.h.


Constructor & Destructor Documentation

SIGEL_MasterGUI::SIG_Experiment::SIG_Experiment ( QString name,
QWidgetStack * theWidgetStack,
SIG_ExperimentItem * theExperimentItem )
 

The constructor of SIG_Experiment.

Receives the SIG_GPExperiment it belongs to.

Parameters:
parent   The parent widget of SIG_AllIndividualsView
name   Internal name for Qt.
theExperiment   A reference to the experiment this view belongs to.

Definition at line 19 of file SIG_Experiment.cpp.

SIGEL_MasterGUI::SIG_Experiment::~SIG_Experiment ( )
 

The destructor.

Will be erased if not needed.

Definition at line 156 of file SIG_Experiment.cpp.


Member Function Documentation

QString SIGEL_MasterGUI::SIG_Experiment::checkEnding ( QString fileName,
QString ending ) [protected]
 

This function checks if a filename has a given ending.

Parameters:
fileName   The file name to check.
ending   The ending to be checked for.

Definition at line 209 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::getAllOutOfExperiment ( ) [slot]
 

This function is called to read all data out of the experiment to put it into the corresponding widgets.

The function calles the function getOutOfExperiment() for each widget in this class.

Definition at line 198 of file SIG_Experiment.cpp.

QString SIGEL_MasterGUI::SIG_Experiment::getName ( ) const
 

This function return the name of the experiment.

Returns:
The name of the experiment.

Definition at line 172 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::putAllIntoExperiment ( ) [slot]
 

This function is called to put all the data out of the widget into the experiment.

The function calles the function putIntoExperiment() for each widget in this class.

Definition at line 189 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::setName ( QString newName )
 

This function set the name of the experiment to a new name.

Position 0 of the experimentItem is set to new name as well as the variable. Also the experimentView in the widget stack will be reinserted under newName.

Parameters:
newName   The new name of the experiment.

Definition at line 177 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotEnvironmentExport ( ) [slot]
 

This slot is used to export an environment.

Definition at line 349 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotEnvironmentImport ( ) [slot]
 

This slot is used to import an environment.

Definition at line 333 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotEvolutionStopped ( ) [slot]
 

This slot is called whenever the evolution stops.

Definition at line 598 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotGNUPlotExport ( ) [slot]
 

Definition at line 534 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotGPParameterExport ( ) [slot]
 

This slot is used to export gp parameters.

Definition at line 394 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotGPParameterImport ( ) [slot]
 

This slot is used to import gp parameters.

Definition at line 378 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotLanguageParameterExport ( ) [slot]
 

This slot is used to export language parameters.

Definition at line 440 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotLanguageParameterImport ( ) [slot]
 

This slot is used to import language parameters.

Definition at line 423 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotPopulationExport ( ) [slot]
 

This slot is used to export a population.

Definition at line 485 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotPopulationImport ( ) [slot]
 

This slot is used to import a population.

Definition at line 469 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotRightClick ( QString option,
const QPoint & thePoint ) [slot]
 

This slot is called by the experiment list view, whenever the user performs a right click onto an item.

option is the text of the item that was clicked and thePoint is the point where the right click was performed. it is also the point where the menu is shown of course.

Parameters:
option   The text of the clicked item.
thePoint   The point where the click was performed.

Definition at line 218 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotRobotImport ( ) [slot]
 

This slot is called to import a robot.

Importing a robot means to load a robot that is completely unprocessed. For examples the tensors of the links are not yet calculated.

Definition at line 513 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotRobotLoad ( ) [slot]
 

This slot load an already processed robot.

Only already processed robots can be loaded.

Definition at line 544 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotRobotSave ( ) [slot]
 

This slot saves a robot.

To save a robot it must either first be imported or loaded. So in every case is was already processed.

Definition at line 570 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotSelectionChanged ( QString option ) [slot]
 

This slot is called by the experiment list view, whenever the selection changes.

the widget in the widget-dictionary saved under option is shown.

Definition at line 229 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotSimulationParameterExport ( ) [slot]
 

This slot is used to export simulation parameter.

Definition at line 304 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotSimulationParameterImport ( ) [slot]
 

This slot is used to import simulation parameter.

Definition at line 288 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotStartEvolution ( ) [slot]
 

This slot is called whenever the evolution shall be started.

Definition at line 234 of file SIG_Experiment.cpp.

void SIGEL_MasterGUI::SIG_Experiment::slotStopEvolution ( ) [slot]
 

This slot is called to stop the evolution.

Definition at line 268 of file SIG_Experiment.cpp.


Member Data Documentation

SIG_AllIndividualsView * SIGEL_MasterGUI::SIG_Experiment::allIndividualsView
 

The widget in which all the individuals can be viewed.

Definition at line 314 of file SIG_Experiment.h.

SIG_EnvironmentView * SIGEL_MasterGUI::SIG_Experiment::environmentView
 

The SIG_EnvironmentView belonging to the experiment.

Definition at line 299 of file SIG_Experiment.h.

SIG_ExperimentItem * SIGEL_MasterGUI::SIG_Experiment::experimentItem
 

The SIG_ExperimentItem belonging to the experiment.

Definition at line 284 of file SIG_Experiment.h.

QString SIGEL_MasterGUI::SIG_Experiment::experimentName [protected]
 

The experiment name.

Definition at line 232 of file SIG_Experiment.h.

SIG_ExperimentView * SIGEL_MasterGUI::SIG_Experiment::experimentView
 

The SIG_ExperimentView belonging to the experiment.

Definition at line 309 of file SIG_Experiment.h.

SIGEL_GP::SIG_GPExperiment SIGEL_MasterGUI::SIG_Experiment::gpExperiment
 

The SIG_GPExperiment belonging to this experiment.

Definition at line 73 of file SIG_Experiment.h.

SIGEL_GP::SIG_GUIGPManager * SIGEL_MasterGUI::SIG_Experiment::gpManager
 

The SIG_GPManager belonging to this experiment.

Definition at line 78 of file SIG_Experiment.h.

SIG_GPParameter * SIGEL_MasterGUI::SIG_Experiment::gpParameter
 

The SIG_GPParameter belonging to the experiment.

Definition at line 289 of file SIG_Experiment.h.

SIG_LanguageParameters * SIGEL_MasterGUI::SIG_Experiment::languageParameters
 

The widget in which the language parameters can be set.

Definition at line 319 of file SIG_Experiment.h.

QDict< QPopupMenu > SIGEL_MasterGUI::SIG_Experiment::menuDict [protected]
 

All menus belonging to an experiment are stored in this dictionary.

Definition at line 227 of file SIG_Experiment.h.

QPopupMenu * SIGEL_MasterGUI::SIG_Experiment::menuEnvironmentView
 

The popup menu belonging to the environment view.

This menu is shown whenever the user rightclicks onto the environment view item in the experiment list view.

Definition at line 271 of file SIG_Experiment.h.

QPopupMenu * SIGEL_MasterGUI::SIG_Experiment::menuExperimentView
 

The popup menu belonging to the experiment view.

This menu is shown whenever the user rightclicks onto the experiment view item in the experiment list view.

Definition at line 279 of file SIG_Experiment.h.

QPopupMenu * SIGEL_MasterGUI::SIG_Experiment::menuGPParameter
 

The popup menu belonging to the gp parameters.

This menu is shown whenever the user rightclicks onto the GP-Parameter item in the experiment list view.

Definition at line 247 of file SIG_Experiment.h.

QPopupMenu * SIGEL_MasterGUI::SIG_Experiment::menuRobotView
 

The popup menu belonging to the robot view.

This menu is shown whenever the user rightclicks onto the robot view item in the experiment list view.

Definition at line 263 of file SIG_Experiment.h.

QPopupMenu * SIGEL_MasterGUI::SIG_Experiment::menuSimulationParameter
 

The popup menu belonging to the simulation parameters.

This menu is shown whenever the user rightclicks onto the Simulation-Parameter item in the experiment list view.

Definition at line 255 of file SIG_Experiment.h.

SIG_RobotView * SIGEL_MasterGUI::SIG_Experiment::robotView
 

The SIG_RobotView belonging to the experiment.

Definition at line 304 of file SIG_Experiment.h.

SIG_SimulationParameter * SIGEL_MasterGUI::SIG_Experiment::simulationParameter
 

The SIG_SimulationParameter belonging to the experiment.

Definition at line 294 of file SIG_Experiment.h.

QDict< QWidget > SIGEL_MasterGUI::SIG_Experiment::widgetDict [protected]
 

All widgets belonging to an experiment are stored in this dictionary.

Definition at line 222 of file SIG_Experiment.h.

QWidgetStack * SIGEL_MasterGUI::SIG_Experiment::widgetStack [protected]
 

A pointer to the widget stack in the main window.

Definition at line 237 of file SIG_Experiment.h.


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