public class ExecutionTreeBfsIterator extends Object implements Iterator<ExecutionTreeNode>
ExecutionTree using breadth-first search| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<ExecutionTreeNode> |
flattenedList |
protected Iterator<ExecutionTreeNode> |
flattenedListIterator |
protected boolean |
reverseOrder |
protected ExecutionTreeNode |
rootNode |
| Constructor and Description |
|---|
ExecutionTreeBfsIterator(ExecutionTreeNode executionTree) |
ExecutionTreeBfsIterator(ExecutionTreeNode rootNode,
boolean reverseOrder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flattenTree() |
boolean |
hasNext() |
ExecutionTreeNode |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected ExecutionTreeNode rootNode
protected boolean reverseOrder
protected LinkedList<ExecutionTreeNode> flattenedList
protected Iterator<ExecutionTreeNode> flattenedListIterator
public ExecutionTreeBfsIterator(ExecutionTreeNode executionTree)
public ExecutionTreeBfsIterator(ExecutionTreeNode rootNode, boolean reverseOrder)
protected void flattenTree()
public boolean hasNext()
hasNext in interface Iterator<ExecutionTreeNode>public ExecutionTreeNode next()
next in interface Iterator<ExecutionTreeNode>public void remove()
remove in interface Iterator<ExecutionTreeNode>Copyright © 2015 Alfresco. All rights reserved.