pal.tree
Class TreeRestricter

java.lang.Object
  extended by pal.tree.TreeRestricter

public class TreeRestricter
extends java.lang.Object


Constructor Summary
TreeRestricter(Node root, int units, java.lang.String[] names, boolean inclusion)
           
TreeRestricter(Tree t, java.lang.String[] names, boolean inclusion)
           
 
Method Summary
 pal.tree.TreeRestricter.RNode construct(Node peer, java.lang.String[] names, boolean inclusion, boolean isRoot)
           
 Node generateNode()
           
 Tree generateTree()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeRestricter

public TreeRestricter(Node root,
                      int units,
                      java.lang.String[] names,
                      boolean inclusion)
Parameters:
root - The root of the tree
units - the units of the tree
names - the names of the nodes to either exclude, or include
inclusion - if true the names supplied mark leaves to include, else mark leaves to exclude

TreeRestricter

public TreeRestricter(Tree t,
                      java.lang.String[] names,
                      boolean inclusion)
Parameters:
root - The root of the tree
units - the units of the tree
names - the names of the nodes to either exclude, or include
inclusion - if true the names supplied mark leaves to include, else mark leaves to exclude
Method Detail

generateNode

public final Node generateNode()

generateTree

public final Tree generateTree()

construct

public final pal.tree.TreeRestricter.RNode construct(Node peer,
                                                     java.lang.String[] names,
                                                     boolean inclusion,
                                                     boolean isRoot)