Constructor and Description |
---|
ForestBuilder() |
Modifier and Type | Method and Description |
---|---|
TreeImpl.ForestBuilder<X> |
ascend()
Ascends one level in the hierarchy to the siblings of the parent node.
|
TreeImpl.ForestBuilder<X> |
descend()
Descends one level in the hierarchy to the children of the last constructed node.
|
List<Tree<X>> |
getCurrent()
Returns the current child forest of the constructed forest.
|
List<Tree<X>> |
getForest()
Returns the constructed forest.
|
Tree<X> |
getTree()
Returns the constructed tree.
|
TreeImpl.ForestBuilder<X> |
node(X label)
Constructs a new node in the current level of the hierarchy.
|
TreeImpl.ForestBuilder<X> |
nodeAndDesc(X label)
Constructs a new node in the current level of the hierarchy and descends to its children.
|
public List<Tree<X>> getForest()
public Tree<X> getTree()
public List<Tree<X>> getCurrent()
public TreeImpl.ForestBuilder<X> node(X label)
label
- the label for the new node.public TreeImpl.ForestBuilder<X> descend()
public TreeImpl.ForestBuilder<X> nodeAndDesc(X label)
label
- the label for the new node.public TreeImpl.ForestBuilder<X> ascend()
Copyright (C) 2016-2018 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/