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
Interface of a Node of a NEST-Graph. Abstract objects of this type represent a node of the
NESTgraph.
- Author:
- Alexander Stromer
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.data.object.nest.NESTGraphItemObject
LOG_ATTRIBUTE_NOT_FOUND
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Returns a node that is directly connected to this node via outgoing part-of edge.getEdges()
Returns the set of edges of this node.getEdges
(Predicate<? super NESTEdgeObject> filter) Returns the set of edges of this node.Returns the set of ingoing edges of this node.getIngoingEdges
(Predicate<? super NESTEdgeObject> filter) Returns the set of ingoing edges of this node.Returns the set of outgoing edges of this node.getOutgoingEdges
(Predicate<? super NESTEdgeObject> filter) Returns the set of outgoing edges of this node.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
void
void
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, setPropertyRootNode
-
Method Details
-
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
Returns the set of ingoing edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
Returns the set of outgoing edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of outgoing edges of this node.
-
getEdges
Returns the set of edges of this node.- Parameters:
filter
- filter to apply- Returns:
- The set of edges of this node.
-
addIngoingEdge
Adds the given edge to the list of ingoing edges of this node.- Parameters:
newEdge
- The edge, which should be added.
-
removeIngoingEdge
Removes the given edge from the list of ingoing edges of this node.- Parameters:
edgeToRemove
- The edge, which should be removed.
-
addOutgoingEdge
Adds the given edge to the list of outgoing edges of this node.- Parameters:
newEdge
- The edge, which should be added.
-
removeOutgoingEdge
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
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
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
-