Package pal.tree
Interface TreeManipulator.BranchAccess
- Enclosing class:
- TreeManipulator
public static interface TreeManipulator.BranchAccess
The branch access objects allow specific operations on a particular branch (refered to as connections
internally to confuse and bewilder)
-
Method Summary
Modifier and TypeMethodDescriptionattachSubTree
(Node subTree, int constructionMode) Create a new TreeManipulator object that has sub grafted on (half way across this branch)String[][]
Obtain the split of the labels around this branch.void
setAnnotation
(Object annotation) Set the annotation for this branch (will be used when instructing a TreeInterface
-
Method Details
-
attachSubTree
Create a new TreeManipulator object that has sub grafted on (half way across this branch)- Parameters:
subTree
- The sub tree, as normal Node object.- Returns:
- A new TreeManipulator
-
getLabelSplit
String[][] getLabelSplit()Obtain the split of the labels around this branch.- Returns:
- A two dimensional array of string arrays (the first element is the label names of one side of the split, the second element is the remainder)
-
setAnnotation
Set the annotation for this branch (will be used when instructing a TreeInterface- Parameters:
annotation
- the annotation object (is dependent on the TreeInterface instructed)
-