![]() |
ECF 1.7
|
Ephemereal random constant (ERC) node of type double (Tree genotype). More...
#include <Terminal.h>
Public Member Functions | |
| bool | initialize (StateP state) |
| Initialize ERC value(s). | |
| PrimitiveP | assignToNode (PrimitiveP primitive) |
| Create (or choose) new unique ERC value and assign to tree node. | |
| Public Member Functions inherited from Tree::Primitives::ERC< double > | |
| void | execute (void *result, Tree &tree) |
| Execute the primitive. | |
| void | setValue (void *value) |
| Set terminal's value. | |
| void | getValue (void *value) |
| Get terminal's value. | |
| PrimitiveP | copyWithNode (PrimitiveP primitive) |
| Copy primitive (when copying a node, e.g. in crossover). The default behaviour just returns the same pointer (common primitives). (ERCs should override and make a new copy of the original object). | |
| Public Member Functions inherited from Tree::Primitives::Primitive | |
| void | getNextArgument (void *result, Tree &tree) |
| Execute next child node's primitive (execute next subtree). | |
| void | skipNextArgument (Tree &tree) |
| Skip next child subtree (doesn't execute the subtree). | |
| int | getNumberOfArguments () |
| Return primitive's number of arguments. | |
| void | setName (std::string name) |
| Set primitive's name. | |
| std::string | getName () |
| Get primitive's name. | |
| std::string | getComplementName () |
| Get complement's name. | |
Protected Attributes | |
| bool | useInterval_ |
| Protected Attributes inherited from Tree::Primitives::ERC< double > | |
| std::vector< double > * | values_ |
| Protected Attributes inherited from Tree::Primitives::Primitive | |
| std::string | name_ |
| int | nArguments_ |
| std::string | complementName_ |
Additional Inherited Members | |
| Public Attributes inherited from Tree::Primitives::ERC< double > | |
| std::string | baseName_ |
| double | value_ |
| Public Attributes inherited from Tree::Primitives::Primitive | |
| StateP | state_ |
Ephemereal random constant (ERC) node of type double (Tree genotype).
Possible values may be defined in the configuration with the interval [x y] or with a set {a b c ...}
Definition at line 187 of file Terminal.h.
|
inlinevirtual |
Create (or choose) new unique ERC value and assign to tree node.
| pointer | to destination |
Reimplemented from Tree::Primitives::ERC< double >.
Definition at line 213 of file Terminal.h.
|
inlinevirtual |
Initialize ERC value(s).
Read given values from config and store in vector.
Reimplemented from Tree::Primitives::ERC< double >.
Definition at line 190 of file Terminal.h.
|
protected |
Definition at line 235 of file Terminal.h.