Initial opendaylight infrastructure commit!!
[controller.git] / third-party / net.sf.jung2 / src / main / java / edu / uci / ics / jung / algorithms / util / IterativeContext.java
diff --git a/third-party/net.sf.jung2/src/main/java/edu/uci/ics/jung/algorithms/util/IterativeContext.java b/third-party/net.sf.jung2/src/main/java/edu/uci/ics/jung/algorithms/util/IterativeContext.java
new file mode 100644 (file)
index 0000000..92bd45d
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+* Copyright (c) 2003, the JUNG Project and the Regents of the University 
+* of California
+* All rights reserved.
+*
+* This software is open-source under the BSD license; see either
+* "license.txt" or
+* http://jung.sourceforge.net/license.txt for a description.
+*/
+package edu.uci.ics.jung.algorithms.util;
+
+
+/**
+ * An interface for algorithms that proceed iteratively.
+ *
+ */
+public interface IterativeContext 
+{
+       /**
+        * Advances one step.
+        */
+       void step();
+
+       /**
+        * Returns true if this iterative process is finished, and false otherwise.
+        */
+       boolean done();
+}