class ProblemFactoryA

Creating objects within the Problem package

Public Methods

ProblemFactoryA ( ConfigurationA const & iConfiguration )
Creating a factory for the Problem package

Public

Create functions
Creating objects in the Problem package
virtual FitnessFunctionA* CreateFitnessFunction ( StopConditionA const & iStopCondition, StatisticsA & iStatistics, ProblemA const & iProblem )
Creating a FitnessFunction
virtual DataA* CreateData ( unsigned int iSize )
Creating a Data object
virtual ProblemA* CreateProblem ( )
Creating a Problem object

Documentation

This factory is used to spawn new objects in the Problem package of the library. When it is inherited the Create memberfunctions will decide which class to use for each different object that can be spawned. Thus by changing the factory all the objects in the ibrary will use other objects.

ProblemFactoryA( ConfigurationA const & iConfiguration )
This factory is inherited and the child determines for every Create member which class is used to spawn an object.

Returns:
Nothing.
Parameters:
iConfiguration - The configuration used to determine settings for the algorithm and to provide a configuration to spawned objects within this class.
Author:
J.I. van Hemert
Version:
0.1

Create functions

Examples:
FitnessFunctionA * FitnessFunction =
ProblemFactory.CreateFitnessFunction(StopCondition, Statistics, Problem);
DataA * Data =
ProblemFactory.CreateData(100);
Parameters depend on the needs of the constructor of the object that is being created. See the appropriate class for details.

Returns:
An object of a class inherited from the appropriate abstract class.
Author:
J.I. van Hemert
Version:
0.1

virtual FitnessFunctionA* CreateFitnessFunction( StopConditionA const & iStopCondition, StatisticsA & iStatistics, ProblemA const & iProblem )
Creating a FitnessFunction

virtual DataA* CreateData( unsigned int iSize )
Creating a Data object

virtual ProblemA* CreateProblem( )
Creating a Problem object


This class has no child classes.
Author:
J.I. van Hemert
Version:
0.1

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de