Public Member Functions | Public Attributes | Protected Attributes

FloatingPoint::FloatingPoint Class Reference

FloatingPoint class - implements genotype as a vector of floating point values. More...

#include <FloatingPoint.h>

Inheritance diagram for FloatingPoint::FloatingPoint:
Genotype

List of all members.

Public Member Functions

bool initialize (StateP state)
void registerParameters (StateP state)
double getLBound ()
double getUBound ()
FloatingPointcopy ()
std::vector< CrossoverOpP > getCrossoverOp ()
std::vector< MutationOpP > getMutationOp ()
void write (XMLNode &xFloatingPoint)
void read (XMLNode &xFloatingPoint)

Public Attributes

std::vector< double > realValue
 vector of floating point values

Protected Attributes

double minValue_
 lower bound
double maxValue_
 upper bound
uint nDimension_
 dimensionality

Detailed Description

FloatingPoint class - implements genotype as a vector of floating point values.

FloatingPoint genotype parameters are:

Definition at line 20 of file FloatingPoint.h.


Member Function Documentation

FloatingPoint* FloatingPoint::FloatingPoint::copy (  )  [inline, virtual]

Create an identical copy of the genotype object

Implements Genotype.

Definition at line 44 of file FloatingPoint.h.

std::vector<CrossoverOpP> FloatingPoint::FloatingPoint::getCrossoverOp (  )  [inline, virtual]

Create and return a vector of crossover operators

Reimplemented from Genotype.

Definition at line 50 of file FloatingPoint.h.

std::vector<MutationOpP> FloatingPoint::FloatingPoint::getMutationOp (  )  [inline, virtual]

Create and return a vector of mutation operators

Reimplemented from Genotype.

Definition at line 58 of file FloatingPoint.h.

bool FloatingPoint::FloatingPoint::initialize ( StateP  state  )  [virtual]

Initialize a genotype object (read parameters, perform sanity check, build data)

Implements Genotype.

Definition at line 17 of file FloatingPoint.cpp.

void FloatingPoint::FloatingPoint::read ( XMLNode &   )  [virtual]

Read genotype data from XMLNode

Implements Genotype.

Definition at line 69 of file FloatingPoint.cpp.

void FloatingPoint::FloatingPoint::registerParameters ( StateP   )  [virtual]

Register genotype's parameters (called before Genotype::initialize)

Reimplemented from Genotype.

Definition at line 9 of file FloatingPoint.cpp.

void FloatingPoint::FloatingPoint::write ( XMLNode &   )  [virtual]

Write genotype data to XMLNode

Implements Genotype.

Definition at line 55 of file FloatingPoint.cpp.


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