Package org.activiti.engine.debug
Class ExecutionTreeBfsIterator
- java.lang.Object
-
- org.activiti.engine.debug.ExecutionTreeBfsIterator
-
- All Implemented Interfaces:
Iterator<ExecutionTreeNode>
public class ExecutionTreeBfsIterator extends Object implements Iterator<ExecutionTreeNode>
Iterates over anExecutionTreeusing breadth-first search
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList<ExecutionTreeNode>flattenedListprotected Iterator<ExecutionTreeNode>flattenedListIteratorprotected booleanreverseOrderprotected ExecutionTreeNoderootNode
-
Constructor Summary
Constructors Constructor Description ExecutionTreeBfsIterator(ExecutionTreeNode executionTree)ExecutionTreeBfsIterator(ExecutionTreeNode rootNode, boolean reverseOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidflattenTree()booleanhasNext()ExecutionTreeNodenext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
rootNode
protected ExecutionTreeNode rootNode
-
reverseOrder
protected boolean reverseOrder
-
flattenedList
protected LinkedList<ExecutionTreeNode> flattenedList
-
flattenedListIterator
protected Iterator<ExecutionTreeNode> flattenedListIterator
-
-
Constructor Detail
-
ExecutionTreeBfsIterator
public ExecutionTreeBfsIterator(ExecutionTreeNode executionTree)
-
ExecutionTreeBfsIterator
public ExecutionTreeBfsIterator(ExecutionTreeNode rootNode, boolean reverseOrder)
-
-
Method Detail
-
flattenTree
protected void flattenTree()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<ExecutionTreeNode>
-
next
public ExecutionTreeNode next()
- Specified by:
nextin interfaceIterator<ExecutionTreeNode>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<ExecutionTreeNode>
-
-