30 lines
		
	
	
	
		
			706 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			706 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package org.insa.algo.weakconnectivity;
 | |
| 
 | |
| import java.util.ArrayList;
 | |
| 
 | |
| import org.insa.graph.Node;
 | |
| 
 | |
| public interface WeaklyConnectedComponentObserver {
 | |
| 
 | |
| 	/**
 | |
| 	 * Notify that the algorithm is entering a new component.
 | |
| 	 * 
 | |
| 	 * @param curNode Starting node for the component.
 | |
| 	 */
 | |
| 	public void notifyStartComponent(Node curNode);
 | |
| 	
 | |
| 	/**
 | |
| 	 * Notify that a new node has been found for the current component.
 | |
| 	 * 
 | |
| 	 * @param node New node found for the current component.
 | |
| 	 */
 | |
| 	public void notifyNewNodeInComponent(Node node);
 | |
| 	
 | |
| 	/**
 | |
| 	 * Notify that the algorithm has computed a new component.
 | |
| 	 * 
 | |
| 	 * @param nodes List of nodes in the component.
 | |
| 	 */
 | |
| 	public void notifyEndComponent(ArrayList<Node> nodes);
 | |
| 
 | |
| }
 |