1 /* 2 * Copyright (c) 2003, the JUNG Project and the Regents of the University 3 * of California 4 * All rights reserved. 5 * 6 * This software is open-source under the BSD license; see either 7 * "license.txt" or 8 * http://jung.sourceforge.net/license.txt for a description. 9 */ 10 package edu.uci.ics.jung.algorithms.util; 11 12 13 /** 14 * An interface for algorithms that proceed iteratively. 15 * 16 */ 17 public interface IterativeContext 18 { 19 /** 20 * Advances one step. 21 */ 22 void step(); 23 24 /** 25 * Returns true if this iterative process is finished, and false otherwise. 26 */ 27 boolean done(); 28 }