Chromosome::Representation::GaArithmeticalCode Class Reference

GaArithmeticalCode interface should be implemented by chromosomes' classes which code supports arithmetical operations over it or its values. More...

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

Inherited by Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.

List of all members.

Public Member Functions

virtual GaChromosomePtr GACALL operator+ (const GaArithmeticalCode &rhs) const =0
 This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by summing of those values.
virtual GaChromosomePtr GACALL operator- (const GaArithmeticalCode &rhs) const =0
 This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by subtracting of those values.
virtual GaChromosomePtr GACALL operator* (const GaArithmeticalCode &rhs) const =0
 This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by multiplying of those values.
virtual GaChromosomePtr GACALL operator/ (const GaArithmeticalCode &rhs) const =0
 This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by dividing of those values.
virtual GaChromosomePtr GACALL Midpoint (const GaArithmeticalCode &c) const =0
 This method produces new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by midpoint algorithm.


Detailed Description

GaArithmeticalCode interface should be implemented by chromosomes' classes which code supports arithmetical operations over it or its values.


Member Function Documentation

virtual GaChromosomePtr GACALL Chromosome::Representation::GaArithmeticalCode::operator+ ( const GaArithmeticalCode rhs  )  const [pure virtual]

This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by summing of those values.

Parameters:
rhs the second code for summing.
Returns:
Method returns smart pointer to newly created chromosome.

Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.

virtual GaChromosomePtr GACALL Chromosome::Representation::GaArithmeticalCode::operator- ( const GaArithmeticalCode rhs  )  const [pure virtual]

This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by subtracting of those values.

Parameters:
rhs the second code for subtracting.
Returns:
Method returns smart pointer to newly created chromosome.

Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.

virtual GaChromosomePtr GACALL Chromosome::Representation::GaArithmeticalCode::operator* ( const GaArithmeticalCode rhs  )  const [pure virtual]

This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by multiplying of those values.

Parameters:
rhs the second code for multiplying.
Returns:
Method returns smart pointer to newly created chromosome.

Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.

virtual GaChromosomePtr GACALL Chromosome::Representation::GaArithmeticalCode::operator/ ( const GaArithmeticalCode rhs  )  const [pure virtual]

This method operator new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by dividing of those values.

Parameters:
rhs the second code for dividing.
Returns:
Method returns smart pointer to newly created chromosome.

Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.

virtual GaChromosomePtr GACALL Chromosome::Representation::GaArithmeticalCode::Midpoint ( const GaArithmeticalCode c  )  const [pure virtual]

This method produces new chromosome which code has values which are calculated form corresponding values of codes of this and c chromosomes by midpoint algorithm.

Parameters:
c the second code for calculating midpoint.
Returns:
Method returns smart pointer to newly created chromosome.

Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.


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

Genetic Algorithm Library
Coolsoft Software Development