public class ExecutionTreeBfsIterator extends Object implements Iterator<ExecutionTreeNode>
ExecutionTree
using breadth-first searchModifier 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) |
protected 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 © 2017 Alfresco. All rights reserved.