Population::GaCouplingParams Class Reference

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

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

Inherits Common::GaParameters.

Inherited by Population::CouplingOperations::GaMulitpleCrossoverCouplingParams.

List of all members.

Public Member Functions

 GaCouplingParams (int numberOfOffsprings)
 This constructor initializes coupling parameters with user-defined number of produced offspring size.
 GaCouplingParams ()
 This constructor initializes coupling parameters with default values. Default number of produced offspring is 2.
virtual GaParameters *GACALL Clone () const
 More details are given in specification of GaParameters::Clone method.
int GACALL GetNumberOfOffsprings () const
 This method is not thread-safe.
void GACALL SetNumberOfOffsprings (int number)
 SetNumberOfOffsprings method sets number of chromosomes which should be produced.

Private Attributes

int _numberOfOffsprings
 Number of chromosomes which should be produces.


Detailed Description

This class is base for parameters of coupling 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::GaCouplingParams::GaCouplingParams ( int  numberOfOffsprings  )  [inline]

This constructor initializes coupling parameters with user-defined number of produced offspring size.

Parameters:
numberOfOffsprings number of chromosomes which should be produced.

Population::GaCouplingParams::GaCouplingParams (  )  [inline]

This constructor initializes coupling parameters with default values. Default number of produced offspring is 2.


Member Function Documentation

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

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

Implements Common::GaParameters.

Reimplemented in Population::CouplingOperations::GaMulitpleCrossoverCouplingParams.

int GACALL Population::GaCouplingParams::GetNumberOfOffsprings (  )  const [inline]

This method is not thread-safe.

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

void GACALL Population::GaCouplingParams::SetNumberOfOffsprings ( int  number  )  [inline]

SetNumberOfOffsprings method sets number of chromosomes which should be produced.

This method is not thread-safe.

Parameters:
number new number of chromosomes which should be produced.


Member Data Documentation

Number of chromosomes which should be produces.


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

Genetic Algorithm Library
Coolsoft Software Development