org.geotools.graph.traverse.basic
Class DummyGraphWalker

java.lang.Object
  extended byorg.geotools.graph.traverse.basic.DummyGraphWalker
All Implemented Interfaces:
GraphWalker

public class DummyGraphWalker
extends java.lang.Object
implements GraphWalker

A simple implementation of GraphWalker that does nothing but signal a graph traversal to continue.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
See Also:
GraphTraversal

Constructor Summary
DummyGraphWalker()
           
 
Method Summary
 void finish()
          Does nothing.
 int visit(Graphable element, GraphTraversal traversal)
          Returns the continue signal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyGraphWalker

public DummyGraphWalker()
Method Detail

visit

public int visit(Graphable element,
                 GraphTraversal traversal)
Returns the continue signal.

Specified by:
visit in interface GraphWalker
Parameters:
element - The component being visited.
traversal - The traversal controlling the sequence of graph component visits.
Returns:
GraphTraversal#CONTINUE to signal that the traversal should continue.
GraphTraversal#CONTINUE to signal that the traversal should suspend.
GraphTraversal#KILL_BRANCH to signal that the traversal should kill its current branch.
GraphTraversal#STOP to signal that the traversal should stop.
See Also:
GraphWalker.visit(Graphable, GraphTraversal), GraphTraversal.CONTINUE

finish

public void finish()
Does nothing.

Specified by:
finish in interface GraphWalker
See Also:
GraphWalker.finish()


Copyright © GeoTools. All Rights Reserved.