| org.geotools.graph.traverse.GraphWalker
All known Subclasses: org.geotools.graph.traverse.basic.DummyGraphWalker, org.geotools.graph.path.DijkstraShortestPathFinder, org.geotools.graph.traverse.basic.SimpleGraphWalker, org.geotools.graph.util.graph.GraphPartitioner, org.geotools.graph.util.graph.CycleDetector, org.geotools.graph.traverse.basic.CountingWalker,
GraphWalker | public interface GraphWalker (Code) | | Iterated over the components of a graph using a standard visitor
pattern.
author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
Method Summary | |
public void | finish() Called when the graph traversal is completed. | public int | visit(Graphable element, GraphTraversal traversal) Visits a graph component.
Parameters: element - The component being visited. Parameters: traversal - The traversal controlling the sequence of graphcomponent visits. |
finish | public void finish()(Code) | | Called when the graph traversal is completed. Wether this method is called
after a traversal has been stopped with a return signal is up to the
implementation of GraphTraversal.
See Also: GraphTraversal |
visit | public int visit(Graphable element, GraphTraversal traversal)(Code) | | Visits a graph component.
Parameters: element - The component being visited. Parameters: traversal - The traversal controlling the sequence of graphcomponent visits. 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 shouldkill its current branch. GraphTraversal#STOP to signal that the traversal should stop.
See Also: GraphTraversal See Also: GraphIterator |
|
|