optimization updates
[debian/openrocket] / src / net / sf / openrocket / optimization / rocketoptimization / OptimizableParameter.java
index e8506e8d684bb0dc74817a201b8966687ce56be9..2acdb04913666d99e554d2a7ad275c485cbeeb9d 100644 (file)
@@ -2,6 +2,7 @@ package net.sf.openrocket.optimization.rocketoptimization;
 
 import net.sf.openrocket.document.Simulation;
 import net.sf.openrocket.optimization.general.OptimizationException;
+import net.sf.openrocket.unit.UnitGroup;
 
 /**
  * A parameter of a rocket or simulation that can be optimized
@@ -28,6 +29,13 @@ public interface OptimizableParameter {
         * @return                              the parameter value (any double value)
         * @throws OptimizationException        if an error occurs preventing the optimization from continuing
         */
-       public double computeValue(Simulation simulation) throws OptimizationException;
+       public double computeValue(Simulation simulation) throws OptimizationException, InterruptedException;
+       
+       
+       /**
+        * Return the unit group associated with the computed value.
+        * @return      the unit group of the computed value.
+        */
+       public UnitGroup getUnitGroup();
        
 }