1 /*
2 * Copyright (c) 2003, The JUNG Authors
3 *
4 * All rights reserved.
5 *
6 * This software is open-source under the BSD license; see either
7 * "license.txt" or
8 * https://github.com/jrtom/jung/blob/master/LICENSE 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 * @return {@code true} if this iterative process is finished, and {@code false} otherwise.
26 */
27 boolean done();
28 }