|
||||||||
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>
weka.filters.supervised.attribute.gpattributegeneration.GeneNode<T>
public class GeneNode<T>
Node type for Genes. Ported from C#.
Constructor Summary | |
---|---|
GeneNode()
Creates an empty node |
|
GeneNode(T data)
Creates a gene node with the given data |
|
GeneNode(T data,
GeneNode<T> left,
GeneNode<T> right)
Creates a gene node |
Method Summary | |
---|---|
void |
add(GeneNode<T> node)
add a child to the node (up to a maximum of 2) |
GeneNode<T> |
getLeft()
Get Left child |
GeneNode<T> |
getParent()
Gets the node's parent |
GeneNode<T> |
getRight()
Get Right child |
void |
setParent(GeneNode<T> parent)
Set the parent |
java.lang.String |
toString()
Converts node to a string |
Methods inherited from class weka.filters.supervised.attribute.gpattributegeneration.Node |
---|
getChildren, getValue, setChildren, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneNode()
public GeneNode(T data)
data
- data to pass to the nodepublic GeneNode(T data, GeneNode<T> left, GeneNode<T> right)
data
- data to pass to the nodeleft
- left childright
- right childMethod Detail |
---|
public void add(GeneNode<T> node)
node
- Node to add to the current node as a childpublic GeneNode<T> getLeft()
public GeneNode<T> getRight()
public GeneNode<T> getParent()
public void setParent(GeneNode<T> parent)
parent
- Parent to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |