|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.traverse.SimpleGraphWalker
A simple implentation of GraphWalker that decorates a GraphVisitor.
| Constructor Summary | |
SimpleGraphWalker(GraphVisitor visitor)
Creates a GraphWalker from a preexising GraphVisitor |
|
| Method Summary | |
void |
finish()
Does nothing. |
void |
init(GraphComponent element)
Resets visited flag and counter. |
boolean |
isVisited(GraphComponent element)
Returns the visited flag of the graph component. |
int |
visit(GraphComponent element,
GraphTraversal traversal)
Sets the visted flag, and passes the element on to underlying visitor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleGraphWalker(GraphVisitor visitor)
| Method Detail |
public void init(GraphComponent element)
init in interface GraphWalkerGraphWalker.init(GraphComponent)public boolean isVisited(GraphComponent element)
isVisited in interface GraphWalkerGraphWalker.isVisited(GraphComponent)
public int visit(GraphComponent element,
GraphTraversal traversal)
visit in interface GraphWalkerelement - The component to visit.traversal - The traversal controlling the sequence of graph
component visits.public void finish()
finish in interface GraphWalkerGraphWalker.finish()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||