#include <source/Chromosome.h>
Inherits Chromosome::GaChromosomeParamsBlock.
Inherited by Chromosome::Representation::GaChromosomeDomainBlock< T >.
Public Member Functions | |
| GaChromosomeOperationsBlock (GaCrossoverOperation *crossoverOperation, GaMutationOperation *mutationOperation, GaFitnessOperation *fitnessOperation, GaFitnessComparator *fitnessComparator, GaChromosomeParams *parameters) | |
| This constructor initializes CCB with pointer to chromosomes' parameters and extern genetic operations. | |
| GaChromosomeOperationsBlock (const GaChromosomeOperationsBlock &rhs) | |
| This is copy constructor. The constructor doesn't create copy of parameters' and operations' objects, it only copies pointer to chromosomes' parameters and operations. | |
| GaChromosomeOperationsBlock () | |
| This constructor initializes empty CCB. | |
| const GaCrossoverOperation &GACALL | GetCrossoverOperation () const |
| This method is not thread-safe. | |
| void GACALL | SetCrossoverOperation (GaCrossoverOperation *operation) |
SetCrossoverOperation sets pointer to extern crossover operation. | |
| const GaMutationOperation &GACALL | GetMutationOperation () const |
| This method is not thread-safe. | |
| void GACALL | SetMutationOperation (GaMutationOperation *operation) |
SetMutationOperation sets pointer to extern mutation operation. | |
| const GaFitnessOperation &GACALL | GetFitnessOperation () const |
| This method is not thread-safe. | |
| void GACALL | SetFitnessOperation (GaFitnessOperation *operation) |
SetFitnessOperation sets pointer to extern fitness operation. | |
| const GaFitnessComparator &GACALL | GetFitnessComparator () const |
| This method is not thread-safe. | |
| void GACALL | SetFitnessComparator (GaFitnessComparator *comparator) |
| SetFitnessComparator sets pointer to extern fitness comparator. | |
Protected Attributes | |
| GaFitnessOperation * | _fitnessOperation |
| Pointer to extern fitness operation. | |
| GaFitnessComparator * | _fitnessComparator |
| Pointer to extern fitness comparator. | |
| GaMutationOperation * | _mutationOperation |
| Pointer to extern mutation operation. | |
| GaCrossoverOperation * | _crossoverOperation |
| Pointer to extern crossover operation. | |
Friends | |
| class | GaDynamicOperationChromosome |
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.
| Chromosome::GaChromosomeOperationsBlock::GaChromosomeOperationsBlock | ( | GaCrossoverOperation * | crossoverOperation, | |
| GaMutationOperation * | mutationOperation, | |||
| GaFitnessOperation * | fitnessOperation, | |||
| GaFitnessComparator * | fitnessComparator, | |||
| GaChromosomeParams * | parameters | |||
| ) | [inline] |
This constructor initializes CCB with pointer to chromosomes' parameters and extern genetic operations.
| crossoverOperation | pointer to extern crossover operation. | |
| mutationOperation | pointer to extern mutation operation. | |
| fitnessOperation | pointer to extern fitness operation. | |
| fitnessComparator | pointer to extern fitness comparator. | |
| parameters | pointer to chromosomes� parameters. |
| Chromosome::GaChromosomeOperationsBlock::GaChromosomeOperationsBlock | ( | const GaChromosomeOperationsBlock & | rhs | ) | [inline] |
This is copy constructor. The constructor doesn't create copy of parameters' and operations' objects, it only copies pointer to chromosomes' parameters and operations.
| rhs | reference to CCB which is copied. |
| Chromosome::GaChromosomeOperationsBlock::GaChromosomeOperationsBlock | ( | ) | [inline] |
This constructor initializes empty CCB.
| const GaCrossoverOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetCrossoverOperation | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Chromosome::GaChromosomeOperationsBlock::SetCrossoverOperation | ( | GaCrossoverOperation * | operation | ) | [inline] |
SetCrossoverOperation sets pointer to extern crossover operation.
This method is not thread-safe.
| operation |
| const GaMutationOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetMutationOperation | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Chromosome::GaChromosomeOperationsBlock::SetMutationOperation | ( | GaMutationOperation * | operation | ) | [inline] |
SetMutationOperation sets pointer to extern mutation operation.
This method is not thread-safe.
| operation | pointer to extern mutation operation. |
| const GaFitnessOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetFitnessOperation | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Chromosome::GaChromosomeOperationsBlock::SetFitnessOperation | ( | GaFitnessOperation * | operation | ) | [inline] |
SetFitnessOperation sets pointer to extern fitness operation.
This method is not thread-safe.
| operation | pointer to extern fitness operation. |
| const GaFitnessComparator& GACALL Chromosome::GaChromosomeOperationsBlock::GetFitnessComparator | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Chromosome::GaChromosomeOperationsBlock::SetFitnessComparator | ( | GaFitnessComparator * | comparator | ) | [inline] |
SetFitnessComparator sets pointer to extern fitness comparator.
This method is not thread-safe.
| comparator | pointer to extern fitness comparator. |
friend class GaDynamicOperationChromosome [friend] |
Pointer to extern fitness operation.
Pointer to extern fitness comparator.
Pointer to extern mutation operation.
Pointer to extern crossover operation.