|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSimpleGraphWalker
public class SimpleGraphWalker
A simple implementation of GraphWalker that decorates a GraphVisitor.
modules/extension/graph (gt-graph.jar)
Constructor Summary | |
---|---|
SimpleGraphWalker(GraphVisitor visitor)
Creates a GraphWalker from a preexising GraphVisitor. |
Method Summary | |
---|---|
void |
finish()
Does nothing. |
GraphVisitor |
getVistor()
Returns the underlying visitor. |
void |
setVisitor(GraphVisitor visitor)
Sets the underlying visitor. |
int |
visit(Graphable element,
GraphTraversal traversal)
Defers to the underlying visitor. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleGraphWalker(GraphVisitor visitor)
visitor
- The visitor to decorateMethod Detail |
---|
public GraphVisitor getVistor()
public void setVisitor(GraphVisitor visitor)
visitor
- The visitor to be decorated by the walker.public int visit(Graphable element, GraphTraversal traversal)
visit
in interface GraphWalker
element
- The component being visited.traversal
- The traversal controlling the sequence of graph
component visits.
GraphWalker.visit(Graphable, GraphTraversal)
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 |