1 package net.sf.openrocket.android.thrustcurve;
\r
3 import java.util.Date;
\r
4 import java.util.Vector;
\r
6 public class TCMotor implements Cloneable {
\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
33 public void init() {
\r
35 manufacturer = null;
\r
36 manufacturer_abbr = null;
\r
40 impulse_class = null;
\r
45 avg_thrust_n = null;
\r
46 max_thrust_n = null;
\r
47 tot_impulse_ns = null;
\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
90 public Integer getMotor_id() {
\r
94 public void setMotor_id(Integer motor_id) {
\r
95 this.motor_id = motor_id;
\r
98 public String getManufacturer() {
\r
99 return manufacturer;
\r
102 public void setManufacturer(String manufacturer) {
\r
103 this.manufacturer = manufacturer;
\r
106 public String getManufacturer_abbr() {
\r
107 return manufacturer_abbr;
\r
110 public void setManufacturer_abbr(String manufacturer_abbr) {
\r
111 this.manufacturer_abbr = manufacturer_abbr;
\r
114 public String getDesignation() {
\r
115 return designation;
\r
118 public void setDesignation(String designation) {
\r
119 this.designation = designation;
\r
122 public String getBrand_name() {
\r
126 public void setBrand_name(String brand_name) {
\r
127 this.brand_name = brand_name;
\r
130 public String getCommon_name() {
\r
131 return common_name;
\r
134 public void setCommon_name(String common_name) {
\r
135 this.common_name = common_name;
\r
138 public String getImpulse_class() {
\r
139 return impulse_class;
\r
142 public void setImpulse_class(String impulse_class) {
\r
143 this.impulse_class = impulse_class;
\r
146 public Float getDiameter() {
\r
150 public void setDiameter(Float diameter) {
\r
151 this.diameter = diameter;
\r
154 public Float getLength() {
\r
158 public void setLength(Float length) {
\r
159 this.length = length;
\r
162 public String getType() {
\r
166 public void setType(String type) {
\r
170 public String getCert_org() {
\r
174 public void setCert_org(String cert_org) {
\r
175 this.cert_org = cert_org;
\r
178 public Float getAvg_thrust_n() {
\r
179 return avg_thrust_n;
\r
182 public void setAvg_thrust_n(Float avg_thrust_n) {
\r
183 this.avg_thrust_n = avg_thrust_n;
\r
186 public Float getMax_thrust_n() {
\r
187 return max_thrust_n;
\r
190 public void setMax_thrust_n(Float max_thrust_n) {
\r
191 this.max_thrust_n = max_thrust_n;
\r
194 public Float getTot_impulse_ns() {
\r
195 return tot_impulse_ns;
\r
198 public void setTot_impulse_ns(Float tot_impulse_ns) {
\r
199 this.tot_impulse_ns = tot_impulse_ns;
\r
202 public Float getBurn_time_s() {
\r
203 return burn_time_s;
\r
206 public void setBurn_time_s(Float burn_time_s) {
\r
207 this.burn_time_s = burn_time_s;
\r
210 public Integer getData_files() {
\r
214 public void setData_files(Integer data_files) {
\r
215 this.data_files = data_files;
\r
218 public String getInfo_url() {
\r
222 public void setInfo_url(String info_url) {
\r
223 this.info_url = info_url;
\r
226 public Double getTot_mass_g() {
\r
230 public void setTot_mass_g(Double tot_mass_g) {
\r
231 this.tot_mass_g = tot_mass_g;
\r
234 public Double getProp_mass_g() {
\r
235 return prop_mass_g;
\r
238 public void setProp_mass_g(Double prop_mass_g) {
\r
239 this.prop_mass_g = prop_mass_g;
\r
242 public String getDelays() {
\r
246 public void setDelays(String delays) {
\r
247 this.delays = delays;
\r
250 public String getCase_info() {
\r
254 public void setCase_info(String case_info) {
\r
255 this.case_info = case_info;
\r
258 public String getProp_info() {
\r
262 public void setProp_info(String prop_info) {
\r
263 this.prop_info = prop_info;
\r
266 public Date getUpdated_on() {
\r
270 public void setUpdated_on(Date updated_on) {
\r
271 this.updated_on = updated_on;
\r
274 public Vector<Double> getBurndata() {
\r
278 public void setBurndata(Vector<Double> burndata) {
\r
279 this.burndata = burndata;
\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