uk.ac.sanger.psu.gfmerge.util.algotools._old
Class Tree

java.lang.Object
  |
  +--uk.ac.sanger.psu.gfmerge.util.algotools._old.Tree
Direct Known Subclasses:
SearchTree

public class Tree
extends java.lang.Object

class tree with three constructors and four methods a tree consits of data fields value, left, right


Field Summary
static Tree EMPTY
           
 
Constructor Summary
Tree()
           
Tree(java.lang.Object x, java.lang.Object f)
           
Tree(Tree l, java.lang.Object x, java.lang.Object f, Tree r)
           
 
Method Summary
 boolean empty()
           
 java.util.ArrayList features()
           
 Tree left()
           
 Tree right()
           
 java.lang.Object value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final Tree EMPTY
Constructor Detail

Tree

public Tree()

Tree

public Tree(java.lang.Object x,
            java.lang.Object f)

Tree

public Tree(Tree l,
            java.lang.Object x,
            java.lang.Object f,
            Tree r)
Method Detail

empty

public boolean empty()

left

public Tree left()

right

public Tree right()

value

public java.lang.Object value()

features

public java.util.ArrayList features()