DGP - support for clusters(import and export); added thickness to tube coupler; clean...
[debian/openrocket] / core / src / net / sf / openrocket / file / rocksim / export / StreamerDTO.java
1 package net.sf.openrocket.file.rocksim.export;
2
3 import net.sf.openrocket.file.rocksim.RocksimCommonConstants;
4 import net.sf.openrocket.rocketcomponent.Streamer;
5
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlElement;
9 import javax.xml.bind.annotation.XmlRootElement;
10
11 /**
12  */
13 @XmlRootElement(name = RocksimCommonConstants.STREAMER)
14 @XmlAccessorType(XmlAccessType.FIELD)
15 public class StreamerDTO extends BasePartDTO {
16
17     @XmlElement(name = RocksimCommonConstants.WIDTH)
18         private double width = 0d;
19         @XmlElement(name = RocksimCommonConstants.DRAG_COEFFICIENT)
20         private double dragCoefficient = 0.75d;
21
22     public StreamerDTO() {
23     }
24
25     public StreamerDTO(Streamer ec) {
26         super(ec);
27         setWidth(ec.getStripWidth() * RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH);
28         setDragCoefficient(ec.getCD());
29     }
30
31     public double getWidth() {
32         return width;
33     }
34
35     public void setWidth(double theWidth) {
36         width = theWidth;
37     }
38
39     public double getDragCoefficient() {
40         return dragCoefficient;
41     }
42
43     public void setDragCoefficient(double theDragCoefficient) {
44         dragCoefficient = theDragCoefficient;
45     }
46 }