| java.lang.Object org.geotools.graph.traverse.basic.BasicGraphTraversal
All known Subclasses: org.geotools.graph.traverse.basic.StagedGraphTraversal,
BasicGraphTraversal | public class BasicGraphTraversal implements GraphTraversal(Code) | | A basic implementation of GraphTraversal.
author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
BasicGraphTraversal | public BasicGraphTraversal(Graph graph, GraphWalker walker, GraphIterator iterator)(Code) | | Constrcuts a new graph traversal.
Parameters: graph - The graph being traversed. Parameters: walker - The walker being traversed over the components of the graph. Parameters: iterator - The iterator specifying the order in which to visit components of the graph. |
traverse | public void traverse()(Code) | | Upon each iteration of the traversal, a component is returned from the
iterator and passed to the visitor. The traversal interprets the return
codes from the walker and performs the following actions.
Code |
Action Performed |
CONTINUE |
The traversal instructs the iterator to continue and starts the
next stage of iteration. |
SUSPEND |
The traversal instructs the iterator to continue but does not start
the next stage of iteration, returning from traverse(). |
KILL_BRANCH |
The traversal instructs the iterator to kill the current branch
and starts the next stage of iteration. |
STOP |
The traversal does not instruct the iterator to continue and
does not start the next of iteration, returning from traverse()
|
See Also: GraphTraversal.traverse |
|
|