Chromosome::Representation::GaSwapableCode Class Reference

GaSwapableCode interface should be implemented by chromosomes' classes which code supports swapping of positions of its positions. More...

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

Inherited by Chromosome::Representation::GaBinaryChromosome, and Chromosome::Representation::GaMultiValueChromosome< TYPE >.

List of all members.

Public Member Functions

virtual void GACALL Swap (int start1, int size1, int start2, int size2)=0
 This method swaps positions of parts of chromosome's code.


Detailed Description

GaSwapableCode interface should be implemented by chromosomes' classes which code supports swapping of positions of its positions.


Member Function Documentation

virtual void GACALL Chromosome::Representation::GaSwapableCode::Swap ( int  start1,
int  size1,
int  start2,
int  size2 
) [pure virtual]

This method swaps positions of parts of chromosome's code.

Parameters:
start1 position of the first part of code.
size1 number of values of first part which is going to be swapped.
start2 position of the second part of code.
size2 number of values of second part which is going to be swapped.

Implemented in Chromosome::Representation::GaBinaryChromosome, and Chromosome::Representation::GaMultiValueChromosome< TYPE >.


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

Genetic Algorithm Library
Coolsoft Software Development