#include <D:/Temp/vs/gal/source/PopulationOperations.h>
Inherits Common::GaParameters.
Inherited by Population::CouplingOperations::GaMulitpleCrossoverCouplingParams.
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. |
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.
Population::GaCouplingParams::GaCouplingParams | ( | int | numberOfOffsprings | ) | [inline] |
This constructor initializes coupling parameters with user-defined number of produced offspring size.
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.
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.
void GACALL Population::GaCouplingParams::SetNumberOfOffsprings | ( | int | number | ) | [inline] |
SetNumberOfOffsprings
method sets number of chromosomes which should be produced.
This method is not thread-safe.
number | new number of chromosomes which should be produced. |
int Population::GaCouplingParams::_numberOfOffsprings [private] |
Number of chromosomes which should be produces.