G - The type of the graph itself.E - The type of the edges.N - The type of the nodes.public abstract class AbstractGraph<G extends IGraph<G,E,N>,E extends IEdge<G,E,N>,N extends INode<G,E,N>> extends Extensible implements IGraph<G,E,N>
AbstractGraph is an abstract implementation of the IGraph interface. It extends Extensible and adds an implementation of the listener methods. To invoke listeners, the invokeListeners
method can be called.| Constructor and Description |
|---|
AbstractGraph() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addListener(IGraphListener<G,E,N> listener)
Add a listener to this graph.
|
protected void |
invokeListeners()
This method invokes all listeners and remove those that request to be removed.
|
boolean |
removeListener(IGraphListener<G,E,N> listener)
Remove a listener from this graph.
|
copyExtensions, getCopyExtensions, getExtension, getExtensions, getExtensionsWithoutProperty, getExtensionsWithProperty, getWriteToFileExtensions, hasExtension, putExtension, putExtension, removeExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEdges, getName, getNode, getNodes, getPostsetEdges, getPostsetEdges, getPostsetNodes, getPostsetNodes, getPresetEdges, getPresetEdges, getPresetNodes, getPresetNodesgetExtension, putExtension, removeExtensionpublic boolean addListener(IGraphListener<G,E,N> listener)
IGraphpublic boolean removeListener(IGraphListener<G,E,N> listener)
IGraphprotected void invokeListeners()