beowulf.model.tree
Interface BSTModel

All Superinterfaces:
BinaryTreeModel, TreeModel
All Known Implementing Classes:
DefaultBST

public interface BSTModel
extends BinaryTreeModel

Version:
1.0, 11/17/2003
Author:
Andy Scukanec (ags at cs dot cornell dot edu)

Method Summary
 Enumeration getInOrderElements()
          This will return an in-order enumeration of all values in the tree.
 Enumeration getPostOrderElements()
          This will return an post-order enumeration of all values in the tree.
 Enumeration getPreOrderElements()
          This will return an pre-order enumeration of all values in the tree.
 
Methods inherited from interface beowulf.model.tree.BinaryTreeModel
elements, getMaxDepth, getNodeCount, toString
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Method Detail

getInOrderElements

public Enumeration getInOrderElements()
This will return an in-order enumeration of all values in the tree.

Returns:
An in-order enumeration of all the elements in the tree.

getPreOrderElements

public Enumeration getPreOrderElements()
This will return an pre-order enumeration of all values in the tree.

Returns:
A pre-order enumeration of all the elements in the tree.

getPostOrderElements

public Enumeration getPostOrderElements()
This will return an post-order enumeration of all values in the tree.

Returns:
An post-order enumeration of all the elements in the tree.