Class NESTNodeObjectImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphItemObjectImpl
de.uni_trier.wi2.procake.data.object.nest.impl.NESTNodeObjectImpl
- All Implemented Interfaces:
DataObject
,NESTGraphItemObject
,NESTNodeObject
,PropertyHandler
,Comparable<NESTGraphItemObject>
- Direct Known Subclasses:
NESTDataNodeObjectImpl
,NESTSequenceNodeObjectImpl
,NESTSubWorkflowNodeObjectImpl
,NESTWorkflowNodeObjectImpl
Definition of a Node of a NEST-graph. Refer to the corresponding Interface
NESTNodeObject
for more information.- Author:
- Alexander Stromer
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphItemObjectImpl
graph
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
Fields inherited from interface de.uni_trier.wi2.procake.data.object.nest.NESTGraphItemObject
LOG_ATTRIBUTE_NOT_FOUND
-
Constructor Summary
-
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.void
Adds the given objectId to the set of ids.Methods inherited from class de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphItemObjectImpl
addSemanticValue, addSemanticValue, assertSameValueAsIn, compareTo, computeSemanticDescriptorSimilarity, equalId, getGraph, getSemanticDescriptor, getSemanticDescriptorBooleanValue, getSemanticDescriptorStringValue, getSemanticDescriptorValue, getSemanticValueRecursively, hasSameValueAsIn, hasSemanticallyEqualDescriptor, hasSemanticallyEqualDescriptor, setGraph, setSemanticDescriptor, setSemanticDescriptorBooleanValue, setSemanticDescriptorStringValue, setSemanticDescriptorValue, toDetailedString, toString
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, copy, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, 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, removeProperty, setDataClass, setPropertyRootNode, toXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, 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
-
Constructor Details
-
NESTNodeObjectImpl
Standard constructor of CAKE- Parameters:
cakeclazz
-
-
-
Method Details
-
getIngoingEdges
Description copied from interface:NESTNodeObject
Returns the set of ingoing edges of this node.- Specified by:
getIngoingEdges
in interfaceNESTNodeObject
- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
Description copied from interface:NESTNodeObject
Returns the set of outgoing edges of this node.- Specified by:
getOutgoingEdges
in interfaceNESTNodeObject
- Returns:
- The set of outgoing edges of this node.
-
getEdges
Description copied from interface:NESTNodeObject
Returns the set of edges of this node.- Specified by:
getEdges
in interfaceNESTNodeObject
- Returns:
- The set of edges of this node.
-
getIngoingEdges
Description copied from interface:NESTNodeObject
Returns the set of ingoing edges of this node.- Specified by:
getIngoingEdges
in interfaceNESTNodeObject
- Parameters:
filter
- filter to apply- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
Description copied from interface:NESTNodeObject
Returns the set of outgoing edges of this node.- Specified by:
getOutgoingEdges
in interfaceNESTNodeObject
- Parameters:
filter
- filter to apply- Returns:
- The set of outgoing edges of this node.
-
getEdges
Description copied from interface:NESTNodeObject
Returns the set of edges of this node.- Specified by:
getEdges
in interfaceNESTNodeObject
- Parameters:
filter
- filter to apply- Returns:
- The set of edges of this node.
-
addIngoingEdge
Description copied from interface:NESTNodeObject
Adds the given edge to the list of ingoing edges of this node.- Specified by:
addIngoingEdge
in interfaceNESTNodeObject
- Parameters:
newEdge
- The edge, which should be added.
-
removeIngoingEdge
Description copied from interface:NESTNodeObject
Removes the given edge from the list of ingoing edges of this node.- Specified by:
removeIngoingEdge
in interfaceNESTNodeObject
- Parameters:
edgeToRemove
- The edge, which should be removed.
-
addOutgoingEdge
Description copied from interface:NESTNodeObject
Adds the given edge to the list of outgoing edges of this node.- Specified by:
addOutgoingEdge
in interfaceNESTNodeObject
- Parameters:
newEdge
- The edge, which should be added.
-
removeOutgoingEdge
Description copied from interface:NESTNodeObject
Removes the given edge from the list of outgoing edges of this node.- Specified by:
removeOutgoingEdge
in interfaceNESTNodeObject
- Parameters:
edgeToRemove
- The edge, which should be removed.
-
setId
Description copied from interface:DataObject
Adds the given objectId to the set of ids.- Specified by:
setId
in interfaceDataObject
- Overrides:
setId
in classDataObjectImpl
- Parameters:
id
- that will be added to the set of ids- See Also:
-
removeAllEdges
public void removeAllEdges()- Specified by:
removeAllEdges
in interfaceNESTNodeObject
-
removeAllOutgoingEdges
public void removeAllOutgoingEdges()- Specified by:
removeAllOutgoingEdges
in interfaceNESTNodeObject
-
removeAllIngoingEdges
public void removeAllIngoingEdges()- Specified by:
removeAllIngoingEdges
in interfaceNESTNodeObject
-
isPartOf
Description copied from interface:NESTNodeObject
Check if this node has a transitive part-of edge connection to the given parent node.- Specified by:
isPartOf
in interfaceNESTNodeObject
- Parameters:
parentNode
- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
isDirectPartOf
Description copied from interface:NESTNodeObject
Check if this node has a direct part-of edge to the given parent node.- Specified by:
isDirectPartOf
in interfaceNESTNodeObject
- Parameters:
parentNode
- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
getParentNodes
Description copied from interface:NESTNodeObject
Returns all nodes that have a transitive part-of connection to this node via outgoing part-of edges.- Specified by:
getParentNodes
in interfaceNESTNodeObject
- Returns:
- parent node or null otherwise
-
getDirectParentNode
Description copied from interface:NESTNodeObject
Returns a node that is directly connected to this node via outgoing part-of edge.- Specified by:
getDirectParentNode
in interfaceNESTNodeObject
- Returns:
- parent node or null otherwise
-