Interface NESTGraphListener
-
- All Known Implementing Classes:
NESTWorkflowToWFBlock
public interface NESTGraphListenerDefines the methods, necessary to be implemented, when listening to NESTGraph-changes- Author:
- Alexander Stromer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddNode(NESTNodeObject newNode)The NESTGraph just added the given node to the graph.voidremoveNode(NESTNodeObject removedNode)The NESTGraph will remove the given node from the graph.voidsetEdgePost(NESTEdgeObject newEdge, NESTNodeObject oldPostNode)The NESTGraph changed the post-item of the edge.voidsetEdgePre(NESTEdgeObject newEdge, NESTNodeObject oldPreNode)The NESTGraph changed the pre-item of the edge.voidupdateAll(NESTWorkflowObject graph)Notifies the listener, that many changes have been done and a complete reconstruction is necessary in order to cover them.
-
-
-
Method Detail
-
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
-
-