Crossover Operator Interface. More...

Inheritance diagram for Crossover:

List of all members.

Public Member Functions

 Crossover ()
 Constructor.
virtual ~Crossover ()
 Destructor.
virtual void crossover (Genotype *father, const Genotype *mother)=0
 Crossover two Genotypes and return the father modified.
GeneticAlgoGA ()
 Return the GeneticAlgo used.
const Genomegenome ()
 Return the Genome.
void setGA (GeneticAlgo *g)
 Set the GeneticAlgo used.
void setGenome (const Genome *g)
 Set the Genome where Genotypes lives.

Protected Attributes

GeneticAlgoga
 GeneticAlgo used.
const Genomegenomev
 Genome where Genotypes lives.

Detailed Description

Crossover Operator Interface.

Description
Interface of the Crossover Operator
Warnings

Definition at line 40 of file crossover.h.


Constructor & Destructor Documentation

Crossover ( ) [inline]

Constructor.

Definition at line 43 of file crossover.h.

virtual ~Crossover ( ) [inline, virtual]

Destructor.

Definition at line 48 of file crossover.h.


Member Function Documentation

virtual void crossover ( Genotype father,
const Genotype mother 
) [pure virtual]

Crossover two Genotypes and return the father modified.

Note:
the mother will not changed, while the father will be replaced by new one

Implemented in OnePoint.

Referenced by FixedSize::reproduction().

GeneticAlgo* GA ( ) [inline]

Return the GeneticAlgo used.

Definition at line 68 of file crossover.h.

const Genome* genome ( ) [inline]

Return the Genome.

Definition at line 60 of file crossover.h.

void setGA ( GeneticAlgo g) [inline]

Set the GeneticAlgo used.

Definition at line 64 of file crossover.h.

Referenced by FixedSize::setCrossover().

void setGenome ( const Genome g) [inline]

Set the Genome where Genotypes lives.

Definition at line 56 of file crossover.h.

Referenced by FixedSize::reproduction().


Member Data Documentation

GeneticAlgo* ga [protected]

GeneticAlgo used.

Definition at line 76 of file crossover.h.

const Genome* genomev [protected]

Genome where Genotypes lives.

Definition at line 70 of file crossover.h.


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