Package org.nineml.coffeegrinder.trees
Class Lumberjack
- java.lang.Object
-
- org.nineml.coffeegrinder.trees.Arborist
-
- org.nineml.coffeegrinder.trees.Lumberjack
-
public class Lumberjack extends Arborist
An "unspecialist" Arborist.The lumberjack extracts trees sequentially from a forest.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetTree(TreeBuilder builder)Get the next tree.booleanhasMoreTrees()Are there more trees?booleanisAbsolutelyAmbiguous()Is the underlying forest infinitely ambiguous?booleanisAmbiguous()Is the parse ambiguous?voidreset()Reset the arborist.-
Methods inherited from class org.nineml.coffeegrinder.trees.Arborist
closesLoop, getArborist, getArborist, getSelectedNodes, getSelectedTrees, isInfinitelyAmbiguous
-
-
-
-
Method Detail
-
reset
public void reset()
Description copied from class:ArboristReset the arborist.
-
isAmbiguous
public boolean isAmbiguous()
Description copied from class:ArboristIs the parse ambiguous?- Specified by:
isAmbiguousin classArborist- Returns:
- true if it is.
-
isAbsolutelyAmbiguous
public boolean isAbsolutelyAmbiguous()
Description copied from class:ArboristIs the underlying forest infinitely ambiguous?- Specified by:
isAbsolutelyAmbiguousin classArborist- Returns:
- true if it is.
-
hasMoreTrees
public boolean hasMoreTrees()
Description copied from class:ArboristAre there more trees?- Specified by:
hasMoreTreesin classArborist- Returns:
- true if there are.
-
getTree
public void getTree(TreeBuilder builder)
Description copied from class:ArboristGet the next tree.
-
-