|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 GraphWalker
GraphWalker.init(GraphComponent)
public boolean isVisited(GraphComponent element)
isVisited
in interface GraphWalker
GraphWalker.isVisited(GraphComponent)
public int visit(GraphComponent element, GraphTraversal traversal)
visit
in interface GraphWalker
element
- The component to visit.traversal
- The traversal controlling the sequence of graph
component visits.public void finish()
finish
in interface GraphWalker
GraphWalker.finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |