|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.graph.traverse.AbstractGraphTraversal
An abstract implementation of GraphTraversal.
Field Summary |
Fields inherited from interface org.geotools.graph.traverse.GraphTraversal |
CONTINUE, STOP |
Constructor Summary | |
AbstractGraphTraversal(Graph graph,
GraphWalker walker)
|
Method Summary | |
void |
finish()
Signals to the walker that the traversal is complete. |
Graph |
getGraph()
Returns the graph the traversal is being made upon. |
GraphWalker |
getWalker()
Returns the GraphWalker whom the traversal is dispatching to elements in the graph. |
void |
initEdges()
Initializes the edges of a graph by delegating initialization to the walker. |
void |
initNodes()
Initializes the nodes of a graph by delegating initialization to the walker. |
abstract void |
walkEdges()
Performs the walking algorithm among the edges of the graph. |
abstract void |
walkNodes()
Performs the walking algorithm among the nodes of the graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractGraphTraversal(Graph graph, GraphWalker walker)
Method Detail |
public Graph getGraph()
GraphTraversal
getGraph
in interface GraphTraversal
GraphTraversal.getGraph()
public GraphWalker getWalker()
GraphTraversal
getWalker
in interface GraphTraversal
GraphTraversal.getWalker()
public void initNodes()
initNodes
in interface GraphTraversal
GraphTraversal.initNodes()
public void initEdges()
initEdges
in interface GraphTraversal
GraphTraversal.initNodes()
public void finish()
finish
in interface GraphTraversal
GraphTraversal.finish()
public abstract void walkNodes()
walkNodes
in interface GraphTraversal
public abstract void walkEdges()
walkEdges
in interface GraphTraversal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |