public class TreeNodeData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
TreeNodeData(int UID,
java.lang.String statsName,
java.lang.String statsType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
dump()
Recursively prints the tree to System.out.
|
void |
dump(java.io.PrintStream out)
Recursively prints the tree to the specified PrintStream
|
void |
dump(java.io.PrintStream out,
java.lang.String indent)
This protected method is used to recursively dump the contents of the this class
|
TreeNodeData |
getChild(int i)
Returns the node at the given index.
|
int |
getLevel()
Returns for the level
|
int |
getNumChildren()
Return the number of children this node has.
|
java.lang.String |
getStatsName()
Return the statsName for this node.
|
java.lang.String |
getStatsType()
Return the statsType for this node.
|
int |
getUID()
Return the identifier for this node.
|
void |
setChildren(java.util.ArrayList children)
Adds a child to the node
|
void |
setLevel(int i)
Sets the level
|
public TreeNodeData(int UID, java.lang.String statsName, java.lang.String statsType)
public void setChildren(java.util.ArrayList children)
child
- public int getNumChildren()
public TreeNodeData getChild(int i)
i
- The node index to returnpublic int getUID()
public java.lang.String getStatsName()
public java.lang.String getStatsType()
public int getLevel()
public void setLevel(int i)
i
- public void dump()
public void dump(java.io.PrintStream out)
out
- public void dump(java.io.PrintStream out, java.lang.String indent)
out
- indent
-