create changelog entry
[debian/openrocket] / android / src / net / sf / openrocket / android / thrustcurve / TCMotor.java
1 package net.sf.openrocket.android.thrustcurve;\r
2 \r
3 import java.util.Date;\r
4 import java.util.Vector;\r
5 \r
6 public class TCMotor implements Cloneable {\r
7 \r
8         private Integer motor_id;\r
9         private String manufacturer;\r
10         private String manufacturer_abbr;\r
11         private String designation;\r
12         private String brand_name;\r
13         private String common_name;\r
14         private String impulse_class;\r
15         private Float diameter;\r
16         private Float length;\r
17         private String type;\r
18         private String cert_org;\r
19         private Float avg_thrust_n;\r
20         private Float max_thrust_n;\r
21         private Float tot_impulse_ns;\r
22         private Float burn_time_s;\r
23         private Integer data_files;\r
24         private String info_url;\r
25         private Double tot_mass_g;\r
26         private Double prop_mass_g;\r
27         private String delays;\r
28         private String case_info;\r
29         private String prop_info;\r
30         private Date updated_on;\r
31         private Vector<Double> burndata;\r
32         \r
33         public void init() {\r
34                 motor_id = null;\r
35                 manufacturer = null;\r
36                 manufacturer_abbr = null;\r
37                 designation = null;\r
38                 brand_name = null;\r
39                 common_name = null;\r
40                 impulse_class = null;\r
41                 diameter = null;\r
42                 length = null;\r
43                 type = null;\r
44                 cert_org = null;\r
45                 avg_thrust_n = null;\r
46                 max_thrust_n = null;\r
47                 tot_impulse_ns = null;\r
48                 burn_time_s = null;\r
49                 data_files = null;\r
50                 info_url = null;\r
51                 tot_mass_g = null;\r
52                 prop_mass_g = null;\r
53                 delays = null;\r
54                 case_info = null;\r
55                 prop_info = null;\r
56                 updated_on = null;\r
57                 burndata = null;\r
58         }\r
59         \r
60         @Override\r
61         public TCMotor clone() {\r
62                 TCMotor clone = new TCMotor();\r
63                 clone.motor_id = this.motor_id;\r
64                 clone.manufacturer = this.manufacturer;\r
65                 clone.manufacturer_abbr = this.manufacturer_abbr;\r
66                 clone.designation = this.designation;\r
67                 clone.brand_name = this.brand_name;\r
68                 clone.common_name = this.common_name;\r
69                 clone.impulse_class = this.impulse_class;\r
70                 clone.diameter = this.diameter;\r
71                 clone.length = this.length;\r
72                 clone.type = this.type;\r
73                 clone.cert_org = this.cert_org;\r
74                 clone.avg_thrust_n = this.avg_thrust_n;\r
75                 clone.max_thrust_n = this.max_thrust_n;\r
76                 clone.tot_impulse_ns = this.tot_impulse_ns;\r
77                 clone.burn_time_s = this.burn_time_s;\r
78                 clone.data_files = this.data_files;\r
79                 clone.info_url = this.info_url;\r
80                 clone.tot_mass_g = this.tot_mass_g;\r
81                 clone.prop_mass_g = this.prop_mass_g;\r
82                 clone.delays = this.delays;\r
83                 clone.case_info = this.case_info;\r
84                 clone.prop_info = this.prop_info;\r
85                 clone.updated_on = this.updated_on;\r
86                 clone.burndata = this.burndata;\r
87                 return clone;\r
88         }\r
89 \r
90         public Integer getMotor_id() {\r
91                 return motor_id;\r
92         }\r
93 \r
94         public void setMotor_id(Integer motor_id) {\r
95                 this.motor_id = motor_id;\r
96         }\r
97 \r
98         public String getManufacturer() {\r
99                 return manufacturer;\r
100         }\r
101 \r
102         public void setManufacturer(String manufacturer) {\r
103                 this.manufacturer = manufacturer;\r
104         }\r
105 \r
106         public String getManufacturer_abbr() {\r
107                 return manufacturer_abbr;\r
108         }\r
109 \r
110         public void setManufacturer_abbr(String manufacturer_abbr) {\r
111                 this.manufacturer_abbr = manufacturer_abbr;\r
112         }\r
113 \r
114         public String getDesignation() {\r
115                 return designation;\r
116         }\r
117 \r
118         public void setDesignation(String designation) {\r
119                 this.designation = designation;\r
120         }\r
121 \r
122         public String getBrand_name() {\r
123                 return brand_name;\r
124         }\r
125 \r
126         public void setBrand_name(String brand_name) {\r
127                 this.brand_name = brand_name;\r
128         }\r
129 \r
130         public String getCommon_name() {\r
131                 return common_name;\r
132         }\r
133 \r
134         public void setCommon_name(String common_name) {\r
135                 this.common_name = common_name;\r
136         }\r
137 \r
138         public String getImpulse_class() {\r
139                 return impulse_class;\r
140         }\r
141 \r
142         public void setImpulse_class(String impulse_class) {\r
143                 this.impulse_class = impulse_class;\r
144         }\r
145 \r
146         public Float getDiameter() {\r
147                 return diameter;\r
148         }\r
149 \r
150         public void setDiameter(Float diameter) {\r
151                 this.diameter = diameter;\r
152         }\r
153 \r
154         public Float getLength() {\r
155                 return length;\r
156         }\r
157 \r
158         public void setLength(Float length) {\r
159                 this.length = length;\r
160         }\r
161 \r
162         public String getType() {\r
163                 return type;\r
164         }\r
165 \r
166         public void setType(String type) {\r
167                 this.type = type;\r
168         }\r
169 \r
170         public String getCert_org() {\r
171                 return cert_org;\r
172         }\r
173 \r
174         public void setCert_org(String cert_org) {\r
175                 this.cert_org = cert_org;\r
176         }\r
177 \r
178         public Float getAvg_thrust_n() {\r
179                 return avg_thrust_n;\r
180         }\r
181 \r
182         public void setAvg_thrust_n(Float avg_thrust_n) {\r
183                 this.avg_thrust_n = avg_thrust_n;\r
184         }\r
185 \r
186         public Float getMax_thrust_n() {\r
187                 return max_thrust_n;\r
188         }\r
189 \r
190         public void setMax_thrust_n(Float max_thrust_n) {\r
191                 this.max_thrust_n = max_thrust_n;\r
192         }\r
193 \r
194         public Float getTot_impulse_ns() {\r
195                 return tot_impulse_ns;\r
196         }\r
197 \r
198         public void setTot_impulse_ns(Float tot_impulse_ns) {\r
199                 this.tot_impulse_ns = tot_impulse_ns;\r
200         }\r
201 \r
202         public Float getBurn_time_s() {\r
203                 return burn_time_s;\r
204         }\r
205 \r
206         public void setBurn_time_s(Float burn_time_s) {\r
207                 this.burn_time_s = burn_time_s;\r
208         }\r
209 \r
210         public Integer getData_files() {\r
211                 return data_files;\r
212         }\r
213 \r
214         public void setData_files(Integer data_files) {\r
215                 this.data_files = data_files;\r
216         }\r
217 \r
218         public String getInfo_url() {\r
219                 return info_url;\r
220         }\r
221 \r
222         public void setInfo_url(String info_url) {\r
223                 this.info_url = info_url;\r
224         }\r
225 \r
226         public Double getTot_mass_g() {\r
227                 return tot_mass_g;\r
228         }\r
229 \r
230         public void setTot_mass_g(Double tot_mass_g) {\r
231                 this.tot_mass_g = tot_mass_g;\r
232         }\r
233 \r
234         public Double getProp_mass_g() {\r
235                 return prop_mass_g;\r
236         }\r
237 \r
238         public void setProp_mass_g(Double prop_mass_g) {\r
239                 this.prop_mass_g = prop_mass_g;\r
240         }\r
241 \r
242         public String getDelays() {\r
243                 return delays;\r
244         }\r
245 \r
246         public void setDelays(String delays) {\r
247                 this.delays = delays;\r
248         }\r
249 \r
250         public String getCase_info() {\r
251                 return case_info;\r
252         }\r
253 \r
254         public void setCase_info(String case_info) {\r
255                 this.case_info = case_info;\r
256         }\r
257 \r
258         public String getProp_info() {\r
259                 return prop_info;\r
260         }\r
261 \r
262         public void setProp_info(String prop_info) {\r
263                 this.prop_info = prop_info;\r
264         }\r
265 \r
266         public Date getUpdated_on() {\r
267                 return updated_on;\r
268         }\r
269 \r
270         public void setUpdated_on(Date updated_on) {\r
271                 this.updated_on = updated_on;\r
272         }\r
273 \r
274         public Vector<Double> getBurndata() {\r
275                 return burndata;\r
276         }\r
277 \r
278         public void setBurndata(Vector<Double> burndata) {\r
279                 this.burndata = burndata;\r
280         }\r
281 \r
282         @Override\r
283         public String toString() {\r
284                 return "TCMotor [motor_id=" + motor_id + ", manufacturer="\r
285                                 + manufacturer + ", manufacturer_abbr=" + manufacturer_abbr\r
286                                 + ", designation=" + designation + ", brand_name=" + brand_name\r
287                                 + ", common_name=" + common_name + ", impulse_class="\r
288                                 + impulse_class + ", diameter=" + diameter + ", length="\r
289                                 + length + ", type=" + type + ", cert_org=" + cert_org\r
290                                 + ", avg_thrust_n=" + avg_thrust_n + ", max_thrust_n="\r
291                                 + max_thrust_n + ", tot_impulse_ns=" + tot_impulse_ns\r
292                                 + ", burn_time_s=" + burn_time_s + ", data_files=" + data_files\r
293                                 + ", info_url=" + info_url + ", tot_mass_g=" + tot_mass_g\r
294                                 + ", prop_mass_g=" + prop_mass_g + ", delays=" + delays\r
295                                 + ", case_info=" + case_info + ", prop_info=" + prop_info\r
296                                 + ", updated_on=" + updated_on + "]";\r
297         }\r
298         \r
299 }\r