Selection Operator Interface. More...

Inheritance diagram for Selection:

List of all members.

Public Member Functions

 Selection ()
 Constructor.
virtual ~Selection ()
 Destructor.
GeneticAlgoGA ()
 Return the GeneticAlgo used.
const Genomegenome () const
 Return the Genome on which it selects.
virtual const Genotypeselect ()=0
 Select a Genotype.
void setGA (GeneticAlgo *g)
 Set the GeneticAlgo used.
virtual void setGenome (const Genome *g)
 Set the Genome from which to select Genotypes.

Protected Attributes

GeneticAlgoga
 GeneticAlgo used.
const Genomegenomev
 Genome on which it selects Genotypes.

Detailed Description

Selection Operator Interface.

Description
Interface of the Selection Operator
Warnings

Definition at line 40 of file selection.h.


Constructor & Destructor Documentation

Selection ( ) [inline]

Constructor.

Definition at line 43 of file selection.h.

virtual ~Selection ( ) [inline, virtual]

Destructor.

Definition at line 48 of file selection.h.


Member Function Documentation

GeneticAlgo* GA ( ) [inline]

Return the GeneticAlgo used.

Definition at line 69 of file selection.h.

const Genome* genome ( ) const [inline]

Return the Genome on which it selects.

Definition at line 61 of file selection.h.

Referenced by RouletteWheelSelection::select(), and DeterministicRank::select().

virtual const Genotype* select ( ) [pure virtual]

Select a Genotype.

Implemented in DeterministicRank, and RouletteWheelSelection.

Referenced by FixedSize::reproduction().

void setGA ( GeneticAlgo g) [inline]

Set the GeneticAlgo used.

Definition at line 65 of file selection.h.

Referenced by FixedSize::setSelection().

virtual void setGenome ( const Genome g) [inline, virtual]

Set the Genome from which to select Genotypes.

Note:
subclasses may re-implement this method to perform initialization of the selection process

Reimplemented in DeterministicRank, and RouletteWheelSelection.

Definition at line 57 of file selection.h.

Referenced by FixedSize::reproduction().


Member Data Documentation

GeneticAlgo* ga [protected]

GeneticAlgo used.

Definition at line 77 of file selection.h.

const Genome* genomev [protected]

Genome on which it selects Genotypes.

Definition at line 71 of file selection.h.


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