Class WeaklyConnectedComponentTextObserver
- java.lang.Object
-
- org.insa.graphs.algorithm.weakconnectivity.WeaklyConnectedComponentTextObserver
-
- All Implemented Interfaces:
WeaklyConnectedComponentObserver
public class WeaklyConnectedComponentTextObserver extends java.lang.Object implements WeaklyConnectedComponentObserver
-
-
Constructor Summary
Constructors Constructor Description WeaklyConnectedComponentTextObserver(java.io.PrintStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
notifyEndComponent(java.util.ArrayList<Node> nodes)
Notify that the algorithm has computed a new component.void
notifyNewNodeInComponent(Node node)
Notify that a new node has been found for the current component.void
notifyStartComponent(Node curNode)
Notify that the algorithm is entering a new component.
-
-
-
Method Detail
-
notifyStartComponent
public void notifyStartComponent(Node curNode)
Description copied from interface:WeaklyConnectedComponentObserver
Notify that the algorithm is entering a new component.- Specified by:
notifyStartComponent
in interfaceWeaklyConnectedComponentObserver
- Parameters:
curNode
- Starting node for the component.
-
notifyNewNodeInComponent
public void notifyNewNodeInComponent(Node node)
Description copied from interface:WeaklyConnectedComponentObserver
Notify that a new node has been found for the current component.- Specified by:
notifyNewNodeInComponent
in interfaceWeaklyConnectedComponentObserver
- Parameters:
node
- New node found for the current component.
-
notifyEndComponent
public void notifyEndComponent(java.util.ArrayList<Node> nodes)
Description copied from interface:WeaklyConnectedComponentObserver
Notify that the algorithm has computed a new component.- Specified by:
notifyEndComponent
in interfaceWeaklyConnectedComponentObserver
- Parameters:
nodes
- List of nodes in the component.
-
-