projects
/
sw
/
motorsim
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an interface to allow export of pvc motors
[sw/motorsim]
/
src
/
com
/
billkuker
/
rocketry
/
motorsim
/
io
/
ENGExporter.java
diff --git
a/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java
b/src/com/billkuker/rocketry/motorsim/io/ENGExporter.java
index d1f4879f621f3fe9e5d88036238b4dd562ad9c2e..1a9f273c1b8daf9c4060c3571ba1ade19e38650f 100644
(file)
--- a/
src/com/billkuker/rocketry/motorsim/io/ENGExporter.java
+++ b/
src/com/billkuker/rocketry/motorsim/io/ENGExporter.java
@@
-15,8
+15,8
@@
import javax.measure.unit.SI;
import org.jscience.physics.amount.Amount;
import com.billkuker.rocketry.motorsim.Burn;
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.GraphSimplifier;
+import com.billkuker.rocketry.motorsim.ICylindricalChamber;
public class ENGExporter {
public class ENGExporter {
@@
-32,7
+32,7
@@
public class ENGExporter {
public static void export(Burn b, OutputStream os) throws IOException {
public static void export(Burn b, OutputStream os) throws IOException {
-
CylindricalChamber cha = (
CylindricalChamber) b.getMotor().getChamber();
+
ICylindricalChamber cha = (I
CylindricalChamber) b.getMotor().getChamber();
NumberFormat nf = new DecimalFormat("00.####");
NumberFormat nf = new DecimalFormat("00.####");