Aircraft.java 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.uavps.system.udp.vo;
  2. import java.math.BigDecimal;
  3. import java.math.RoundingMode;
  4. /**
  5. * @Author MBQ
  6. * @Date: 2025/1/15
  7. * @Description: 飞机
  8. * @Version: 1.0
  9. **/
  10. public class Aircraft {
  11. private String aircraftNumber;
  12. private String aircraftType;
  13. private double coordinateX;
  14. private double coordinateY;
  15. private double coordinateZ;
  16. private float velocityX;
  17. private float velocityY;
  18. private float velocityZ;
  19. private float velocity;
  20. private float aircraftPoseX;
  21. private float aircraftPoseY;
  22. private float aircraftPoseZ;
  23. private boolean piloted;
  24. private double longitude;
  25. private double latitude;
  26. private float altitude;
  27. private double eastSpeed;
  28. private double northSpeed;
  29. private double skySpeed;
  30. private String type;
  31. public String getAircraftNumber() {
  32. return aircraftNumber;
  33. }
  34. public void setAircraftNumber(String aircraftNumber) {
  35. this.aircraftNumber = aircraftNumber;
  36. }
  37. public double getCoordinateX() {
  38. BigDecimal bd = new BigDecimal(Double.toString(coordinateX));
  39. bd = bd.setScale(4, RoundingMode.HALF_UP);
  40. return bd.doubleValue();
  41. }
  42. public void setCoordinateX(double coordinateX) {
  43. this.coordinateX = coordinateX;
  44. }
  45. public double getCoordinateY() {
  46. BigDecimal bd = new BigDecimal(Double.toString(coordinateY));
  47. bd = bd.setScale(4, RoundingMode.HALF_UP);
  48. return bd.doubleValue();
  49. }
  50. public void setCoordinateY(double coordinateY) {
  51. this.coordinateY = coordinateY;
  52. }
  53. public double getCoordinateZ() {
  54. BigDecimal bd = new BigDecimal(Double.toString(coordinateZ));
  55. bd = bd.setScale(4, RoundingMode.HALF_UP);
  56. return bd.doubleValue();
  57. }
  58. public void setCoordinateZ(float coordinateZ) {
  59. this.coordinateZ = coordinateZ;
  60. }
  61. public float getVelocityX() {
  62. return velocityX;
  63. }
  64. public void setVelocityX(float velocityX) {
  65. this.velocityX = velocityX;
  66. }
  67. public float getVelocityY() {
  68. return velocityY;
  69. }
  70. public void setVelocityY(float velocityY) {
  71. this.velocityY = velocityY;
  72. }
  73. public float getVelocityZ() {
  74. return velocityZ;
  75. }
  76. public void setVelocityZ(float velocityZ) {
  77. this.velocityZ = velocityZ;
  78. }
  79. public float getVelocity() {
  80. return velocity;
  81. }
  82. public void setVelocity(float velocity) {
  83. this.velocity = velocity;
  84. }
  85. public float getAircraftPoseX() {
  86. return aircraftPoseX;
  87. }
  88. public void setAircraftPoseX(float aircraftPoseX) {
  89. this.aircraftPoseX = aircraftPoseX;
  90. }
  91. public float getAircraftPoseY() {
  92. return aircraftPoseY;
  93. }
  94. public void setAircraftPoseY(float aircraftPoseY) {
  95. this.aircraftPoseY = aircraftPoseY;
  96. }
  97. public float getAircraftPoseZ() {
  98. return aircraftPoseZ;
  99. }
  100. public void setAircraftPoseZ(float aircraftPoseZ) {
  101. this.aircraftPoseZ = aircraftPoseZ;
  102. }
  103. public boolean isPiloted() {
  104. return piloted;
  105. }
  106. public void setPiloted(boolean piloted) {
  107. this.piloted = piloted;
  108. }
  109. public double getLongitude() {
  110. return longitude;
  111. }
  112. public void setLongitude(double longitude) {
  113. this.longitude = longitude;
  114. }
  115. public double getLatitude() {
  116. return latitude;
  117. }
  118. public void setLatitude(double latitude) {
  119. this.latitude = latitude;
  120. }
  121. public float getAltitude() {
  122. return altitude;
  123. }
  124. public void setAltitude(float altitude) {
  125. this.altitude = altitude;
  126. }
  127. public double getEastSpeed() {
  128. return eastSpeed;
  129. }
  130. public void setEastSpeed(double eastSpeed) {
  131. this.eastSpeed = eastSpeed;
  132. }
  133. public double getNorthSpeed() {
  134. return northSpeed;
  135. }
  136. public void setNorthSpeed(double northSpeed) {
  137. this.northSpeed = northSpeed;
  138. }
  139. public double getSkySpeed() {
  140. return skySpeed;
  141. }
  142. public void setSkySpeed(double skySpeed) {
  143. this.skySpeed = skySpeed;
  144. }
  145. public String getType() {
  146. return type;
  147. }
  148. public void setType(String type) {
  149. this.type = type;
  150. }
  151. public String getAircraftType() {
  152. return aircraftType;
  153. }
  154. public void setAircraftType(String aircraftType) {
  155. this.aircraftType = aircraftType;
  156. }
  157. public void setCoordinateZ(double coordinateZ) {
  158. this.coordinateZ = coordinateZ;
  159. }
  160. @Override
  161. public String toString() {
  162. return "Aircraft{" +
  163. "aircraftNumber='" + aircraftNumber + '\'' +
  164. ", aircraftType='" + aircraftType + '\'' +
  165. ", coordinateX=" + coordinateX +
  166. ", coordinateY=" + coordinateY +
  167. ", coordinateZ=" + coordinateZ +
  168. ", velocityX=" + velocityX +
  169. ", velocityY=" + velocityY +
  170. ", velocityZ=" + velocityZ +
  171. ", velocity=" + velocity +
  172. ", aircraftPoseX=" + aircraftPoseX +
  173. ", aircraftPoseY=" + aircraftPoseY +
  174. ", aircraftPoseZ=" + aircraftPoseZ +
  175. ", piloted=" + piloted +
  176. ", longitude=" + longitude +
  177. ", latitude=" + latitude +
  178. ", altitude=" + altitude +
  179. ", eastSpeed=" + eastSpeed +
  180. ", northSpeed=" + northSpeed +
  181. ", skySpeed=" + skySpeed +
  182. ", type='" + type + '\'' +
  183. '}';
  184. }
  185. }