org.rosuda.klimt
Class TreeRegistry

java.lang.Object
  extended by org.rosuda.klimt.TreeRegistry

public class TreeRegistry
extends java.lang.Object


Constructor Summary
TreeRegistry()
           
 
Method Summary
 void addTree(SNode t)
          this method equals to calling registerTree(t,t.getRootInfo().name) and is provided for backwards compatibility with older applications
 boolean contains(SNode r)
          checks whether a specific root is registered in the registry
 boolean contains(java.lang.String name)
          checks whether a tree with the specified name is present in the registry
 boolean exportForest(java.io.PrintStream p)
          export forest data of teh forest formed by the trees in this registry
 SVarSet getForestVarSet()
           
 SNode[] getRoots()
           
 java.util.Vector getTreeEntries()
           
 void registerTree(SNode t, java.lang.String n)
          register a tree with the dataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeRegistry

public TreeRegistry()
Method Detail

registerTree

public void registerTree(SNode t,
                         java.lang.String n)
register a tree with the dataset


contains

public boolean contains(SNode r)
checks whether a specific root is registered in the registry


contains

public boolean contains(java.lang.String name)
checks whether a tree with the specified name is present in the registry


addTree

public void addTree(SNode t)
this method equals to calling registerTree(t,t.getRootInfo().name) and is provided for backwards compatibility with older applications


exportForest

public boolean exportForest(java.io.PrintStream p)
export forest data of teh forest formed by the trees in this registry


getTreeEntries

public java.util.Vector getTreeEntries()

getRoots

public SNode[] getRoots()

getForestVarSet

public SVarSet getForestVarSet()