class ReproductionFactoryA

Creating objects within the Reproduction package

Public Methods

ReproductionFactoryA ( ConfigurationA const & iConfiguration, RandomA const & iRandom )
Creating a factory for the Reproduction package

Public

Create functions
Creating objects in the Reproduction package
virtual ReproductionA* CreateReproduction ( CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem, StopConditionA const & iStopCondition )
Creating a Reproduction unit
virtual SelectParentsA* CreateSelectParents ()
Creating a Parents selections mechanism
virtual SelectSurvivorsA* CreateSelectSurvivors ()
Creating a Surviviors selections mechanism
virtual ChangeOperatorA* CreateChangeOperator ( ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem )
Creating a Change operator
virtual ProduceOperatorA* CreateProduceOperator ( CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem )
Creating a Produce operator

Documentation

This factory is used to spawn new objects in the Reproduction 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.

ReproductionFactoryA( ConfigurationA const & iConfiguration, RandomA const & iRandom )
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.
iRandom - A reference to this random object is stored and passed to classes who need it.
Author:
J.I. van Hemert
Version:
0.1

Create functions

Examples:
SelectParentsA * SelectParents =
ReproductionFactory.CreateSelectParents();
ChangeOperatorA * ChangeOperator =
ReproductionFactory.CreateChangeOperator(ProblemFactory);
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 ReproductionA* CreateReproduction( CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem, StopConditionA const & iStopCondition )
Creating a Reproduction unit

virtual SelectParentsA* CreateSelectParents()
Creating a Parents selections mechanism

virtual SelectSurvivorsA* CreateSelectSurvivors()
Creating a Surviviors selections mechanism

virtual ChangeOperatorA* CreateChangeOperator( ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem )
Creating a Change operator

virtual ProduceOperatorA* CreateProduceOperator( CoreFactoryA const & iCoreFactory, ProblemFactoryA const & iProblemFactory, ProblemA const & iProblem )
Creating a Produce operator


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