public interface Node
| Modifier and Type | Method and Description |
|---|---|
<T> T |
evaluate(Assignments assignments)
Returns the result of evaluating this
Node using the values of the specified Assignments. |
int |
getHeight()
Returns the height of this
Node. |
int |
getNodeCount()
Returns the total number of nodes represented by this
Node - including any child-nodes. |
NodeType |
getNodeType()
Returns the
NodeType of this Node. |
Type |
getType()
Returns the
Type of this Node. |
<T> T evaluate(Assignments assignments)
Node using the values of the specified Assignments.assignments - represents the values to assign to any variables used in the evaluation of this NodeNode using the values of the specified Assignmentsint getNodeCount()
Node - including any child-nodes.int getHeight()
Node.
The height of a node is the number of edges on the longest downward path between that node and a leaf.
Type getType()
Type of this Node.
This indicates the type of the value returned when #evaluate(Assignments) is called on this Node.
NodeType getNodeType()
NodeType of this Node.
This can be used to determine if the node is a function, constant or variable node.
OakGP Genetic Programming Framework