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

Constructor Summary
UpdownDistance.Node(double d)
           
UpdownDistance.Node(double d, java.lang.String n)
           
 
Method Summary
 UpdownDistance.Node addChild(UpdownDistance.Node n)
           
 UpdownDistance.Node getChild(int i)
           
 void markNode()
           
 int numChildren()
           
 int numDescendants()
           
 void setName(java.lang.String s)
           
 java.lang.String toString()
           
 java.lang.String toString(boolean checkMark)
           
static void toString(UpdownDistance.Node n, java.lang.StringBuffer myBuffer)
           
static void toString(UpdownDistance.Node n, java.lang.StringBuffer myBuffer, boolean checkMark)
           
 void unmarkNode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdownDistance.Node

public UpdownDistance.Node(double d)

UpdownDistance.Node

public UpdownDistance.Node(double d,
                           java.lang.String n)
Method Detail

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)