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 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

      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