public class ExecutionTree extends Object implements Iterable<ExecutionTreeNode>
Modifier and Type | Field and Description |
---|---|
protected ExecutionTreeNode |
root |
Constructor and Description |
---|
ExecutionTree() |
Modifier and Type | Method and Description |
---|---|
ExecutionTreeBfsIterator |
bfsIterator() |
ExecutionTreeNode |
getRoot() |
ExecutionTreeNode |
getTreeNode(String executionId)
Looks up the
ExecutionEntity for a given id. |
protected ExecutionTreeNode |
getTreeNode(String executionId,
ExecutionTreeNode currentNode) |
Iterator<ExecutionTreeNode> |
iterator() |
ExecutionTreeBfsIterator |
leafsFirstIterator()
Uses an
ExecutionTreeBfsIterator , but returns the leafs first (so flipped order of BFS) |
void |
setRoot(ExecutionTreeNode root) |
String |
toString() |
protected ExecutionTreeNode root
public ExecutionTreeNode getRoot()
public void setRoot(ExecutionTreeNode root)
public ExecutionTreeNode getTreeNode(String executionId)
ExecutionEntity
for a given id.protected ExecutionTreeNode getTreeNode(String executionId, ExecutionTreeNode currentNode)
public Iterator<ExecutionTreeNode> iterator()
iterator
in interface Iterable<ExecutionTreeNode>
public ExecutionTreeBfsIterator bfsIterator()
public ExecutionTreeBfsIterator leafsFirstIterator()
ExecutionTreeBfsIterator
, but returns the leafs first (so flipped order of BFS)Copyright © 2017 Alfresco. All rights reserved.