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 >.
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. |
GaSwapableCode
interface should be implemented by chromosomes' classes which code supports swapping of positions of its positions.
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.
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 >.