|
|||||||||
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 net.sourceforge.combean.graph.alg.partition.PartitionsTraversalVisitor
public class PartitionsTraversalVisitor
This class wraps a NodePartitionsVisitor inside a traversal visitor. Every components that is encountered during the traversal is reported from the traversal visitor to the node partition visitor.
PartitionsTraversalVisitor
,
TraversalVisitor
Constructor Summary | |
---|---|
PartitionsTraversalVisitor(NodePartitionVisitor partitionVis)
|
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 |
leaveComponent(Node v)
The traversal algorithm has finished visiting a component of the graph. |
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 net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor |
---|
initLocal, openNeighbor, readyToTerminate, reopenNeighbor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionsTraversalVisitor(NodePartitionVisitor partitionVis)
Method Detail |
---|
public void init(Graph g)
TraversalVisitor
init
in interface TraversalVisitor
init
in class IdleTraversalVisitor
g
- the graph which will be traversed.TraversalVisitor.init(Graph)
public void leaveComponent(Node v)
TraversalVisitor
leaveComponent
in interface TraversalVisitor
leaveComponent
in class IdleTraversalVisitor
v
- an arbitrary node in the component.TraversalVisitor.leaveComponent(net.sourceforge.combean.interfaces.graph.Node)
public void visitComponent(Node v)
TraversalVisitor
visitComponent
in interface TraversalVisitor
visitComponent
in class IdleTraversalVisitor
v
- an arbitrary node in the component.TraversalVisitor.visitComponent(net.sourceforge.combean.interfaces.graph.Node)
public void visitNode(Node v)
TraversalVisitor
visitNode
in interface TraversalVisitor
visitNode
in class IdleTraversalVisitor
v
- the node which is being visited.TraversalVisitor.visitNode(net.sourceforge.combean.interfaces.graph.Node)
public void finish()
TraversalVisitor
finish
in interface TraversalVisitor
finish
in class IdleTraversalVisitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |