Interface NESTNodeObject
-
- All Superinterfaces:
Comparable<NESTGraphItemObject>
,DataObject
,NESTGraphItemObject
,PropertyHandler
- All Known Subinterfaces:
NESTAndEndNodeObject
,NESTAndStartNodeObject
,NESTControlflowNodeObject
,NESTDataNodeObject
,NESTLoopEndNodeObject
,NESTLoopStartNodeObject
,NESTOrEndNodeObject
,NESTOrStartNodeObject
,NESTSequenceNodeObject
,NESTSubWorkflowNodeObject
,NESTTaskNodeObject
,NESTWorkflowNodeObject
,NESTXorEndNodeObject
,NESTXorStartNodeObject
- All Known Implementing Classes:
NESTAndEndNodeObjectImpl
,NESTAndStartNodeObjectImpl
,NESTControlflowNodeObjectImpl
,NESTDataNodeObjectImpl
,NESTLoopEndNodeObjectImpl
,NESTLoopStartNodeObjectImpl
,NESTNodeObjectImpl
,NESTOrEndNodeObjectImpl
,NESTOrStartNodeObjectImpl
,NESTSequenceNodeObjectImpl
,NESTSubWorkflowNodeObjectImpl
,NESTTaskNodeObjectImpl
,NESTWorkflowNodeObjectImpl
,NESTXorEndNodeObjectImpl
,NESTXorStartNodeObjectImpl
public interface NESTNodeObject extends NESTGraphItemObject
Interface of a Node of a NEST-Graph. Abstract objects of this type represent a node of the NESTgraph.- Author:
- Alexander Stromer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addIngoingEdge(NESTEdgeObject newEdge)
Adds the given edge to the list of ingoing edges of this node.void
addOutgoingEdge(NESTEdgeObject newEdge)
Adds the given edge to the list of outgoing edges of this node.NESTNodeObject
getDirectParentNode()
Returns a node that is directly connected to this node via outgoing part-of edge.Set<NESTEdgeObject>
getEdges()
Returns the set of edges of this node.Set<NESTEdgeObject>
getEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of edges of this node.Set<NESTEdgeObject>
getIngoingEdges()
Returns the set of ingoing edges of this node.Set<NESTEdgeObject>
getIngoingEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of ingoing edges of this node.Set<NESTEdgeObject>
getOutgoingEdges()
Returns the set of outgoing edges of this node.Set<NESTEdgeObject>
getOutgoingEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of outgoing edges of this node.Set<NESTNodeObject>
getParentNodes()
Returns all nodes that have a transitive part-of connection to this node via outgoing part-of edges.boolean
isDirectPartOf(NESTNodeObject parentNode)
Check if this node has a direct part-of edge to the given parent node.boolean
isPartOf(NESTNodeObject parentNode)
Check if this node has a transitive part-of edge connection to the given parent node.void
removeAllEdges()
void
removeAllIngoingEdges()
void
removeAllOutgoingEdges()
void
removeIngoingEdge(NESTEdgeObject edgeToRemove)
Removes the given edge from the list of ingoing edges of this node.void
removeOutgoingEdge(NESTEdgeObject edgeToRemove)
Removes the given edge from the list of outgoing edges of this node.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.nest.NESTGraphItemObject
addSemanticValue, addSemanticValue, computeSemanticDescriptorSimilarity, equalId, getGraph, getSemanticDescriptor, getSemanticDescriptorBooleanValue, getSemanticDescriptorStringValue, getSemanticDescriptorValue, getSemanticValueRecursively, hasSemanticallyEqualDescriptor, hasSemanticallyEqualDescriptor, setGraph, setSemanticDescriptor, setSemanticDescriptorBooleanValue, setSemanticDescriptorStringValue, setSemanticDescriptorValue
-
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty
-
-
-
-
Method Detail
-
getIngoingEdges
Set<NESTEdgeObject> getIngoingEdges()
Returns the set of ingoing edges of this node.- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
Set<NESTEdgeObject> getOutgoingEdges()
Returns the set of outgoing edges of this node.- Returns:
- The set of outgoing edges of this node.
-
getEdges
Set<NESTEdgeObject> getEdges()
Returns the set of edges of this node.- Returns:
- The set of edges of this node.
-
getIngoingEdges
Set<NESTEdgeObject> getIngoingEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of ingoing edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
Set<NESTEdgeObject> getOutgoingEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of outgoing edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of outgoing edges of this node.
-
getEdges
Set<NESTEdgeObject> getEdges(Predicate<? super NESTEdgeObject> filter)
Returns the set of edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of edges of this node.
-
addIngoingEdge
void addIngoingEdge(NESTEdgeObject newEdge)
Adds the given edge to the list of ingoing edges of this node.- Parameters:
newEdge
- The edge, which should be added.
-
removeIngoingEdge
void removeIngoingEdge(NESTEdgeObject edgeToRemove)
Removes the given edge from the list of ingoing edges of this node.- Parameters:
edgeToRemove
- The edge, which should be removed.
-
addOutgoingEdge
void addOutgoingEdge(NESTEdgeObject newEdge)
Adds the given edge to the list of outgoing edges of this node.- Parameters:
newEdge
- The edge, which should be added.
-
removeOutgoingEdge
void removeOutgoingEdge(NESTEdgeObject edgeToRemove)
Removes the given edge from the list of outgoing edges of this node.- Parameters:
edgeToRemove
- The edge, which should be removed.
-
removeAllEdges
void removeAllEdges()
-
removeAllIngoingEdges
void removeAllIngoingEdges()
-
removeAllOutgoingEdges
void removeAllOutgoingEdges()
-
isPartOf
boolean isPartOf(NESTNodeObject parentNode)
Check if this node has a transitive part-of edge connection to the given parent node.- Parameters:
parentNode
- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
isDirectPartOf
boolean isDirectPartOf(NESTNodeObject parentNode)
Check if this node has a direct part-of edge to the given parent node.- Parameters:
parentNode
- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
getParentNodes
Set<NESTNodeObject> getParentNodes()
Returns all nodes that have a transitive part-of connection to this node via outgoing part-of edges.- Returns:
- parent node or null otherwise
-
getDirectParentNode
NESTNodeObject getDirectParentNode()
Returns a node that is directly connected to this node via outgoing part-of edge.- Returns:
- parent node or null otherwise
-
-