public class NodeWrapper
extends java.lang.Object
implements org.processmining.processtree.Node, org.jbpt.hypergraph.abs.IEntity
Modifier and Type | Field and Description |
---|---|
protected org.processmining.processtree.Node |
realNode |
Constructor and Description |
---|
NodeWrapper(org.processmining.processtree.Node realNode) |
Modifier and Type | Method and Description |
---|---|
void |
addIncomingEdge(org.processmining.processtree.Edge edge)
Adds an incoming edge to the node
|
org.processmining.processtree.Edge |
addParent(org.processmining.processtree.Block parent)
adds a new parent with random id and empty expression to this node as the rightmost parent
|
org.processmining.processtree.Edge |
addParent(org.processmining.processtree.Block parent,
org.processmining.processtree.Expression expression)
adds a new parent with random id and given expression to this node as the rightmost parent
|
org.processmining.processtree.Edge |
addParent(java.util.UUID id,
org.processmining.processtree.Block parent,
org.processmining.processtree.Expression expression)
adds a new parent with given id and given expression to this node as the rightmost parent
|
boolean |
addReadVariable(org.processmining.processtree.Variable var)
adds the read variable to this node
|
boolean |
addRemovableReadVariable(org.processmining.processtree.Variable var)
adds the removable read variable to this node
|
boolean |
addRemovableWriteVariable(org.processmining.processtree.Variable var)
adds the removable write variable to this node
|
boolean |
addWriteVariable(org.processmining.processtree.Variable var)
adds the write variable to this node
|
java.lang.Object |
clone() |
java.util.AbstractMap<org.processmining.plugins.properties.processmodel.Property<?>,java.lang.Object> |
getDependentProperties() |
java.lang.Object |
getDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) |
java.lang.Object |
getDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) |
java.util.UUID |
getID() |
java.util.List<org.processmining.processtree.Edge> |
getIncomingEdges()
returns an immutable list of incoming edges.
|
java.util.AbstractMap<org.processmining.plugins.properties.processmodel.Property<?>,java.lang.Object> |
getIndependentProperties() |
java.lang.Object |
getIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) |
java.lang.Object |
getIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
java.util.Collection<org.processmining.processtree.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
|
org.processmining.processtree.ProcessTree |
getProcessTree()
returns the process tree to which this node belongs
|
java.util.Collection<org.processmining.processtree.Variable> |
getReadVariables()
returns an editable collection of variables that are read by this node
|
java.util.Collection<org.processmining.processtree.Variable> |
getReadVariablesRecursive()
returns the collection of variables read in this subgraph
|
org.processmining.processtree.Node |
getRealNode() |
java.util.Collection<org.processmining.processtree.Variable> |
getRemovableReadVariables()
returns an editable collection of variables which can be removed from the list of read variables
|
java.util.Collection<org.processmining.processtree.Variable> |
getRemovableWrittenVariables()
returns an editable collection of variables which can be removed from the list of written variables
|
java.util.Collection<org.processmining.processtree.Variable> |
getWrittenVariables()
returns an editable collection of variables that are written by this node
|
java.util.Collection<org.processmining.processtree.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
|
void |
removeDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) |
void |
removeDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) |
boolean |
removeIncomingEdge(org.processmining.processtree.Edge edge)
removes an incoming edge from this node
|
void |
removeIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) |
void |
removeIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) |
boolean |
removeReadVariable(org.processmining.processtree.Variable var)
removes the read variable from this node
|
boolean |
removeRemovableReadVariable(org.processmining.processtree.Variable var)
removes the removable read variable to this node
|
boolean |
removeRemovableWriteVariable(org.processmining.processtree.Variable var)
removes the removable write variable to this node
|
boolean |
removeWriteVariable(org.processmining.processtree.Variable var)
removes the write variable from this node
|
void |
setDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property,
java.lang.Object value) |
void |
setDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property,
java.lang.Object value) |
void |
setIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property,
java.lang.Object value) |
void |
setIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property,
java.lang.Object value) |
void |
setName(java.lang.String name) |
void |
setProcessTree(org.processmining.processtree.ProcessTree tree)
sets the processtree to which this node belongs
|
java.lang.String |
toString() |
java.lang.String |
toStringShort()
returns a short string representation of the subclass
|
public java.util.UUID getID()
getID
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getID
in interface org.processmining.processtree.ProcessTreeElement
public java.lang.String getName()
getName
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getName
in interface org.processmining.processtree.ProcessTreeElement
public void setName(java.lang.String name)
setName
in interface org.processmining.plugins.properties.processmodel.PropertableElement
setName
in interface org.processmining.processtree.ProcessTreeElement
public java.lang.Object getIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
getIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object getIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
getIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public void setIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property, java.lang.Object value) throws java.lang.InstantiationException, java.lang.IllegalAccessException
setIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
setIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property we want to setvalue
- the value of the independent property we want to setjava.lang.InstantiationException
java.lang.IllegalAccessException
public void setIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property, java.lang.Object value) throws java.lang.InstantiationException, java.lang.IllegalAccessException
setIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
setIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property we want to setvalue
- the value of the independent property we want to setjava.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object getDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
getDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public java.lang.Object getDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
getDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public void setDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property, java.lang.Object value) throws java.lang.InstantiationException, java.lang.IllegalAccessException
setDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
setDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property we want to setvalue
- the value of the dependent property we want to setjava.lang.InstantiationException
java.lang.IllegalAccessException
public void setDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property, java.lang.Object value) throws java.lang.InstantiationException, java.lang.IllegalAccessException
setDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
setDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property we want to setvalue
- the value of the dependent property we want to setjava.lang.InstantiationException
java.lang.IllegalAccessException
public void removeIndependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
removeIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
removeIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want to remove the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public void removeIndependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property)
removeIndependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
removeIndependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want to remove the valuepublic void removeDependentProperty(java.lang.Class<? extends org.processmining.plugins.properties.processmodel.Property<?>> property) throws java.lang.InstantiationException, java.lang.IllegalAccessException
removeDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
removeDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want to remove the valuejava.lang.InstantiationException
java.lang.IllegalAccessException
public void removeDependentProperty(org.processmining.plugins.properties.processmodel.Property<?> property)
removeDependentProperty
in interface org.processmining.plugins.properties.processmodel.PropertableElement
removeDependentProperty
in interface org.processmining.processtree.ProcessTreeElement
property
- the property of which we want to remove the valuepublic java.util.AbstractMap<org.processmining.plugins.properties.processmodel.Property<?>,java.lang.Object> getIndependentProperties()
getIndependentProperties
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getIndependentProperties
in interface org.processmining.processtree.ProcessTreeElement
public java.util.AbstractMap<org.processmining.plugins.properties.processmodel.Property<?>,java.lang.Object> getDependentProperties()
getDependentProperties
in interface org.processmining.plugins.properties.processmodel.PropertableElement
getDependentProperties
in interface org.processmining.processtree.ProcessTreeElement
public java.util.Collection<org.processmining.processtree.Variable> getReadVariables()
org.processmining.processtree.Node
getReadVariables
in interface org.processmining.processtree.Node
public boolean addReadVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
addReadVariable
in interface org.processmining.processtree.Node
public boolean removeReadVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
removeReadVariable
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Variable> getRemovableReadVariables()
org.processmining.processtree.Node
getRemovableReadVariables
in interface org.processmining.processtree.Node
public boolean addRemovableReadVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
addRemovableReadVariable
in interface org.processmining.processtree.Node
public boolean removeRemovableReadVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
removeRemovableReadVariable
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Variable> getReadVariablesRecursive()
org.processmining.processtree.Node
getReadVariablesRecursive
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Variable> getWrittenVariables()
org.processmining.processtree.Node
getWrittenVariables
in interface org.processmining.processtree.Node
public boolean addWriteVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
addWriteVariable
in interface org.processmining.processtree.Node
public boolean removeWriteVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
removeWriteVariable
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Variable> getRemovableWrittenVariables()
org.processmining.processtree.Node
getRemovableWrittenVariables
in interface org.processmining.processtree.Node
public boolean addRemovableWriteVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
addRemovableWriteVariable
in interface org.processmining.processtree.Node
public boolean removeRemovableWriteVariable(org.processmining.processtree.Variable var)
org.processmining.processtree.Node
removeRemovableWriteVariable
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Variable> getWrittenVariablesRecursive()
org.processmining.processtree.Node
getWrittenVariablesRecursive
in interface org.processmining.processtree.Node
public void setProcessTree(org.processmining.processtree.ProcessTree tree)
org.processmining.processtree.Node
setProcessTree
in interface org.processmining.processtree.Node
public org.processmining.processtree.ProcessTree getProcessTree()
org.processmining.processtree.Node
getProcessTree
in interface org.processmining.processtree.Node
public org.processmining.processtree.Edge addParent(java.util.UUID id, org.processmining.processtree.Block parent, org.processmining.processtree.Expression expression)
org.processmining.processtree.Node
addParent
in interface org.processmining.processtree.Node
public org.processmining.processtree.Edge addParent(org.processmining.processtree.Block parent, org.processmining.processtree.Expression expression)
org.processmining.processtree.Node
addParent
in interface org.processmining.processtree.Node
public org.processmining.processtree.Edge addParent(org.processmining.processtree.Block parent)
org.processmining.processtree.Node
addParent
in interface org.processmining.processtree.Node
public java.util.Collection<org.processmining.processtree.Block> getParents()
org.processmining.processtree.Node
getParents
in interface org.processmining.processtree.Node
public boolean removeIncomingEdge(org.processmining.processtree.Edge edge)
org.processmining.processtree.Node
removeIncomingEdge
in interface org.processmining.processtree.Node
public int numParents()
org.processmining.processtree.Node
numParents
in interface org.processmining.processtree.Node
public java.util.List<org.processmining.processtree.Edge> getIncomingEdges()
org.processmining.processtree.Node
getIncomingEdges
in interface org.processmining.processtree.Node
public void addIncomingEdge(org.processmining.processtree.Edge edge)
org.processmining.processtree.Node
addIncomingEdge
in interface org.processmining.processtree.Node
public boolean isRoot()
org.processmining.processtree.Node
isRoot
in interface org.processmining.processtree.Node
public java.lang.String toStringShort()
org.processmining.processtree.Node
toStringShort
in interface org.processmining.processtree.Node
public boolean isLeaf()
org.processmining.processtree.Node
isLeaf
in interface org.processmining.processtree.Node
public java.lang.String getLabel()
getLabel
in interface org.jbpt.hypergraph.abs.IEntity
public java.lang.Object clone()
clone
in interface org.jbpt.hypergraph.abs.IEntity
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public org.processmining.processtree.Node getRealNode()