Package pal.tree

Class TreeRestricter

java.lang.Object
pal.tree.TreeRestricter

public class TreeRestricter extends Object
  • Constructor Details

    • TreeRestricter

      public TreeRestricter(Node root, int units, 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, 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 Details

    • generateNode

      public final Node generateNode()
    • generateTree

      public final Tree generateTree()
    • construct

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