public class ProcessTreeImpl extends ProcessTreeElementImpl implements ProcessTree
ProcessTree.Type| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<Edge> |
edges |
protected java.util.Set<Expression> |
expressions |
protected gnu.trove.map.TObjectIntMap<Node> |
nodes |
protected java.util.List<Originator> |
originators |
protected Node |
root |
protected java.util.Set<Variable> |
variables |
id, name, propertyDependent, propertyIndependent| Constructor and Description |
|---|
ProcessTreeImpl() |
ProcessTreeImpl(ProcessTree tree) |
ProcessTreeImpl(java.lang.String name) |
ProcessTreeImpl(java.util.UUID id) |
ProcessTreeImpl(java.util.UUID id,
java.lang.String name) |
| 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() |
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)
|
equals, getDependentProperties, getDependentProperty, getDependentProperty, getID, getIndependentProperties, getIndependentProperty, getIndependentProperty, getName, hashCode, removeDependentProperty, removeDependentProperty, removeIndependentProperty, removeIndependentProperty, setDependentProperty, setDependentProperty, setIndependentProperty, setIndependentProperty, setNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDependentProperties, getDependentProperty, getDependentProperty, getID, getIndependentProperties, getIndependentProperty, getIndependentProperty, getName, removeDependentProperty, removeDependentProperty, removeIndependentProperty, removeIndependentProperty, setDependentProperty, setDependentProperty, setIndependentProperty, setIndependentProperty, setNameprotected final gnu.trove.map.TObjectIntMap<Node> nodes
protected final java.util.Set<Edge> edges
protected final java.util.Set<Variable> variables
protected final java.util.List<Originator> originators
protected final java.util.Set<Expression> expressions
protected Node root
public ProcessTreeImpl(java.lang.String name)
public ProcessTreeImpl()
public ProcessTreeImpl(java.util.UUID id)
public ProcessTreeImpl(java.util.UUID id,
java.lang.String name)
public ProcessTreeImpl(ProcessTree tree)
public void setRoot(Node root)
ProcessTreesetRoot in interface ProcessTreepublic boolean isTree()
ProcessTreeisTree in interface ProcessTreepublic boolean isDag()
ProcessTreeisDag in interface ProcessTreepublic ProcessTree toTree()
ProcessTreetoTree in interface ProcessTreepublic boolean isConfigurable()
ProcessTreeisConfigurable in interface ProcessTreepublic Node getRoot()
ProcessTreegetRoot in interface ProcessTreepublic java.util.Collection<Node> getNodes()
ProcessTreegetNodes in interface ProcessTreepublic java.util.Collection<Edge> getEdges()
ProcessTreegetEdges in interface ProcessTreepublic java.util.Collection<Variable> getVariables()
ProcessTreegetVariables in interface ProcessTreepublic java.util.Collection<Expression> getExpressions()
ProcessTreegetExpressions in interface ProcessTreepublic boolean addNode(Node node)
ProcessTreeaddNode in interface ProcessTreepublic boolean removeNode(Node node)
ProcessTreeremoveNode in interface ProcessTreepublic boolean addVariable(Variable variable)
ProcessTreeaddVariable in interface ProcessTreepublic boolean removeVariable(Variable variable)
ProcessTreeremoveVariable in interface ProcessTreepublic boolean addEdge(Edge edge)
ProcessTreeaddEdge in interface ProcessTreepublic boolean removeEdge(Edge edge)
ProcessTreeremoveEdge in interface ProcessTreepublic boolean addExpression(Expression expression)
ProcessTreeaddExpression in interface ProcessTreepublic boolean removeExpression(Expression expression)
ProcessTreeremoveExpression in interface ProcessTreepublic <N extends Node> java.util.Iterator<N> iterator(ProcessTree.Type type)
ProcessTreeiterator in interface ProcessTreeN - the type returned by type.getType()public java.lang.String toString()
toString in class ProcessTreeElementImplpublic java.lang.String toString(Node node)
ProcessTreetoString in interface ProcessTreepublic ProcessTree.Type getType(Node node)
ProcessTreegetType in interface ProcessTreepublic int size()
ProcessTreesize in interface ProcessTreepublic java.util.Collection<Originator> getOriginators()
ProcessTreegetOriginators in interface ProcessTreepublic boolean addOriginator(Originator originator)
ProcessTreeaddOriginator in interface ProcessTreepublic boolean removeOriginator(Originator originator)
ProcessTreeremoveOriginator in interface ProcessTreepublic Node getNode(java.util.UUID id)
ProcessTreegetNode in interface ProcessTreepublic Originator getOriginator(java.util.UUID id)
ProcessTreegetOriginator in interface ProcessTreepublic Edge getEdge(java.util.UUID id)
ProcessTreegetEdge in interface ProcessTreepublic Variable getVariable(java.util.UUID id)
ProcessTreegetVariable in interface ProcessTreepublic Expression getExpression(java.util.UUID id)
ProcessTreegetExpression in interface ProcessTreepublic java.util.Collection<ProcessTreeElement> getElements()
ProcessTreegetElements in interface ProcessTreepublic ProcessTreeElement getElement(java.util.UUID id)
ProcessTreegetElement in interface ProcessTree