Added OD
authorBill Kuker <bkuker@billkuker.com>
Wed, 9 Sep 2009 00:18:14 +0000 (00:18 +0000)
committerBill Kuker <bkuker@billkuker.com>
Wed, 9 Sep 2009 00:18:14 +0000 (00:18 +0000)
src/com/billkuker/rocketry/motorsim/CylindricalChamber.java

index 719f4d5fe97933929c1331e7f1b651779f919a36..14e97aca2487893cdfb2927070e31f966056d5f3 100644 (file)
@@ -9,9 +9,9 @@ import org.jscience.physics.amount.Amount;
 \r
 public class CylindricalChamber implements Chamber {\r
        \r
-       private Amount<Length> length;\r
-       \r
-       private Amount<Length> iD;\r
+       private Amount<Length> length = Amount.valueOf(200, SI.MILLIMETER);\r
+       private Amount<Length> oD = Amount.valueOf(31, SI.MILLIMETER);\r
+       private Amount<Length> iD = Amount.valueOf(30, SI.MILLIMETER);\r
 \r
        public Amount<Pressure> burstPressure() {\r
                return null;\r
@@ -36,5 +36,13 @@ public class CylindricalChamber implements Chamber {
        public void setID(Amount<Length> id) {\r
                iD = id;\r
        }\r
+       \r
+       public Amount<Length> getOD() {\r
+               return oD;\r
+       }\r
+\r
+       public void setOD(Amount<Length> oD) {\r
+               this.oD = oD;\r
+       }\r
 \r
 }\r