cleared some minor TODOs
[sw/motorsim] / src / com / billkuker / rocketry / motorsim / fuel / EditableFuel.java
1 package com.billkuker.rocketry.motorsim.fuel;\r
2 \r
3 import javax.measure.quantity.Pressure;\r
4 import javax.measure.quantity.VolumetricDensity;\r
5 import javax.measure.unit.SI;\r
6 \r
7 import org.jscience.physics.amount.Amount;\r
8 \r
9 public class EditableFuel extends SaintRobertFuel {\r
10         private String name;\r
11         private double a = 0.0665;\r
12         private double n = 0.319;\r
13         private double combustionEfficiency = .97;\r
14         private double densityRatio = .96;\r
15         private Amount<VolumetricDensity> idealDensity = Amount.valueOf(1889, 0, SI.KILOGRAM.divide(SI.METER.pow(3))).to(VolumetricDensity.UNIT);\r
16         CombustionProduct combustionProduct = new EditableCombustionProduct();\r
17         private SaintRobertFuel.Type type = SaintRobertFuel.Type.NONSI;\r
18         \r
19         public EditableFuel() {\r
20                 super(SaintRobertFuel.Type.NONSI);\r
21         }\r
22         \r
23         public String getName() {\r
24                 return name;\r
25         }\r
26 \r
27         public void setName(String name) {\r
28                 this.name = name;\r
29         }\r
30 \r
31 \r
32         @Override\r
33         protected double burnrateCoefficient(Amount<Pressure> pressure) {\r
34                 return a;\r
35         }\r
36 \r
37         @Override\r
38         protected double burnrateExponent(Amount<Pressure> pressure) {\r
39                 return n;\r
40         }\r
41 \r
42 \r
43         public double getA() {\r
44                 return a;\r
45         }\r
46 \r
47         public void setA(double a) {\r
48                 this.a = a;\r
49         }\r
50 \r
51         public double getCombustionEfficiency() {\r
52                 return combustionEfficiency;\r
53         }\r
54 \r
55         public void setCombustionEfficiency(double combustionEfficiency) {\r
56                 this.combustionEfficiency = combustionEfficiency;\r
57         }\r
58 \r
59         public double getDensityRatio() {\r
60                 return densityRatio;\r
61         }\r
62 \r
63         public void setDensityRatio(double densityRatio) {\r
64                 this.densityRatio = densityRatio;\r
65         }\r
66 \r
67         public Amount<VolumetricDensity> getIdealDensity() {\r
68                 return idealDensity;\r
69         }\r
70 \r
71         public void setIdealDensity(Amount<VolumetricDensity> idealDensity) {\r
72                 this.idealDensity = idealDensity;\r
73         }\r
74 \r
75         public double getN() {\r
76                 return n;\r
77         }\r
78 \r
79         public void setN(double n) {\r
80                 this.n = n;\r
81         }\r
82 \r
83         public CombustionProduct getCombustionProduct() {\r
84                 return combustionProduct;\r
85         }\r
86 \r
87         public void setCombustionProduct(CombustionProduct combustionProduct) {\r
88                 this.combustionProduct = combustionProduct;\r
89         }\r
90 \r
91         public SaintRobertFuel.Type getType() {\r
92                 return type;\r
93         }\r
94 \r
95         public void setType(SaintRobertFuel.Type type) {\r
96                 this.type = type;\r
97         }\r
98 \r
99 \r
100 }\r