#include <SIG_GPPVMData.h>
Public Methods | |
SIG_GPPVMData (SIGEL_Robot::SIG_Robot& robot, SIGEL_Environment::SIG_Environment& environment, SIGEL_Simulation::SIG_SimulationParameters& simulationParameter, QString fitnessName, bool visualize) | |
The constructor of a PVMDataobject with all attributes as parameters, without the program of the individual, which will be given as a parameter. More... | |
~SIG_GPPVMData () | |
The destructor of the PVMDataobject. More... | |
void | sendQStringToPVM (QString str, int taskId, int messageId) |
A function to send QStrings via PVM. More... | |
QString | getQStringFromPVM (int taskId, int messageId) |
A function to read QStrings via PVM. More... | |
QString | cutAfterFiveHashes (QTextStream& source) |
void | loadPVMDataTransfer (QTextStream & file, SIGEL_Program::SIG_Program & program) |
void | savePVMDataTransfer (QTextStream & file, SIGEL_Program::SIG_Program const &program) |
With this operation, the SIG_GPFitnessTrainer saves pvmdata to textstream, make it ready for transfer to the Sigel-slave. More... | |
void | setVisualize (bool visu) |
This operation sets the visulize-flag to its right value. More... | |
bool | getVisualize () |
This operation gets the value of the visualize-flag. More... | |
QString | getFitnessFunctionName () |
void | setFitnessFunctionName ( QString name ) |
Private Attributes | |
SIGEL_Robot::SIG_Robot& | robot |
The robot for the simulation run. More... | |
SIGEL_Environment::SIG_Environment& | environment |
The environment for the simulation. More... | |
SIGEL_Simulation::SIG_SimulationParameters& | simulationParameter |
The simulation parameters for the simulation. More... | |
QString | fitnessName |
The name of the fitnessfunction, only necessary for computation of a fitnessvalue.. More... | |
bool | visualize |
A flag, which indicates if the simulation have to be displayed or not. More... |
There is a special need for transforming methodes, to bring a textstream to a string and than to bring this string in the right order, so that it can be transfered through pvm to the sigel-slave program. The SIG_GPFitnesstrainer and sigel-slave uses this class. They need it to decode and encode the to be send or received pvm data.
Definition at line 24 of file SIG_GPPVMData.h.
|
The constructor of a PVMDataobject with all attributes as parameters, without the program of the individual, which will be given as a parameter.
Definition at line 8 of file SIG_GPPVMData.cpp. |
|
The destructor of the PVMDataobject.
Definition at line 19 of file SIG_GPPVMData.cpp. |
|
Definition at line 51 of file SIG_GPPVMData.cpp. |
|
Definition at line 134 of file SIG_GPPVMData.cpp. |
|
A function to read QStrings via PVM.
Definition at line 35 of file SIG_GPPVMData.cpp. |
|
This operation gets the value of the visualize-flag.
Definition at line 129 of file SIG_GPPVMData.cpp. |
|
Definition at line 63 of file SIG_GPPVMData.cpp. |
|
With this operation, the SIG_GPFitnessTrainer saves pvmdata to textstream, make it ready for transfer to the Sigel-slave.
Definition at line 98 of file SIG_GPPVMData.cpp. Referenced by SIGEL_MasterGUI::SIG_AllIndividualsView::slotVisualize(). |
|
A function to send QStrings via PVM.
Definition at line 22 of file SIG_GPPVMData.cpp. Referenced by SIGEL_MasterGUI::SIG_AllIndividualsView::slotVisualize(). |
|
Definition at line 139 of file SIG_GPPVMData.cpp. |
|
This operation sets the visulize-flag to its right value.
Definition at line 124 of file SIG_GPPVMData.cpp. |
|
The environment for the simulation. It doesn't be change in one evolution, therefor it is given as a reference. Definition at line 37 of file SIG_GPPVMData.h. |
|
The name of the fitnessfunction, only necessary for computation of a fitnessvalue.. It doesn't be change in one evolution, therefor it is given as a reference. Definition at line 50 of file SIG_GPPVMData.h. |
|
The robot for the simulation run. It doesn't be change in one evolution, therefor it is given as a reference. Definition at line 31 of file SIG_GPPVMData.h. |
|
The simulation parameters for the simulation. It doesn't be change in one evolution, therefor it is given as a reference. Definition at line 43 of file SIG_GPPVMData.h. |
|
A flag, which indicates if the simulation have to be displayed or not. TRUE means show the simulation without fitness computation, FALSE means compute fitnessvalue. Definition at line 57 of file SIG_GPPVMData.h. |