public abstract class KozaBuilder extends GPNodeBuilder
Modifier and Type | Field and Description |
---|---|
int |
maxDepth
The largest maximum tree depth RAMPED HALF-AND-HALF can specify.
|
int |
minDepth
The smallest maximum tree depth RAMPED HALF-AND-HALF can specify.
|
static java.lang.String |
P_MAXDEPTH |
static java.lang.String |
P_MINDEPTH |
CHECK_BOUNDARY, maxSize, minSize, NOSIZEGIVEN, P_MAXSIZE, P_MINSIZE, P_NUMSIZES, P_SIZE, sizeDistribution
Constructor and Description |
---|
KozaBuilder() |
Modifier and Type | Method and Description |
---|---|
protected GPNode |
fullNode(EvolutionState state,
int current,
int max,
GPType type,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set)
A private recursive method which builds a FULL-style tree for newRootedTree(...)
|
protected GPNode |
growNode(EvolutionState state,
int current,
int max,
GPType type,
int thread,
GPNodeParent parent,
int argposition,
GPFunctionSet set)
A private function which recursively returns a GROW tree to newRootedTree(...)
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
canPick, clone, errorAboutNoNodeWithType, newRootedTree, pickSize, warnAboutNonterminal, warnAboutNonTerminalWithType, warnAboutNoTerminalWithType
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defaultBase
public static final java.lang.String P_MAXDEPTH
public static final java.lang.String P_MINDEPTH
public int maxDepth
public int minDepth
public void setup(EvolutionState state, Parameter base)
Prototype
For prototypes, setup(...) is typically called once for the prototype instance; cloned instances do not receive the setup(...) call. setup(...) may be called more than once; the only guarantee is that it will get called at least once on an instance or some "parent" object from which it was ultimately cloned.
protected GPNode fullNode(EvolutionState state, int current, int max, GPType type, int thread, GPNodeParent parent, int argposition, GPFunctionSet set)
protected GPNode growNode(EvolutionState state, int current, int max, GPType type, int thread, GPNodeParent parent, int argposition, GPFunctionSet set)