|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.supervised.attribute.gpattributegeneration.Node<T>
public class Node<T>
Defines a node and its children (if the node is a function) Ported from Luke Devonshire's C# project
Constructor Summary | |
---|---|
Node()
Creates an empty node |
|
Node(T data)
Creates a node with the given data |
|
Node(T data,
GeneNodeList<T> children)
Creates a node with the given data and children |
Method Summary | |
---|---|
GeneNodeList<T> |
getChildren()
Returns the children |
T |
getValue()
Returns the value of the node |
void |
setChildren(GeneNodeList<T> children)
Sets the children |
void |
setValue(T data)
Set the value of the node |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Node()
public Node(T data)
data
- Data to create node withpublic Node(T data, GeneNodeList<T> children)
data
- Data to create node withchildren
- Children to also add to the nodeMethod Detail |
---|
public T getValue()
public void setValue(T data)
data
- The valuepublic GeneNodeList<T> getChildren()
public void setChildren(GeneNodeList<T> children)
children
- Children to set for the node
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |