| java.lang.Object org.geotools.graph.traverse.basic.CountingWalker
CountingWalker | public class CountingWalker implements GraphWalker(Code) | | An implementation of GraphWalker that counts the number of components
visited. As each component is visited, the walker sets the count of the
component to the value of its counter.
See Also: Graphable.setCount(int) author: Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net |
Method Summary | |
public void | finish() Does nothing. | public int | getCount() Returns the value of the visitation counter. | public int | visit(Graphable element, GraphTraversal traversal) Sets the count of the component and increments the counter. |
getCount | public int getCount()(Code) | | Returns the value of the visitation counter.
int Value of the counter. |
|
|