Chromosome::GaChromosomeOperationsBlock Class Reference

This class is CCB for chromosomes which use extern genetic operations. This CCB stores pointer to those operations. More...

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

Inherits Chromosome::GaChromosomeParamsBlock.

Inherited by Chromosome::Representation::GaChromosomeDomainBlock< T >.

List of all members.

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


Detailed Description

This class is CCB for chromosomes which use extern genetic operations. This CCB stores pointer to those operations.

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.


Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
rhs reference to CCB which is copied.

Chromosome::GaChromosomeOperationsBlock::GaChromosomeOperationsBlock (  )  [inline]

This constructor initializes empty CCB.


Member Function Documentation

const GaCrossoverOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetCrossoverOperation (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns reference to extern crossover operation.

void GACALL Chromosome::GaChromosomeOperationsBlock::SetCrossoverOperation ( GaCrossoverOperation operation  )  [inline]

SetCrossoverOperation sets pointer to extern crossover operation.

This method is not thread-safe.

Parameters:
operation 

const GaMutationOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetMutationOperation (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns reference to extern mutation operation.

void GACALL Chromosome::GaChromosomeOperationsBlock::SetMutationOperation ( GaMutationOperation operation  )  [inline]

SetMutationOperation sets pointer to extern mutation operation.

This method is not thread-safe.

Parameters:
operation pointer to extern mutation operation.

const GaFitnessOperation& GACALL Chromosome::GaChromosomeOperationsBlock::GetFitnessOperation (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns reference to extern fitness operation.

void GACALL Chromosome::GaChromosomeOperationsBlock::SetFitnessOperation ( GaFitnessOperation operation  )  [inline]

SetFitnessOperation sets pointer to extern fitness operation.

This method is not thread-safe.

Parameters:
operation pointer to extern fitness operation.

const GaFitnessComparator& GACALL Chromosome::GaChromosomeOperationsBlock::GetFitnessComparator (  )  const [inline]

This method is not thread-safe.

Returns:
Method returns reference to extern fitness comparator.

void GACALL Chromosome::GaChromosomeOperationsBlock::SetFitnessComparator ( GaFitnessComparator comparator  )  [inline]

SetFitnessComparator sets pointer to extern fitness comparator.

This method is not thread-safe.

Parameters:
comparator pointer to extern fitness comparator.


Friends And Related Function Documentation

friend class GaDynamicOperationChromosome [friend]


Member Data Documentation

Pointer to extern fitness operation.

Pointer to extern fitness comparator.

Pointer to extern mutation operation.

Pointer to extern crossover operation.


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

Genetic Algorithm Library
Coolsoft Software Development