Chromosome::MutationOperations::GaInvertMutation Class Reference

GaSapwMutation mutation chooses random number of pairs of values at random positions in chromosome's code and swaps their positions. Maximum number of swapped pairs is specified in chromosomes parameters. This mutation swaps at least on pair of values. More...

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

Inherits Chromosome::GaMutationOperation.

List of all members.

Public Member Functions

virtual GAL_API void GACALL operator() (GaChromosome *chromosome) const
 More details are given in specification of GaMutationOperation::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

GaSapwMutation mutation chooses random number of pairs of values at random positions in chromosome's code and swaps their positions. Maximum number of swapped pairs is specified in chromosomes parameters. This mutation swaps at least on pair of values.

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.


Member Function Documentation

void Chromosome::MutationOperations::GaInvertMutation::operator() ( GaChromosome chromosome  )  const [virtual]

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

This method is thread-safe.

Implements Chromosome::GaMutationOperation.

virtual GaParameters* GACALL Chromosome::MutationOperations::GaInvertMutation::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::MutationOperations::GaInvertMutation::CheckParameters ( const GaParameters parameters  )  const [inline, virtual]

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

This method is thread-safe.

Returns:
Method returns true if mutation size specified in parameters is greater then 0, otherwise it returns false.

Implements Common::GaOperation.


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

Genetic Algorithm Library
Coolsoft Software Development