org.geotools.graph.traverse.basic
Class AbstractGraphIterator

Object
  extended by AbstractGraphIterator
All Implemented Interfaces:
GraphIterator
Direct Known Subclasses:
BreadthFirstTopologicalIterator, DirectedBreadthFirstTopologicalIterator, SourceGraphIterator

public abstract class AbstractGraphIterator
extends Object
implements GraphIterator

An abstract implementation of GraphIterator.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
Module:
modules/extension/graph (gt-graph.jar)

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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface 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 © 1996-2010 Geotools. All Rights Reserved.