1 package net.sf.openrocket.file.rocksim.export;
3 import net.sf.openrocket.file.rocksim.RocksimCommonConstants;
4 import net.sf.openrocket.rocketcomponent.Streamer;
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;
13 @XmlRootElement(name = RocksimCommonConstants.STREAMER)
14 @XmlAccessorType(XmlAccessType.FIELD)
15 public class StreamerDTO extends BasePartDTO {
17 @XmlElement(name = RocksimCommonConstants.WIDTH)
18 private double width = 0d;
19 @XmlElement(name = RocksimCommonConstants.DRAG_COEFFICIENT)
20 private double dragCoefficient = 0.75d;
22 public StreamerDTO() {
25 public StreamerDTO(Streamer ec) {
27 setWidth(ec.getStripWidth() * RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH);
28 setDragCoefficient(ec.getCD());
31 public double getWidth() {
35 public void setWidth(double theWidth) {
39 public double getDragCoefficient() {
40 return dragCoefficient;
43 public void setDragCoefficient(double theDragCoefficient) {
44 dragCoefficient = theDragCoefficient;