public interface ProcessTree extends ProcessTreeElement
Modifier and Type | Interface and Description |
---|---|
static class |
ProcessTree.Type
Possible types of node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEdge(Edge edge)
adds an edge to the tree.
|
boolean |
addExpression(Expression expression)
adds an expression to the tree.
|
boolean |
addNode(Node node)
adds a node to the tree.
|
boolean |
addOriginator(Originator originator)
adds an originator to the tree.
|
boolean |
addVariable(Variable variable)
adds a variable to the tree.
|
Edge |
getEdge(java.util.UUID id)
Return the edge with the given ID
|
java.util.Collection<Edge> |
getEdges()
Returns an immutable collection of edges in this tree.
|
ProcessTreeElement |
getElement(java.util.UUID id)
Return the process tree element with the given ID
|
java.util.Collection<ProcessTreeElement> |
getElements()
Return all the process tree elements
|
Expression |
getExpression(java.util.UUID id)
Return the expression with the given ID
|
java.util.Collection<Expression> |
getExpressions()
Returns an immutable collection of expressions used in this tree.
|
Node |
getNode(java.util.UUID id)
Return the node with the given ID
|
java.util.Collection<Node> |
getNodes()
Returns an immutable collection of nodes in this tree.
|
Originator |
getOriginator(java.util.UUID id)
Return the originator with the given ID
|
java.util.Collection<Originator> |
getOriginators()
Returns an immutable collection of originators used in this tree.
|
Node |
getRoot()
Returns the root of the process tree
|
ProcessTree.Type |
getType(Node node)
Returns the type of a node expressed in the Type enumeration
|
Variable |
getVariable(java.util.UUID id)
Return the variable with the given ID
|
java.util.Collection<Variable> |
getVariables()
Returns an immutable collection of variables used in this tree.
|
boolean |
isConfigurable()
Returns true if and only if this processtree has configuration options
|
boolean |
isDag()
Returns true if and only if this processtree is a directed acyclic graph.
|
boolean |
isTree()
Returns true if and only if this processtree is a proper tree, i.e.
|
<N extends Node> |
iterator(ProcessTree.Type type)
returns an iterator over the nodes implementing the given type.
|
boolean |
removeEdge(Edge edge)
removes an edge from the tree.
|
boolean |
removeExpression(Expression expression)
removes an expression from the tree.
|
boolean |
removeNode(Node node)
removes a node from the tree.
|
boolean |
removeOriginator(Originator originator)
removes an originator from the tree.
|
boolean |
removeVariable(Variable variable)
removes a variable from the tree.
|
void |
setRoot(Node root)
Sets the root of this process tree.
|
int |
size()
Returns the number of nodes in the tree
|
java.lang.String |
toString(Node node)
Return a string representing a node
|
ProcessTree |
toTree()
Return a tree representation of this processtree (i.e., the DAG is unfolded)
|
getDependentProperties, getDependentProperty, getDependentProperty, getID, getIndependentProperties, getIndependentProperty, getIndependentProperty, getName, removeDependentProperty, removeDependentProperty, removeIndependentProperty, removeIndependentProperty, setDependentProperty, setDependentProperty, setIndependentProperty, setIndependentProperty, setName
Node getRoot()
void setRoot(Node root)
root
- java.util.Collection<Node> getNodes()
java.util.Collection<Edge> getEdges()
java.util.Collection<Variable> getVariables()
java.util.Collection<Expression> getExpressions()
java.util.Collection<Originator> getOriginators()
boolean addNode(Node node)
boolean removeNode(Node node)
boolean addVariable(Variable variable)
boolean removeVariable(Variable variable)
variable
- boolean addOriginator(Originator originator)
boolean removeOriginator(Originator originator)
originator
- boolean addEdge(Edge edge)
boolean removeEdge(Edge edge)
boolean addExpression(Expression expression)
expression
- boolean removeExpression(Expression expression)
expression
- <N extends Node> java.util.Iterator<N> iterator(ProcessTree.Type type)
N
- the type returned by type.getType()n
- ProcessTree.Type getType(Node node)
node
- int size()
boolean isTree()
boolean isDag()
ProcessTree toTree()
boolean isConfigurable()
Node getNode(java.util.UUID id)
id
- Originator getOriginator(java.util.UUID id)
id
- Edge getEdge(java.util.UUID id)
id
- Variable getVariable(java.util.UUID id)
id
- Expression getExpression(java.util.UUID id)
id
- java.util.Collection<ProcessTreeElement> getElements()
ProcessTreeElement getElement(java.util.UUID id)
id
- java.lang.String toString(Node node)
node
-