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 >.
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. |
GaArithmeticalCode
interface should be implemented by chromosomes' classes which code supports arithmetical operations over it or its values.
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.
rhs | the second code for summing. |
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.
rhs | the second code for subtracting. |
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.
rhs | the second code for multiplying. |
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.
rhs | the second code for dividing. |
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.
c | the second code for calculating midpoint. |
Implemented in Chromosome::Representation::GaMVArithmeticChromosome< TYPE >, and Chromosome::Representation::GaSVArithmeticChromosome< TYPE >.