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
public class NESTNodeObjectImpl extends NESTGraphItemObjectImpl implements NESTNodeObject
Definition of a Node of a NEST-graph. Refer to the corresponding InterfaceNESTNodeObjectfor 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
-
-
Constructor Summary
Constructors Constructor Description NESTNodeObjectImpl(NESTNodeClass cakeclazz)Standard constructor of CAKE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIngoingEdge(NESTEdgeObject newEdge)Adds the given edge to the list of ingoing edges of this node.voidaddOutgoingEdge(NESTEdgeObject newEdge)Adds the given edge to the list of outgoing edges of this node.NESTNodeObjectgetDirectParentNode()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.booleanisDirectPartOf(NESTNodeObject parentNode)Check if this node has a direct part-of edge to the given parent node.booleanisPartOf(NESTNodeObject parentNode)Check if this node has a transitive part-of edge connection to the given parent node.voidremoveAllEdges()voidremoveAllIngoingEdges()voidremoveAllOutgoingEdges()voidremoveIngoingEdge(NESTEdgeObject edgeToRemove)Removes the given edge from the list of ingoing edges of this node.voidremoveOutgoingEdge(NESTEdgeObject edgeToRemove)Removes the given edge from the list of outgoing edges of this node.voidsetId(String id)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, 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
-
-
-
-
Constructor Detail
-
NESTNodeObjectImpl
public NESTNodeObjectImpl(NESTNodeClass cakeclazz)
Standard constructor of CAKE- Parameters:
cakeclazz-
-
-
Method Detail
-
getIngoingEdges
public Set<NESTEdgeObject> getIngoingEdges()
Description copied from interface:NESTNodeObjectReturns the set of ingoing edges of this node.- Specified by:
getIngoingEdgesin interfaceNESTNodeObject- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
public Set<NESTEdgeObject> getOutgoingEdges()
Description copied from interface:NESTNodeObjectReturns the set of outgoing edges of this node.- Specified by:
getOutgoingEdgesin interfaceNESTNodeObject- Returns:
- The set of outgoing edges of this node.
-
getEdges
public Set<NESTEdgeObject> getEdges()
Description copied from interface:NESTNodeObjectReturns the set of edges of this node.- Specified by:
getEdgesin interfaceNESTNodeObject- Returns:
- The set of edges of this node.
-
getIngoingEdges
public Set<NESTEdgeObject> getIngoingEdges(Predicate<? super NESTEdgeObject> filter)
Description copied from interface:NESTNodeObjectReturns the set of ingoing edges of this node.- Specified by:
getIngoingEdgesin interfaceNESTNodeObject- Parameters:
filter- filter to apply- Returns:
- The set of ingoing edges of this node.
-
getOutgoingEdges
public Set<NESTEdgeObject> getOutgoingEdges(Predicate<? super NESTEdgeObject> filter)
Description copied from interface:NESTNodeObjectReturns the set of outgoing edges of this node.- Specified by:
getOutgoingEdgesin interfaceNESTNodeObject- Parameters:
filter- filter to apply- Returns:
- The set of outgoing edges of this node.
-
getEdges
public Set<NESTEdgeObject> getEdges(Predicate<? super NESTEdgeObject> filter)
Description copied from interface:NESTNodeObjectReturns the set of edges of this node.- Specified by:
getEdgesin interfaceNESTNodeObject- Parameters:
filter- filter to apply- Returns:
- The set of edges of this node.
-
addIngoingEdge
public void addIngoingEdge(NESTEdgeObject newEdge)
Description copied from interface:NESTNodeObjectAdds the given edge to the list of ingoing edges of this node.- Specified by:
addIngoingEdgein interfaceNESTNodeObject- Parameters:
newEdge- The edge, which should be added.
-
removeIngoingEdge
public void removeIngoingEdge(NESTEdgeObject edgeToRemove)
Description copied from interface:NESTNodeObjectRemoves the given edge from the list of ingoing edges of this node.- Specified by:
removeIngoingEdgein interfaceNESTNodeObject- Parameters:
edgeToRemove- The edge, which should be removed.
-
addOutgoingEdge
public void addOutgoingEdge(NESTEdgeObject newEdge)
Description copied from interface:NESTNodeObjectAdds the given edge to the list of outgoing edges of this node.- Specified by:
addOutgoingEdgein interfaceNESTNodeObject- Parameters:
newEdge- The edge, which should be added.
-
removeOutgoingEdge
public void removeOutgoingEdge(NESTEdgeObject edgeToRemove)
Description copied from interface:NESTNodeObjectRemoves the given edge from the list of outgoing edges of this node.- Specified by:
removeOutgoingEdgein interfaceNESTNodeObject- Parameters:
edgeToRemove- The edge, which should be removed.
-
setId
public void setId(String id)
Description copied from interface:DataObjectAdds the given objectId to the set of ids.- Specified by:
setIdin interfaceDataObject- Overrides:
setIdin classDataObjectImpl- Parameters:
id- that will be added to the set of ids- See Also:
de.uni_trier.wi2.procake.data.object
-
removeAllEdges
public void removeAllEdges()
- Specified by:
removeAllEdgesin interfaceNESTNodeObject
-
removeAllOutgoingEdges
public void removeAllOutgoingEdges()
- Specified by:
removeAllOutgoingEdgesin interfaceNESTNodeObject
-
removeAllIngoingEdges
public void removeAllIngoingEdges()
- Specified by:
removeAllIngoingEdgesin interfaceNESTNodeObject
-
isPartOf
public boolean isPartOf(NESTNodeObject parentNode)
Description copied from interface:NESTNodeObjectCheck if this node has a transitive part-of edge connection to the given parent node.- Specified by:
isPartOfin interfaceNESTNodeObject- Parameters:
parentNode- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
isDirectPartOf
public boolean isDirectPartOf(NESTNodeObject parentNode)
Description copied from interface:NESTNodeObjectCheck if this node has a direct part-of edge to the given parent node.- Specified by:
isDirectPartOfin interfaceNESTNodeObject- Parameters:
parentNode- to be checked.- Returns:
- whether this node is a part of the given parent node.
-
getParentNodes
public Set<NESTNodeObject> getParentNodes()
Description copied from interface:NESTNodeObjectReturns all nodes that have a transitive part-of connection to this node via outgoing part-of edges.- Specified by:
getParentNodesin interfaceNESTNodeObject- Returns:
- parent node or null otherwise
-
getDirectParentNode
public NESTNodeObject getDirectParentNode()
Description copied from interface:NESTNodeObjectReturns a node that is directly connected to this node via outgoing part-of edge.- Specified by:
getDirectParentNodein interfaceNESTNodeObject- Returns:
- parent node or null otherwise
-
-