Crossover Operator Interface. More...

Inheritance diagram for Crossover:

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.
 
- Public Member Functions inherited from ParameterSettableWithConfigureFunction
void addObserver (RuntimeParameterObserver *obs)
 
virtual void configure (ConfigurationParameters &params, QString prefix)=0
 
getRuntimeParameter (QString paramName)
 
virtual ParameterSettableUIgetUIManager ()
 
 ParameterSettable ()
 
virtual void postConfigureInitialization ()
 
void removeObserver (RuntimeParameterObserver *obs)
 
virtual void save (ConfigurationParameters &params, QString prefix)=0
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 
- Public Member Functions inherited from ParameterSettable
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 

Protected Attributes

GeneticAlgoga
 GeneticAlgo used.
 
const Genomegenomev
 Genome where Genotypes lives.
 

Additional Inherited Members

- Public Types inherited from ParameterSettableWithConfigureFunction
enum  Property
 
- Static Public Member Functions inherited from ParameterSettableWithConfigureFunction
static void describe (QString type)
 
static QString fullParameterDescriptionPath (QString type, QString param)
 
static QString fullSubgroupDescriptionPath (QString type, QString sub)
 
- Public Attributes inherited from ParameterSettableWithConfigureFunction
 AllowMultiple
 
 Default
 
 IsList
 
 IsMandatory
 
- Static Public Attributes inherited from ParameterSettableWithConfigureFunction
static const double Infinity
 
static const int MaxInteger
 
static const int MinInteger
 
- Protected Member Functions inherited from ParameterSettableWithConfigureFunction
void notifyChangesToParam (QString paramName)
 
- Static Protected Member Functions inherited from ParameterSettableWithConfigureFunction
static Descriptor addTypeDescription (QString type, QString shortHelp, QString longHelp=QString(""))
 
static void setGraphicalEditor (QString type)
 

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 ( )
inlinevirtual

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: