ECF 1.5
Public Member Functions | Public Attributes | List of all members
IntGenotype::IntGenotype Class Reference
Inheritance diagram for IntGenotype::IntGenotype:
Genotype Genotype

Public Member Functions

IntGenotypecopy ()
 Create an identical copy of the genotype object. More...
 
double getLBound ()
 return lower bound of the defined interval More...
 
double getUBound ()
 return upper bound of the defined interval More...
 
std::vector< CrossoverOpP > getCrossoverOp ()
 Create and return a vector of crossover operators. More...
 
std::vector< MutationOpP > getMutationOp ()
 Create and return a vector of mutation operators. More...
 
void registerParameters (StateP state)
 Register genotype's parameters (called before Genotype::initialize) More...
 
bool initialize (StateP state)
 Initialize a genotype object (read parameters, perform sanity check, build data) More...
 
void write (XMLNode &xIntGenotype)
 Write genotype data to XMLNode. More...
 
void read (XMLNode &xIntGenotype)
 Read genotype data from XMLNode. More...
 
IntGenotypecopy ()
 Create an identical copy of the genotype object. More...
 
double getLBound ()
 return lower bound of the defined interval More...
 
double getUBound ()
 return upper bound of the defined interval More...
 
std::vector< CrossoverOpP > getCrossoverOp ()
 Create and return a vector of crossover operators. More...
 
std::vector< MutationOpP > getMutationOp ()
 Create and return a vector of mutation operators. More...
 
void registerParameters (StateP state)
 Register genotype's parameters (called before Genotype::initialize) More...
 
bool initialize (StateP state)
 Initialize a genotype object (read parameters, perform sanity check, build data) More...
 
void write (XMLNode &xIntGenotype)
 Write genotype data to XMLNode. More...
 
void read (XMLNode &xIntGenotype)
 Read genotype data from XMLNode. 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...
 

Public Attributes

int minValue_
 
int maxValue_
 
uint nSize_
 
std::vector< int > intValues
 

Additional Inherited Members

- 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

Definition at line 13 of file IntGenotype.h.

Constructor & Destructor Documentation

◆ IntGenotype() [1/2]

IntGenotype::IntGenotype::IntGenotype ( )
inline

Definition at line 20 of file IntGenotype.h.

◆ IntGenotype() [2/2]

IntGenotype::IntGenotype::IntGenotype ( )
inline

Definition at line 20 of file IntGenotype.h.

Member Function Documentation

◆ copy() [1/2]

IntGenotype * IntGenotype::IntGenotype::copy ( )
inlinevirtual

Create an identical copy of the genotype object.

Implements Genotype.

Definition at line 25 of file IntGenotype.h.

◆ copy() [2/2]

IntGenotype * IntGenotype::IntGenotype::copy ( )
inlinevirtual

Create an identical copy of the genotype object.

Implements Genotype.

Definition at line 25 of file IntGenotype.h.

◆ getCrossoverOp() [1/2]

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

Create and return a vector of crossover operators.

Reimplemented from Genotype.

Definition at line 42 of file IntGenotype.h.

◆ getCrossoverOp() [2/2]

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

Create and return a vector of crossover operators.

Reimplemented from Genotype.

Definition at line 42 of file IntGenotype.h.

◆ getLBound() [1/2]

double IntGenotype::IntGenotype::getLBound ( )
inline

return lower bound of the defined interval

Definition at line 32 of file IntGenotype.h.

◆ getLBound() [2/2]

double IntGenotype::IntGenotype::getLBound ( )
inline

return lower bound of the defined interval

Definition at line 32 of file IntGenotype.h.

◆ getMutationOp() [1/2]

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

Create and return a vector of mutation operators.

Reimplemented from Genotype.

Definition at line 49 of file IntGenotype.h.

◆ getMutationOp() [2/2]

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

Create and return a vector of mutation operators.

Reimplemented from Genotype.

Definition at line 51 of file IntGenotype.h.

◆ getUBound() [1/2]

double IntGenotype::IntGenotype::getUBound ( )
inline

return upper bound of the defined interval

Definition at line 38 of file IntGenotype.h.

◆ getUBound() [2/2]

double IntGenotype::IntGenotype::getUBound ( )
inline

return upper bound of the defined interval

Definition at line 38 of file IntGenotype.h.

◆ initialize() [1/2]

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

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

Implements Genotype.

Definition at line 17 of file IntGenotype.cpp.

◆ initialize() [2/2]

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

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

Implements Genotype.

◆ read() [1/2]

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

Read genotype data from XMLNode.

Implements Genotype.

Definition at line 68 of file IntGenotype.cpp.

◆ read() [2/2]

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

Read genotype data from XMLNode.

Implements Genotype.

◆ registerParameters() [1/2]

void IntGenotype::IntGenotype::registerParameters ( StateP  )
virtual

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

Reimplemented from Genotype.

Definition at line 10 of file IntGenotype.cpp.

◆ registerParameters() [2/2]

void IntGenotype::IntGenotype::registerParameters ( StateP  )
virtual

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

Reimplemented from Genotype.

◆ write() [1/2]

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

Write genotype data to XMLNode.

Implements Genotype.

Definition at line 54 of file IntGenotype.cpp.

◆ write() [2/2]

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

Write genotype data to XMLNode.

Implements Genotype.

Member Data Documentation

◆ intValues

std::vector< int > IntGenotype::IntGenotype::intValues

Definition at line 18 of file IntGenotype.h.

◆ maxValue_

int IntGenotype::IntGenotype::maxValue_

Definition at line 16 of file IntGenotype.h.

◆ minValue_

int IntGenotype::IntGenotype::minValue_

Definition at line 16 of file IntGenotype.h.

◆ nSize_

uint IntGenotype::IntGenotype::nSize_

Definition at line 17 of file IntGenotype.h.


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