|
Tree * | copy () |
| Create an identical copy of the genotype object. More...
|
|
void | growBuild (PrimitiveSetP primitiveSet) |
| Build tree with grow method. More...
|
|
void | fullBuild (PrimitiveSetP primitiveSet) |
| Build tree with full method. More...
|
|
void | update () |
| Calculate depth and subtree sizes of each node in the tree. More...
|
|
void | execute (void *) |
| Execute current tree. More...
|
|
void | addNode (Node *node) |
|
void | addNode (NodeP node) |
|
void | setTerminalValue (std::string, void *) |
| Set a terminal's value. More...
|
|
void | getTerminalValue (std::string, void *) |
| Retrieve a terminal's value. More...
|
|
void | write (XMLNode &) |
| Write genotype data to XMLNode. More...
|
|
void | read (XMLNode &) |
| Read genotype data from XMLNode. More...
|
|
void | registerParameters (StateP) |
| 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...
|
|
std::vector< MutationOpP > | getMutationOp () |
| Create and return a vector of mutation operators. More...
|
|
std::vector< CrossoverOpP > | getCrossoverOp () |
| Create and return a vector of crossover operators. More...
|
|
bool | addFunction (PrimitiveP) |
| Add user defined function primitive. Must be called prior to initialization (no impact otherwise). More...
|
|
bool | addTerminal (PrimitiveP) |
| Add user defined terminal primitive. Must be called prior to initialization (no impact otherwise). More...
|
|
uint | getMaxDepth () |
|
uint | getMinDepth () |
|
uint | getStartDepth () |
|
virtual bool | initialize (StateP state)=0 |
| Initialize a genotype object (read parameters, perform sanity check, build data) More...
|
|
virtual Genotype * | copy ()=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...
|
|
Tree class - implements genotype as a tree.
Tree inherits a vector of Node objects. Each node points to a Primitive object. Nodes in tree are aligned in a prefix notation. Some primitives are shared among all the trees, but some (such as ERC primitives) belong to a single Tree.
Definition at line 28 of file Tree_c.h.