|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor
public class IdleTraversalVisitor
Constructor Summary | |
---|---|
IdleTraversalVisitor()
|
Method Summary | |
---|---|
void |
finish()
This method is called when the traversal is terminated. |
void |
init(Graph g)
This method is called immediately before the traversal algorithm starts if all components of g shall be traversed. |
void |
initLocal(Graph g,
Node startNode)
This method is called immediately before the traversal algorithm starts if a component of g shall be traversed from a local start node. |
void |
leaveComponent(Node v)
The traversal algorithm has finished visiting a component of the graph. |
void |
openNeighbor(Edge e,
Node from)
A node has been detected for the first time. |
boolean |
readyToTerminate()
Signal if the traversal can be terminated. |
void |
reopenNeighbor(Edge e,
Node from)
A node has been redetected |
void |
visitComponent(Node v)
The traversal algorithms starts visiting a component of the graph. |
void |
visitNode(Node v)
The traversal algorithms begins to explore the neighborhood of a node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdleTraversalVisitor()
Method Detail |
---|
public boolean readyToTerminate()
TraversalVisitor
readyToTerminate
in interface TraversalVisitor
TraversalVisitor.readyToTerminate()
public void openNeighbor(Edge e, Node from)
TraversalVisitor
openNeighbor
in interface TraversalVisitor
e
- the edge through which the node has been detected.from
- the other node from where the new node has been detected.TraversalVisitor.openNeighbor(net.sourceforge.combean.interfaces.graph.Edge, net.sourceforge.combean.interfaces.graph.Node)
public void reopenNeighbor(Edge e, Node from)
TraversalVisitor
reopenNeighbor
in interface TraversalVisitor
e
- the edge through which the node has been detected.from
- the other node from where the node has been detected.TraversalVisitor.reopenNeighbor(net.sourceforge.combean.interfaces.graph.Edge, net.sourceforge.combean.interfaces.graph.Node)
public void visitNode(Node v)
TraversalVisitor
visitNode
in interface TraversalVisitor
v
- the node which is being visited.TraversalVisitor.visitNode(net.sourceforge.combean.interfaces.graph.Node)
public void visitComponent(Node v)
TraversalVisitor
visitComponent
in interface TraversalVisitor
v
- an arbitrary node in the component.TraversalVisitor.visitComponent(net.sourceforge.combean.interfaces.graph.Node)
public void leaveComponent(Node v)
TraversalVisitor
leaveComponent
in interface TraversalVisitor
v
- an arbitrary node in the component.TraversalVisitor.leaveComponent(net.sourceforge.combean.interfaces.graph.Node)
public void init(Graph g)
TraversalVisitor
init
in interface TraversalVisitor
g
- the graph which will be traversed.TraversalVisitor.init(Graph)
public void initLocal(Graph g, Node startNode)
TraversalVisitor
initLocal
in interface TraversalVisitor
g
- the graph which will be traversed.startNode
- the local start node.TraversalVisitor.initLocal(Graph, net.sourceforge.combean.interfaces.graph.Node)
public void finish()
TraversalVisitor
finish
in interface TraversalVisitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |