Public Types | Public Member Functions | Public Attributes | Protected Attributes

Permutation::Permutation Class Reference

Permutation class - implements genotype as a vector of indices (permutation of indices). More...

#include <Permutation.h>

Inheritance diagram for Permutation::Permutation:
Genotype

List of all members.

Public Types

typedef std::vector< int > var

Public Member Functions

uint getSize ()
bool initialize (StateP state)
void registerParameters (StateP state)
Permutationcopy ()
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

Detailed Description

Permutation class - implements genotype as a vector of indices (permutation of indices).

Definition at line 19 of file Permutation.h.


Member Function Documentation

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]

Read genotype data from XMLNode

Implements Genotype.

Definition at line 58 of file Permutation.cpp.

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]

Write genotype data to XMLNode

Implements Genotype.

Definition at line 44 of file Permutation.cpp.


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