Chromosome::Representation::GaMutableCode Class Reference

GaMutableCode interface should be implemented by chromosomes' classes which code supports random changes and inversion of its parts. More...

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

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

List of all members.

Public Member Functions

virtual void GACALL Flip (int start, int size)=0
 This method changes values of chromosome's code randomly from start position to start + size position.
virtual void GACALL Invert (int start, int size)=0
 This method inverts values of chromosome's code from start position to start + size position.


Detailed Description

GaMutableCode interface should be implemented by chromosomes' classes which code supports random changes and inversion of its parts.


Member Function Documentation

virtual void GACALL Chromosome::Representation::GaMutableCode::Flip ( int  start,
int  size 
) [pure virtual]

This method changes values of chromosome's code randomly from start position to start + size position.

Parameters:
start position of first value which is going to be changed.
size number of values which are going to be changed.

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

virtual void GACALL Chromosome::Representation::GaMutableCode::Invert ( int  start,
int  size 
) [pure virtual]

This method inverts values of chromosome's code from start position to start + size position.

Parameters:
start position of first value which is going to be inverted.
size number of values which are going to be inverted.

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


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

Genetic Algorithm Library
Coolsoft Software Development