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

SIGEL_GP::SIG_GPSimpleFitnessFunction Class Reference

This abstract class represents the structure of the different fitnessclasses which computes the fitness of an robot controll programm. More...

#include <SIG_GPSimpleFitnessFunction.h>

Inheritance diagram for SIGEL_GP::SIG_GPSimpleFitnessFunction:

SIGEL_GP::SIG_GPFitnessFunction List of all members.

Public Methods

 SIG_GPSimpleFitnessFunction (SIGEL_Program::SIG_Program & program, SIGEL_Robot::SIG_Robot & rob, SIGEL_Environment::SIG_Environment & environment, SIGEL_Simulation::SIG_SimulationParameters & simparameter)
 The function, which creates the object of a fitnessfunction with the needed data, for the simulationrun. More...

 ~SIG_GPSimpleFitnessFunction ()
 The destructor of the fitnessfunction. More...

double evalFitness ()
 This operation activates the computation of the fitnessvalue. More...


Detailed Description

This abstract class represents the structure of the different fitnessclasses which computes the fitness of an robot controll programm.

Definition at line 15 of file SIG_GPSimpleFitnessFunction.h.


Constructor & Destructor Documentation

SIGEL_GP::SIG_GPSimpleFitnessFunction::SIG_GPSimpleFitnessFunction ( SIGEL_Program::SIG_Program & program,
SIGEL_Robot::SIG_Robot & rob,
SIGEL_Environment::SIG_Environment & environment,
SIGEL_Simulation::SIG_SimulationParameters & simparameter )
 

The function, which creates the object of a fitnessfunction with the needed data, for the simulationrun.

Precondition:
The parameters has to be set, the GPFitnesstrainer takes controll about the PVM-Prozess.
Postcondition:
An object of the FitnessFunction is created and the parameters are set to the attributes.
Parameters:
ind   The individual, which contains the robot controll programm.
robot   The robot architecture of the robot, on which the robot controll programm shall be executed
environment   The environment of the simulationrun.
simparameter   Parameters for the simulationrun.

Definition at line 10 of file SIG_GPSimpleFitnessFunction.cpp.

SIGEL_GP::SIG_GPSimpleFitnessFunction::~SIG_GPSimpleFitnessFunction ( )
 

The destructor of the fitnessfunction.

Precondition:
The computation of the fitnessvalue is done.
Postcondition:
The object of the fitnessfunction is destructed.

Definition at line 21 of file SIG_GPSimpleFitnessFunction.cpp.


Member Function Documentation

double SIGEL_GP::SIG_GPSimpleFitnessFunction::evalFitness ( ) [virtual]
 

This operation activates the computation of the fitnessvalue.

It is virtual, this means that the implemantation is for every fitnessfunction different.

Precondition:
An object of the fitnessfunction is created, the needed datas are set and everything is ready to run.
Postcondition:
The fitnessvalue is computed and returned, the object of the fitness function is destructed.
Returns:
A double is returned, which represents the fitnessvalue. If an error has occured, the returnvalue of the double is -1.

Reimplemented from SIGEL_GP::SIG_GPFitnessFunction.

Definition at line 24 of file SIG_GPSimpleFitnessFunction.cpp.


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