Permutation class - implements genotype as a vector of indices (permutation of indices). More...
#include <Permutation.h>
Public Types | |
| typedef std::vector< int > | var |
Public Member Functions | |
| uint | getSize () |
| bool | initialize (StateP state) |
| void | registerParameters (StateP state) |
| Permutation * | copy () |
| std::vector< CrossoverOpP > | getCrossoverOp () |
| std::vector< MutationOpP > | getMutationOp () |
| void | write (XMLNode &) |
| void | read (XMLNode &) |
Public Attributes | |
| var | variables |
Protected Attributes | |
| uint | size_ |
| permutation vector size | |
Permutation class - implements genotype as a vector of indices (permutation of indices).
Definition at line 19 of file Permutation.h.
| Permutation* Permutation::Permutation::copy | ( | ) | [inline, virtual] |
Create an identical copy of the genotype object
Implements Genotype.
Definition at line 35 of file Permutation.h.
| std::vector<CrossoverOpP> Permutation::Permutation::getCrossoverOp | ( | ) | [inline, virtual] |
Create and return a vector of crossover operators
Reimplemented from Genotype.
Definition at line 41 of file Permutation.h.
| std::vector<MutationOpP> Permutation::Permutation::getMutationOp | ( | ) | [inline, virtual] |
Create and return a vector of mutation operators
Reimplemented from Genotype.
Definition at line 50 of file Permutation.h.
| bool Permutation::Permutation::initialize | ( | StateP | state | ) | [virtual] |
Initialize a genotype object (read parameters, perform sanity check, build data)
Implements Genotype.
Definition at line 16 of file Permutation.cpp.
| void Permutation::Permutation::read | ( | XMLNode & | ) | [virtual] |
| void Permutation::Permutation::registerParameters | ( | StateP | ) | [virtual] |
Register genotype's parameters (called before Genotype::initialize)
Reimplemented from Genotype.
Definition at line 10 of file Permutation.cpp.
| void Permutation::Permutation::write | ( | XMLNode & | ) | [virtual] |
1.7.1