phylogeny
Class UpdownDistance.Node
java.lang.Object
|
+-phylogeny.UpdownDistance.Node
- Enclosing class:
- UpdownDistance
- public static class UpdownDistance.Node
- extends java.lang.Object
This class allows for a dynamically allocated tree structure. Each node can
support any amount of children, its own name, value, and flag to represent
marking for use during tree reduction.
- Author:
- Steven Regula
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
wait, wait, wait |
UpdownDistance.Node
public UpdownDistance.Node(double d)
UpdownDistance.Node
public UpdownDistance.Node(double d,
java.lang.String n)
setName
public void setName(java.lang.String s)
-
markNode
public void markNode()
-
unmarkNode
public void unmarkNode()
-
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
-
toString
public java.lang.String toString(boolean checkMark)
-
numChildren
public int numChildren()
-
numDescendants
public int numDescendants()
-
addChild
public UpdownDistance.Node addChild(UpdownDistance.Node n)
-
getChild
public UpdownDistance.Node getChild(int i)
-
toString
public static void toString(UpdownDistance.Node n,
java.lang.StringBuffer myBuffer)
-
toString
public static void toString(UpdownDistance.Node n,
java.lang.StringBuffer myBuffer,
boolean checkMark)
-