Population::GaReplacementParams Class Reference

This class is base for parameters of replacement operation. More...

#include <D:/Temp/vs/gal/source/PopulationOperations.h>

Inherits Common::GaParameters.

Inherited by Population::ReplacementOperations::GaReplaceElitismParams.

List of all members.

Public Member Functions

 GaReplacementParams (int replacementSize)
 This constructor initializes replacement parameters with user-defined replacement size.
 GaReplacementParams ()
 This constructor initializes replacement parameters with default values. Default replacement size is 2.
virtual GaParameters *GACALL Clone () const
 More details are given in specification of GaParameters::Clone method.
int GACALL GetReplacementSize () const
 This method is not thread-safe.
void GACALL SetReplacementSize (int size)
 SetReplacementSize method sets number of chromosomes which should be replaced.

Protected Attributes

int _replacemetSize
 Number of chromosomes which should be replaced.


Detailed Description

This class is base for parameters of replacement operation.

This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class. No public or private methods are thread-safe.


Constructor & Destructor Documentation

Population::GaReplacementParams::GaReplacementParams ( int  replacementSize  )  [inline]

This constructor initializes replacement parameters with user-defined replacement size.

Parameters:
replacementSize number of chromosomes which should be replaced.

Population::GaReplacementParams::GaReplacementParams (  )  [inline]

This constructor initializes replacement parameters with default values. Default replacement size is 2.


Member Function Documentation

virtual GaParameters* GACALL Population::GaReplacementParams::Clone (  )  const [inline, virtual]

More details are given in specification of GaParameters::Clone method.

Implements Common::GaParameters.

Reimplemented in Population::ReplacementOperations::GaReplaceElitismParams.

int GACALL Population::GaReplacementParams::GetReplacementSize (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns number of chromosomes which should be replaced.

void GACALL Population::GaReplacementParams::SetReplacementSize ( int  size  )  [inline]

SetReplacementSize method sets number of chromosomes which should be replaced.

This method is not thread-safe.

Parameters:
size new number of chromosomes for replacement.


Member Data Documentation

Number of chromosomes which should be replaced.


The documentation for this class was generated from the following file:

Genetic Algorithm Library
Coolsoft Software Development