Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Teem::ParameterGenotypeDecoder Class Reference
[Genotype decoders]

#include <ParameterGenotypeDecoder.h>

Inheritance diagram for Teem::ParameterGenotypeDecoder:

Teem::GenotypeDecoder List of all members.

Detailed Description

Genotype decoder to decode a set of parameter (no controller here).

Parameter are located in a std::map. The decode needs no step. Here is an example of settings to use this decoder:

// decoder settings
    name = "Parameter"
            name = "Param 1";
            range = 0 1;
            name = "Param 2";
            range = -1 1;

Public Member Functions

 ParameterGenotypeDecoder (const std::string &root)
virtual ~ParameterGenotypeDecoder ()
 Virtual destructor, do nothing.
virtual GenomecreateGenome ()
 Create a genome with the appropriate size.
virtual Controllerdecode (Genome *genome)
 Decode the genome to the parameters. Returns always NULL.
double getParameter (const std::string &key)
 Return the decoded value of a parameter.

Protected Attributes

std::map< std::string, ParamDescparameters
 Container for the parameters.


struct  ParamDesc
 Internal structure to describe a parameter. More...

The documentation for this class was generated from the following files:
Generated on Mon Oct 24 17:38:27 2005 for Teem by  doxygen 1.4.2