org.jscience.computing.graph.events
Class TraversalListenerAdapter

java.lang.Object
  extended by org.jscience.computing.graph.events.TraversalListenerAdapter
All Implemented Interfaces:
TraversalListener

public class TraversalListenerAdapter
extends java.lang.Object
implements TraversalListener

An empty do-nothing implementation of the TraversalListener interface used for subclasses.

Since:
Aug 6, 2003

Constructor Summary
TraversalListenerAdapter()
           
 
Method Summary
 void connectedComponentFinished(ConnectedComponentTraversalEvent e)
          Called to inform listeners that the traversal of the current connected component has finished.
 void connectedComponentStarted(ConnectedComponentTraversalEvent e)
          Called to inform listeners that a traversal of a new connected component has started.
 void edgeTraversed(EdgeTraversalEvent e)
          Called to inform the listener that the specified edge have been visited during the graph traversal.
 void vertexTraversed(VertexTraversalEvent e)
          Called to inform the listener that the specified vertex have been visited during the graph traversal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraversalListenerAdapter

public TraversalListenerAdapter()
Method Detail

connectedComponentFinished

public void connectedComponentFinished(ConnectedComponentTraversalEvent e)
Description copied from interface: TraversalListener
Called to inform listeners that the traversal of the current connected component has finished.

Specified by:
connectedComponentFinished in interface TraversalListener
Parameters:
e - the traversal event.
See Also:
TraversalListener.connectedComponentFinished(ConnectedComponentTraversalEvent)

connectedComponentStarted

public void connectedComponentStarted(ConnectedComponentTraversalEvent e)
Description copied from interface: TraversalListener
Called to inform listeners that a traversal of a new connected component has started.

Specified by:
connectedComponentStarted in interface TraversalListener
Parameters:
e - the traversal event.
See Also:
TraversalListener.connectedComponentStarted(ConnectedComponentTraversalEvent)

edgeTraversed

public void edgeTraversed(EdgeTraversalEvent e)
Description copied from interface: TraversalListener
Called to inform the listener that the specified edge have been visited during the graph traversal. Depending on the traversal algorithm, edge might be visited more than once.

Specified by:
edgeTraversed in interface TraversalListener
Parameters:
e - the edge traversal event.
See Also:
TraversalListener.edgeTraversed(EdgeTraversalEvent)

vertexTraversed

public void vertexTraversed(VertexTraversalEvent e)
Description copied from interface: TraversalListener
Called to inform the listener that the specified vertex have been visited during the graph traversal. Depending on the traversal algorithm, vertex might be visited more than once.

Specified by:
vertexTraversed in interface TraversalListener
Parameters:
e - the vertex traversal event.
See Also:
TraversalListener.vertexTraversed(VertexTraversalEvent)