TaskConfig.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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. [JsonProperty("取水点")]
  110. public MissionPoint[] MissionPoints;
  111. [JsonProperty("下一个任务ID")]
  112. public string NextTaskId;
  113. }
  114. public class MHTask
  115. {
  116. [JsonProperty("任务信息")]
  117. public MissionInformation missionInformation;
  118. [JsonProperty("取水点")]
  119. public MissionPoint[] MissionPoints;
  120. [JsonProperty("下一个任务ID")]
  121. public string NextTaskId;
  122. }
  123. public class SeaSouJiuTask
  124. {
  125. [JsonProperty("任务信息")]
  126. public MissionInformation missionInformation;
  127. [JsonProperty("目标点ID")]
  128. public int TargetPointId;
  129. //搜索任务载荷
  130. [JsonProperty("搜索任务载荷")]
  131. public string SearchPayload;
  132. //搜索方式
  133. [JsonProperty("搜索方式")]
  134. public string SearchMode;
  135. //搜索扫视宽度
  136. [JsonProperty("搜索扫视宽度")]
  137. public double SearchWidth;
  138. //探测波长(m)
  139. [JsonProperty("探测波长(m)")]
  140. public double DetectionWavelength;
  141. //最小可检测信号(dBm)
  142. [JsonProperty("最小可检测信号(dBm)")]
  143. public double MinDetectionSignal;
  144. //雷达发射机发射信号功率(dBm)
  145. [JsonProperty("雷达发射机发射信号功率(dBm)")]
  146. public double RadarTransmitterPower;
  147. //发射天线增益(dB)
  148. [JsonProperty("发射天线增益(dB)")]
  149. public double TransmitAntennaGain;
  150. //接受天线增益(dB)
  151. [JsonProperty("接受天线增益(dB)")]
  152. public double ReceiveAntennaGain;
  153. //光电转塔水平范围
  154. [JsonProperty("光电转塔水平范围")]
  155. public double OpticalTowerHorizontalRange;
  156. //红外探测器视场角
  157. [JsonProperty("红外探测器视场角")]
  158. public double InfraredDetectorFieldAngle;
  159. //飞行高度
  160. [JsonProperty("飞行高度")]
  161. public double FlightHeight;
  162. [JsonProperty("下一个任务ID")]
  163. public string NextTaskId;
  164. }
  165. public class LandSouJiuTask
  166. {
  167. [JsonProperty("任务信息")]
  168. public MissionInformation missionInformation;
  169. [JsonProperty("目标点ID")]
  170. public int TargetPointId;
  171. //搜索任务载荷
  172. [JsonProperty("搜索任务载荷")]
  173. public string SearchPayload;
  174. //搜索方式
  175. [JsonProperty("搜索方式")]
  176. public string SearchMode;
  177. //搜索扫视宽度
  178. [JsonProperty("搜索扫视宽度")]
  179. public double SearchWidth;
  180. //探测波长(m)
  181. [JsonProperty("探测波长(m)")]
  182. public double DetectionWavelength;
  183. //最小可检测信号(dBm)
  184. [JsonProperty("最小可检测信号(dBm)")]
  185. public double MinDetectionSignal;
  186. //雷达发射机发射信号功率(dBm)
  187. [JsonProperty("雷达发射机发射信号功率(dBm)")]
  188. public double RadarTransmitterPower;
  189. //发射天线增益(dB)
  190. [JsonProperty("发射天线增益(dB)")]
  191. public double TransmitAntennaGain;
  192. //接受天线增益(dB)
  193. [JsonProperty("接受天线增益(dB)")]
  194. public double ReceiveAntennaGain;
  195. //光电转塔水平范围
  196. [JsonProperty("光电转塔水平范围")]
  197. public double OpticalTowerHorizontalRange;
  198. //红外探测器视场角
  199. [JsonProperty("红外探测器视场角")]
  200. public double InfraredDetectorFieldAngle;
  201. //飞行高度
  202. [JsonProperty("飞行高度")]
  203. public double FlightHeight;
  204. [JsonProperty("下一个任务ID")]
  205. public string NextTaskId;
  206. }
  207. public class MHTaskConfig
  208. {
  209. [JsonProperty("总灭火任务编号")]
  210. public int TotalMHId;
  211. [JsonProperty("火点ID")]
  212. public int FirePointId;
  213. [JsonProperty("执行次数")]
  214. public int RunTimes;
  215. [JsonProperty("吊桶洒水灭火任务")]
  216. public List<MHTask> mHTask = new List<MHTask>();
  217. [JsonProperty("机降灭火任务")]
  218. public List<DMMHTask> dMMHTask = new List<DMMHTask>();
  219. [JsonProperty("索滑降灭火任务")]
  220. public List<SHJTask> sHJTask = new List<SHJTask>();
  221. }
  222. public class TaskConfig
  223. {
  224. [JsonProperty("灭火任务")]
  225. public List<MHTaskConfig>mHTaskConfigs = new List<MHTaskConfig>();
  226. [JsonProperty("火场侦查任务")]
  227. public List<ZCTask>zCTask= new List<ZCTask>();
  228. [JsonProperty("防火巡护任务")]
  229. public List<XHTask> xHTask = new List<XHTask>();
  230. [JsonProperty("海上搜救任务")]
  231. public List<SeaSouJiuTask> seaSouJiuTasks = new List<SeaSouJiuTask>();
  232. [JsonProperty("陆上搜救任务")]
  233. public List<LandSouJiuTask> LandSouJiuTasks = new List<LandSouJiuTask>();
  234. }