Crossover Class Reference
Crossover Operator Interface. More...

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. | |
GeneticAlgo * | GA () |
Return the GeneticAlgo used. | |
const Genome * | genome () |
Return the Genome. | |
void | setGA (GeneticAlgo *g) |
Set the GeneticAlgo used. | |
void | setGenome (const Genome *g) |
Set the Genome where Genotypes lives. | |
Protected Attributes | |
GeneticAlgo * | ga |
GeneticAlgo used. | |
const Genome * | genomev |
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
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.
Genome where Genotypes lives.
Definition at line 70 of file crossover.h.
The documentation for this class was generated from the following file:
- ga/include/core/crossover.h