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 Summary
Modifier and TypeMethodDescriptionvoid
addNode
(NESTNodeObject newNode) The NESTGraph just added the given node to the graph.void
removeNode
(NESTNodeObject removedNode) The NESTGraph will remove the given node from the graph.void
setEdgePost
(NESTEdgeObject newEdge, NESTNodeObject oldPostNode) The NESTGraph changed the post-item of the edge.void
setEdgePre
(NESTEdgeObject newEdge, NESTNodeObject oldPreNode) The NESTGraph changed the pre-item of the edge.void
updateAll
(NESTWorkflowObject graph) Notifies the listener, that many changes have been done and a complete reconstruction is necessary in order to cover them.
-
Method Details
-
addNode
The NESTGraph just added the given node to the graph.- Parameters:
newNode
-
-
removeNode
The NESTGraph will remove the given node from the graph.- Parameters:
removedNode
-
-
setEdgePre
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
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
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
-