#include <D:/Temp/vs/gal/source/DomainChromosome.h>
Inherits Chromosome::GaChromosomeOperationsBlock.
Public Member Functions | |
GaChromosomeDomainBlock (GaValueSet< T > *domain, GaCrossoverOperation *crossover, GaMutationOperation *mutation, GaFitnessOperation *fitnessOperation, GaFitnessComparator *fitnessComparator, GaChromosomeParams *parameters) | |
This constructor initializes CCB with pointer to chromosomes' parameters, extern genetic operations and value set. | |
GaChromosomeDomainBlock (const GaChromosomeDomainBlock &rhs) | |
This is copy constructor. The constructor doesn't create copy of parameters', operations' and value set's objects, it only copies pointer to chromosomes' parameters, operations and value set. | |
GaChromosomeDomainBlock () | |
This constructor initializes empty CCB. | |
const GaValueSet< T > &GACALL | GetValueSet () const |
This method is not thread-safe. | |
void GACALL | SetValueSet (GaValueSet< T > *domain) |
SeValueSet method sets pointer to value set in CCB. | |
Protected Attributes | |
GaValueSet< T > * | _domain |
Pointer to values set. | |
Friends | |
class | GaDomainChromosome< T > |
class | GaSingleValueChromosome< T > |
class | GaSVArithmeticChromosome< T > |
class | GaMultiValueChromosome< T > |
class | GaMVArithmeticChromosome< T > |
This class has no built-in synchronizator, so LOCK_OBJECT
and LOCK_THIS_OBJECT
macros cannot be used with instances of this class. No public or private methods are thread-safe.
T | type of data used by value set. |
Chromosome::Representation::GaChromosomeDomainBlock< T >::GaChromosomeDomainBlock | ( | GaValueSet< T > * | domain, | |
GaCrossoverOperation * | crossover, | |||
GaMutationOperation * | mutation, | |||
GaFitnessOperation * | fitnessOperation, | |||
GaFitnessComparator * | fitnessComparator, | |||
GaChromosomeParams * | parameters | |||
) | [inline] |
This constructor initializes CCB with pointer to chromosomes' parameters, extern genetic operations and value set.
domain | pointer to chromosomes' value set. | |
crossover | pointer to extern crossover operation. | |
mutation | pointer to extern mutation operation. | |
fitnessOperation | pointer to extern fitness operation. | |
fitnessComparator | pointer to extern fitness comparator. | |
parameters | pointer to chromosomes' parameters. |
Chromosome::Representation::GaChromosomeDomainBlock< T >::GaChromosomeDomainBlock | ( | const GaChromosomeDomainBlock< T > & | rhs | ) | [inline] |
This is copy constructor. The constructor doesn't create copy of parameters', operations' and value set's objects, it only copies pointer to chromosomes' parameters, operations and value set.
rhs | reference to CCB which is copied. |
Chromosome::Representation::GaChromosomeDomainBlock< T >::GaChromosomeDomainBlock | ( | ) | [inline] |
This constructor initializes empty CCB.
const GaValueSet<T>& GACALL Chromosome::Representation::GaChromosomeDomainBlock< T >::GetValueSet | ( | ) | const [inline] |
This method is not thread-safe.
void GACALL Chromosome::Representation::GaChromosomeDomainBlock< T >::SetValueSet | ( | GaValueSet< T > * | domain | ) | [inline] |
SeValueSet
method sets pointer to value set in CCB.
This method is not thread-safe.
domain | pointer to value set. |
friend class GaDomainChromosome< T > [friend] |
friend class GaSingleValueChromosome< T > [friend] |
friend class GaSVArithmeticChromosome< T > [friend] |
friend class GaMultiValueChromosome< T > [friend] |
friend class GaMVArithmeticChromosome< T > [friend] |
GaValueSet<T>* Chromosome::Representation::GaChromosomeDomainBlock< T >::_domain [protected] |
Pointer to values set.