optimization updates
[debian/openrocket] / src / net / sf / openrocket / optimization / general / ParallelFunctionCache.java
index c5b34a5246d2c23aa44929abcf6cbabe748cb85c..1c8a35f64fe81bbae6d9204653e6e559c52dde4d 100644 (file)
@@ -35,6 +35,7 @@ public interface ParallelFunctionCache extends FunctionCache {
         * 
         * @param points        the points to wait for.
         * @throws InterruptedException         if this thread or the computing thread was interrupted while waiting.
+        * @throws OptimizationException        if an error preventing continuing the optimization occurs.
         */
        public void waitFor(Collection<Point> points) throws InterruptedException, OptimizationException;
        
@@ -44,7 +45,7 @@ public interface ParallelFunctionCache extends FunctionCache {
         * 
         * @param point         the point to wait for.
         * @throws InterruptedException         if this thread or the computing thread was interrupted while waiting.
-        * @throws OptimizationException 
+        * @throws OptimizationException        if an error preventing continuing the optimization occurs.
         */
        public void waitFor(Point point) throws InterruptedException, OptimizationException;
        
@@ -67,4 +68,10 @@ public interface ParallelFunctionCache extends FunctionCache {
         * @return                      <code>true</code> if the point has been computed anyway, <code>false</code> if not.
         */
        public boolean abort(Point point);
+       
+       
+       /**
+        * Abort the computation of all still unexecuted points.
+        */
+       public void abortAll();
 }