Interface NESTGraphListener

All Known Implementing Classes:
NESTWorkflowToWFBlock

public interface NESTGraphListener
Defines the methods, necessary to be implemented, when listening to NESTGraph-changes
Author:
Alexander Stromer
  • Method Details

    • addNode

      void addNode(NESTNodeObject newNode)
      The NESTGraph just added the given node to the graph.
      Parameters:
      newNode -
    • removeNode

      void removeNode(NESTNodeObject removedNode)
      The NESTGraph will remove the given node from the graph.
      Parameters:
      removedNode -
    • setEdgePre

      void setEdgePre(NESTEdgeObject newEdge, NESTNodeObject oldPreNode)
      The NESTGraph changed the pre-item of the edge.
      Parameters:
      newEdge - Represents the situation after the change. The Node was already changed.
      oldPreNode - The node, which was previously at this position (now disconnected from that edge)
    • setEdgePost

      void setEdgePost(NESTEdgeObject newEdge, NESTNodeObject oldPostNode)
      The NESTGraph changed the post-item of the edge.
      Parameters:
      newEdge - Represents the situation after the change. The Node was already changed.
      oldPostNode - The node, which was previously at this position (now disconnected from that edge)
    • updateAll

      void updateAll(NESTWorkflowObject graph) throws Exception
      Notifies the listener, that many changes have been done and a complete reconstruction is necessary in order to cover them.
      Parameters:
      graph - The NESTGraph at its current state.
      Throws:
      Exception