Chromosome::CrossoverOperations::GaAddCrossover Class Reference

GaAddCrossover crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by summing them. More...

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

Inherits Chromosome::GaCrossoverOperation.

List of all members.

Public Member Functions

virtual GAL_API
GaChromosomePtr GACALL 
operator() (const GaChromosome *parent1, const GaChromosome *parent2) const
 More details are given in specification of GaCrossoverOperation::operator () method.
virtual GaParameters *GACALL MakeParameters () const
 More details are given in specification of GaOperation::MakeParameters method.
virtual bool GACALL CheckParameters (const GaParameters &parameters) const
 More details are given in specification of GaOperation::CheckParameters method.


Detailed Description

GaAddCrossover crossover operation creates offspring which code has values which are calculated form corresponding values of codes of both parents by summing them.

a_cr.png

This class has no built-in synchronizator, so LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class. Because this genetic operation is stateless all public method are thread-safe.


Member Function Documentation

GaChromosomePtr Chromosome::CrossoverOperations::GaAddCrossover::operator() ( const GaChromosome parent1,
const GaChromosome parent2 
) const [virtual]

More details are given in specification of GaCrossoverOperation::operator () method.

This method is thread-safe.

Implements Chromosome::GaCrossoverOperation.

virtual GaParameters* GACALL Chromosome::CrossoverOperations::GaAddCrossover::MakeParameters (  )  const [inline, virtual]

More details are given in specification of GaOperation::MakeParameters method.

This method is thread-safe.

Returns:
Method returns new instance of GaChromosomeParams class.

Implements Common::GaOperation.

virtual bool GACALL Chromosome::CrossoverOperations::GaAddCrossover::CheckParameters ( const GaParameters parameters  )  const [inline, virtual]

More details are given in specification of GaOperation::CheckParameters method.

This method is thread-safe.

Returns:
This method always returns true.

Implements Common::GaOperation.


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

Genetic Algorithm Library
Coolsoft Software Development