ECF 1.5
Public Member Functions | List of all members
FloatingPoint::FloatingPoint Class Reference

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

#include <FloatingPoint.h>

Inheritance diagram for FloatingPoint::FloatingPoint:
RealValueGenotype Genotype

Public Member Functions

bool initialize (StateP state)
 Initialize a genotype object (read parameters, perform sanity check, build data) More...
 
void registerParameters (StateP state)
 Register genotype's parameters (called before Genotype::initialize) More...
 
double getLBound ()
 return lower bound of the defined interval More...
 
double getUBound ()
 return upper bound of the defined interval More...
 
FloatingPointcopy ()
 Create an identical copy of the genotype object. More...
 
std::vector< CrossoverOpP > getCrossoverOp ()
 return usable crx operators More...
 
std::vector< MutationOpP > getMutationOp ()
 Create and return a vector of mutation operators. More...
 
void write (XMLNode &xFloatingPoint)
 Write genotype data to XMLNode. More...
 
void read (XMLNode &xFloatingPoint)
 Read genotype data from XMLNode. More...
 
- Public Member Functions inherited from RealValueGenotype
double getLBound ()
 return lower bound of the defined interval More...
 
double getUBound ()
 return upper bound of the defined interval More...
 
virtual bool update (void)
 Update genotype after genetic material change via genetic operators. More...
 
- Public Member Functions inherited from Genotype
virtual bool initialize (StateP state)=0
 Initialize a genotype object (read parameters, perform sanity check, build data) More...
 
virtual Genotypecopy ()=0
 Create an identical copy of the genotype object. More...
 
virtual std::vector< CrossoverOpP > getCrossoverOp ()
 Create and return a vector of crossover operators. More...
 
virtual std::vector< MutationOpP > getMutationOp ()
 Create and return a vector of mutation operators. More...
 
virtual void registerParameters (StateP)
 Register genotype's parameters (called before Genotype::initialize) More...
 
bool registerParameter (StateP state, std::string name, voidP value, enum ECF::type T, std::string description="")
 Register a single parameter. More...
 
voidP getParameterValue (StateP state, std::string name)
 Read single parameter value from Registry. More...
 
bool setParameterValue (StateP state, std::string name, voidP value)
 Write single parameter value to Registry. More...
 
bool isParameterDefined (StateP state, std::string name)
 Check if parameter is defined in the configuration. More...
 
virtual void read (XMLNode &)=0
 Read genotype data from XMLNode. More...
 
virtual void write (XMLNode &)=0
 Write genotype data to XMLNode. More...
 
virtual uint getGenomeSize ()
 
std::string getName ()
 Return genotype's name (each genotype is uniquely identified with its name). More...
 
uint getGenotypeId ()
 Return this genotype's index in individual structure. More...
 
void setGenotypeId (uint id)
 Set genotype index in an individual. More...
 
std::string toString ()
 Output genotype to string. More...
 

Additional Inherited Members

- Public Attributes inherited from RealValueGenotype
std::vector< double > realValue
 vector of floating point values More...
 
- Protected Attributes inherited from RealValueGenotype
double minValue_
 lower bound More...
 
double maxValue_
 upper bound More...
 
uint nDimension_
 dimensionality More...
 
- Protected Attributes inherited from Genotype
std::string name_
 genotype's name More...
 
uint genotypeId_
 this genotype's unique index in individual structure More...
 

Detailed Description

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

FloatingPoint genotype parameters are (inherited from RealValueGenoptype):

Definition at line 39 of file FloatingPoint.h.

Constructor & Destructor Documentation

◆ FloatingPoint()

FloatingPoint::FloatingPoint::FloatingPoint ( )
inline

Definition at line 43 of file FloatingPoint.h.

Member Function Documentation

◆ copy()

FloatingPoint * FloatingPoint::FloatingPoint::copy ( )
inlinevirtual

Create an identical copy of the genotype object.

Implements Genotype.

Definition at line 58 of file FloatingPoint.h.

◆ getCrossoverOp()

std::vector< CrossoverOpP > FloatingPoint::FloatingPoint::getCrossoverOp ( )
inlinevirtual

return usable crx operators

Reimplemented from Genotype.

Definition at line 65 of file FloatingPoint.h.

◆ getLBound()

double FloatingPoint::FloatingPoint::getLBound ( )
inline

return lower bound of the defined interval

Definition at line 51 of file FloatingPoint.h.

◆ getMutationOp()

std::vector< MutationOpP > FloatingPoint::FloatingPoint::getMutationOp ( )
inlinevirtual

Create and return a vector of mutation operators.

Reimplemented from Genotype.

Definition at line 86 of file FloatingPoint.h.

◆ getUBound()

double FloatingPoint::FloatingPoint::getUBound ( )
inline

return upper bound of the defined interval

Definition at line 55 of file FloatingPoint.h.

◆ initialize()

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

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

Implements Genotype.

Definition at line 20 of file FloatingPoint.cpp.

◆ read()

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

Read genotype data from XMLNode.

Implements Genotype.

Definition at line 72 of file FloatingPoint.cpp.

◆ registerParameters()

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.

◆ write()

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

Write genotype data to XMLNode.

Implements Genotype.

Definition at line 58 of file FloatingPoint.cpp.


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