public interface Node extends ProcessTreeElement
Modifier and Type | Method and Description |
---|---|
void |
addIncomingEdge(Edge edge)
Adds an incoming edge to the node
|
Edge |
addParent(Block parent)
adds a new parent with random id and empty expression to this node as the rightmost parent
|
Edge |
addParent(Block parent,
Expression expression)
adds a new parent with random id and given expression to this node as the rightmost parent
|
Edge |
addParent(java.util.UUID id,
Block parent,
Expression expression)
adds a new parent with given id and given expression to this node as the rightmost parent
|
boolean |
addReadVariable(Variable var)
adds the read variable to this node
|
boolean |
addRemovableReadVariable(Variable var)
adds the removable read variable to this node
|
boolean |
addRemovableWriteVariable(Variable var)
adds the removable write variable to this node
|
boolean |
addWriteVariable(Variable var)
adds the write variable to this node
|
java.util.List<Edge> |
getIncomingEdges()
returns an immutable list of incoming edges.
|
java.util.Collection<Block> |
getParents()
returns an collection of blocks that are the parents of this node in the
tree
changes to the collection are NOT reflected in the tree
|
ProcessTree |
getProcessTree()
returns the process tree to which this node belongs
|
java.util.Collection<Variable> |
getReadVariables()
returns an editable collection of variables that are read by this node
|
java.util.Collection<Variable> |
getReadVariablesRecursive()
returns the collection of variables read in this subgraph
|
java.util.Collection<Variable> |
getRemovableReadVariables()
returns an editable collection of variables which can be removed from the list of read variables
|
java.util.Collection<Variable> |
getRemovableWrittenVariables()
returns an editable collection of variables which can be removed from the list of written variables
|
java.util.Collection<Variable> |
getWrittenVariables()
returns an editable collection of variables that are written by this node
|
java.util.Collection<Variable> |
getWrittenVariablesRecursive()
returns the collection of variables written in this subgraph
|
boolean |
isLeaf()
returns true if this node is a leaf node.
|
boolean |
isRoot()
returns true if this node has no parents.
|
int |
numParents()
returns the number of parents
|
boolean |
removeIncomingEdge(Edge edge)
removes an incoming edge from this node
|
boolean |
removeReadVariable(Variable var)
removes the read variable from this node
|
boolean |
removeRemovableReadVariable(Variable var)
removes the removable read variable to this node
|
boolean |
removeRemovableWriteVariable(Variable var)
removes the removable write variable to this node
|
boolean |
removeWriteVariable(Variable var)
removes the write variable from this node
|
void |
setProcessTree(ProcessTree tree)
sets the processtree to which this node belongs
|
java.lang.String |
toStringShort()
returns a short string representation of the subclass
|
getDependentProperties, getDependentProperty, getDependentProperty, getID, getIndependentProperties, getIndependentProperty, getIndependentProperty, getName, removeDependentProperty, removeDependentProperty, removeIndependentProperty, removeIndependentProperty, setDependentProperty, setDependentProperty, setIndependentProperty, setIndependentProperty, setName
java.util.Collection<Variable> getReadVariables()
boolean addReadVariable(Variable var)
var
- boolean removeReadVariable(Variable var)
var
- java.util.Collection<Variable> getRemovableReadVariables()
boolean addRemovableReadVariable(Variable var)
var
- boolean removeRemovableReadVariable(Variable var)
var
- java.util.Collection<Variable> getReadVariablesRecursive()
java.util.Collection<Variable> getWrittenVariables()
boolean addWriteVariable(Variable var)
var
- boolean removeWriteVariable(Variable var)
var
- java.util.Collection<Variable> getRemovableWrittenVariables()
boolean addRemovableWriteVariable(Variable var)
var
- boolean removeRemovableWriteVariable(Variable var)
var
- java.util.Collection<Variable> getWrittenVariablesRecursive()
void setProcessTree(ProcessTree tree)
tree
- ProcessTree getProcessTree()
Edge addParent(java.util.UUID id, Block parent, Expression expression)
id
- parent
- expression
- Edge addParent(Block parent, Expression expression)
parent
- expression
- Edge addParent(Block parent)
parent
- java.util.Collection<Block> getParents()
boolean removeIncomingEdge(Edge edge)
int numParents()
java.util.List<Edge> getIncomingEdges()
void addIncomingEdge(Edge edge)
edge
- boolean isRoot()
java.lang.String toStringShort()
boolean isLeaf()