Add an interface to allow export of pvc motors
[sw/motorsim] / src / com / billkuker / rocketry / motorsim / io / ENGExporter.java
index 5233205802a80f1088577ca9de600f2ab7728867..1a9f273c1b8daf9c4060c3571ba1ade19e38650f 100644 (file)
@@ -6,8 +6,6 @@ import java.io.IOException;
 import java.io.OutputStream;
 import java.text.DecimalFormat;
 import java.text.NumberFormat;
-import java.util.Collection;
-import java.util.Set;
 
 import javax.measure.quantity.Duration;
 import javax.measure.quantity.Force;
@@ -17,8 +15,8 @@ import javax.measure.unit.SI;
 import org.jscience.physics.amount.Amount;
 
 import com.billkuker.rocketry.motorsim.Burn;
-import com.billkuker.rocketry.motorsim.CylindricalChamber;
 import com.billkuker.rocketry.motorsim.GraphSimplifier;
+import com.billkuker.rocketry.motorsim.ICylindricalChamber;
 
 public class ENGExporter {
 
@@ -34,9 +32,9 @@ public class ENGExporter {
 
        public static void export(Burn b, OutputStream os) throws IOException {
 
-               CylindricalChamber cha = (CylindricalChamber) b.getMotor().getChamber();
+               ICylindricalChamber cha = (ICylindricalChamber) b.getMotor().getChamber();
 
-               NumberFormat nf = new DecimalFormat("00.###");
+               NumberFormat nf = new DecimalFormat("00.####");
 
                StringBuffer out = new StringBuffer();