Class AbstractGraphIterator
- Object
-
- 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
-
-
Constructor Summary
Constructors Constructor Description AbstractGraphIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
setTraversal
public void setTraversal(GraphTraversal traversal)
Description copied from interface:GraphIterator
Sets the traversal for the iterator.- Specified by:
setTraversal
in interfaceGraphIterator
- 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 interfaceGraphIterator
- 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
-
-