TaskConfig.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. using Newtonsoft.Json;
  2. namespace Model;
  3. public class MissionInformation
  4. {
  5. [JsonProperty("任务名称")]
  6. public string MissionName;
  7. [JsonProperty("任务ID")]
  8. public string MissionId;
  9. [JsonProperty("任务主要类型")]
  10. public string MissionMainType;
  11. [JsonProperty("任务类型")]
  12. public string MissionType;
  13. [JsonProperty("开始时间")]
  14. public string StartTime;
  15. [JsonProperty("结束时间")]
  16. public string EndTime;
  17. [JsonProperty("起飞准备时间")]
  18. public double TakeoffPreparationTime;
  19. [JsonProperty("应用机型")]
  20. public string[] AircraftInfos;
  21. [JsonProperty("应用飞机编号")]
  22. public string[] AircraftId;
  23. }
  24. public class MissionPoint
  25. {
  26. [JsonProperty("任务点经度")]
  27. public double MissionPointLongitude;
  28. [JsonProperty("任务点纬度")]
  29. public double MissionPointLatitude;
  30. [JsonProperty("任务点海拔")]
  31. public double MissionPointHeight;
  32. }
  33. public class ZCTask
  34. {
  35. [JsonProperty("任务信息")]
  36. public MissionInformation missionInformation;
  37. [JsonProperty("矩形侦查区域边界点")]
  38. public List<double[]> poly;
  39. [JsonProperty("扫描线间距")]
  40. public double ScanRange;
  41. [JsonProperty("侦查飞行真高")]
  42. public double hSC;
  43. [JsonProperty("是否真实高度")]
  44. public bool isRealHeight;
  45. [JsonProperty("是否环绕模式")]
  46. public bool isSurround;
  47. [JsonProperty("环绕圈数")]
  48. public int SurroundNum;
  49. [JsonProperty("火点ID")]
  50. public int FirePointId;
  51. public MissionPoint[] MissionPoints;
  52. [JsonProperty("下一个任务ID")]
  53. public string NextTaskId;
  54. }
  55. public class SHJTask
  56. {
  57. [JsonProperty("任务信息")]
  58. public MissionInformation missionInformation;
  59. [JsonProperty("索滑降高度")]
  60. public double H;
  61. [JsonProperty("投送人数")]
  62. public int person_number;
  63. [JsonProperty("风速")]
  64. public double windspeed;
  65. [JsonProperty("能见度")]
  66. public double vis;
  67. [JsonProperty("索滑降速度")]
  68. public double descendspeed;
  69. [JsonProperty("转运人数")]
  70. public int personNumber;
  71. [JsonProperty("索滑降点")]
  72. public MissionPoint[] MissionPoints;
  73. [JsonProperty("下一个任务ID")]
  74. public string NextTaskId;
  75. }
  76. public class DMMHTask
  77. {
  78. [JsonProperty("任务信息")]
  79. public MissionInformation missionInformation;
  80. [JsonProperty("地面部署人数")]
  81. public double GroundPersonnel;
  82. [JsonProperty("机降人数")]
  83. public double LandingPersonnel;
  84. [JsonProperty("机降点")]
  85. public MissionPoint[] MissionPoints;
  86. [JsonProperty("下一个任务ID")]
  87. public string NextTaskId;
  88. }
  89. public class AirRoute
  90. {
  91. [JsonProperty("巡护航线名称")]
  92. public string AirRouteName;
  93. [JsonProperty("巡护航线点经度")]
  94. public double AirRouteLongitude;
  95. [JsonProperty("巡护航线点纬度")]
  96. public double AirRouteLatitude;
  97. [JsonProperty("巡护航线点海拔")]
  98. public double AirRouteHeight;
  99. }
  100. public class XHTask
  101. {
  102. public double DelayTime;
  103. [JsonProperty("任务信息")]
  104. public MissionInformation missionInformation;
  105. [JsonProperty("巡护航线参数")]
  106. public AirRoute[] airroute;
  107. [JsonProperty("火点ID")]
  108. public int FirePointId;
  109. public MissionPoint[] MissionPoints;
  110. [JsonProperty("下一个任务ID")]
  111. public string NextTaskId;
  112. }
  113. public class MHTask
  114. {
  115. [JsonProperty("任务信息")]
  116. public MissionInformation missionInformation;
  117. [JsonProperty("取水点")]
  118. public MissionPoint[] MissionPoints;
  119. [JsonProperty("下一个任务ID")]
  120. public string NextTaskId;
  121. }
  122. public class SeaSouJiuTask
  123. {
  124. [JsonProperty("任务信息")]
  125. public MissionInformation missionInformation;
  126. [JsonProperty("目标点ID")]
  127. public int TargetPointId;
  128. //搜索任务载荷
  129. [JsonProperty("搜索任务载荷")]
  130. public string SearchPayload;
  131. //搜索方式
  132. [JsonProperty("搜索方式")]
  133. public string SearchMode;
  134. //搜索扫视宽度
  135. [JsonProperty("搜索扫视宽度")]
  136. public double SearchWidth;
  137. //探测波长(m)
  138. [JsonProperty("探测波长(m)")]
  139. public double DetectionWavelength;
  140. //最小可检测信号(dBm)
  141. [JsonProperty("最小可检测信号(dBm)")]
  142. public double MinDetectionSignal;
  143. //雷达发射机发射信号功率(dBm)
  144. [JsonProperty("雷达发射机发射信号功率(dBm)")]
  145. public double RadarTransmitterPower;
  146. //发射天线增益(dB)
  147. [JsonProperty("发射天线增益(dB)")]
  148. public double TransmitAntennaGain;
  149. //接受天线增益(dB)
  150. [JsonProperty("接受天线增益(dB)")]
  151. public double ReceiveAntennaGain;
  152. //光电转塔水平范围
  153. [JsonProperty("光电转塔水平范围")]
  154. public double OpticalTowerHorizontalRange;
  155. //红外探测器视场角
  156. [JsonProperty("红外探测器视场角")]
  157. public double InfraredDetectorFieldAngle;
  158. //飞行高度
  159. [JsonProperty("飞行高度")]
  160. public double FlightHeight;
  161. [JsonProperty("下一个任务ID")]
  162. public string NextTaskId;
  163. }
  164. public class MHTaskConfig
  165. {
  166. [JsonProperty("总灭火任务编号")]
  167. public int TotalMHId;
  168. [JsonProperty("火点ID")]
  169. public int FirePointId;
  170. [JsonProperty("执行次数")]
  171. public int RunTimes;
  172. [JsonProperty("吊桶洒水灭火任务")]
  173. public List<MHTask> mHTask = new List<MHTask>();
  174. [JsonProperty("机降灭火任务")]
  175. public List<DMMHTask> dMMHTask = new List<DMMHTask>();
  176. [JsonProperty("索滑降灭火任务")]
  177. public List<SHJTask> sHJTask = new List<SHJTask>();
  178. }
  179. public class TaskConfig
  180. {
  181. [JsonProperty("灭火任务")]
  182. public List<MHTaskConfig>mHTaskConfigs = new List<MHTaskConfig>();
  183. [JsonProperty("火场侦查任务")]
  184. public List<ZCTask>zCTask= new List<ZCTask>();
  185. [JsonProperty("防火巡护任务")]
  186. public List<XHTask> xHTask = new List<XHTask>();
  187. [JsonProperty("海上搜救任务")]
  188. public List<SeaSouJiuTask> seaSouJiuTasks = new List<SeaSouJiuTask>();
  189. }