org.geotools.graph.traverse.basic
Class AbstractGraphIterator

java.lang.Object
  extended byorg.geotools.graph.traverse.basic.AbstractGraphIterator
All Implemented Interfaces:
GraphIterator
Direct Known Subclasses:
BreadthFirstTopologicalIterator, DirectedBreadthFirstTopologicalIterator, SourceGraphIterator

public abstract class AbstractGraphIterator
extends java.lang.Object
implements GraphIterator

An abstract implementation of GraphIterator.

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

Constructor Summary
AbstractGraphIterator()
           
 
Method Summary
 Graph getGraph()
          Returns the graph being traversed.
 GraphTraversal getTraversal()
          Returns the traversal for the iterator.
 GraphWalker getWalker()
          Returns the walker being traversed over the graph.
 void setTraversal(GraphTraversal traversal)
          Sets the traversal for the iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.graph.traverse.GraphIterator
cont, init, killBranch, next
 

Constructor Detail

AbstractGraphIterator

public AbstractGraphIterator()
Method Detail

setTraversal

public void setTraversal(GraphTraversal traversal)
Description copied from interface: GraphIterator
Sets the traversal for the iterator.

Specified by:
setTraversal in interface GraphIterator
Parameters:
traversal - The traversal requesting components from the iterator.
See Also:
GraphIterator.setTraversal(GraphTraversal)

getTraversal

public GraphTraversal getTraversal()
Description copied from interface: GraphIterator
Returns the traversal for the iterator.

Specified by:
getTraversal in interface GraphIterator
Returns:
The traversal requesting components from the iterator.
See Also:
GraphIterator.getTraversal()

getGraph

public Graph getGraph()
Returns the graph being traversed.

Returns:
The graph being traversed.
See Also:
Graph

getWalker

public GraphWalker getWalker()
Returns the walker being traversed over the graph.

Returns:
The walker being traversed over the graph.
See Also:
GraphWalker


Copyright © GeoTools. All Rights Reserved.