EditorConfig.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. using Model;
  2. using Newtonsoft.Json;
  3. public class Base
  4. {
  5. [JsonProperty("基地名称")]
  6. public string BaseName;
  7. [JsonProperty("位置信息")]
  8. public string BasePositionInfo;
  9. [JsonProperty("基地编号")]
  10. public int BaseId;
  11. [JsonProperty("基地经度")]
  12. public double BaseLongitude;
  13. [JsonProperty("基地纬度")]
  14. public double BaseLatitude;
  15. [JsonProperty("基地海拔")]
  16. public double BaseHeight;
  17. }
  18. public struct AircraftParameter
  19. {
  20. [JsonProperty("机型")]
  21. public string AircraftID;
  22. [JsonProperty("飞机编号")]
  23. public string Id;//如1-2,1表示基地1,2表示基地1中的2号飞机
  24. [JsonProperty("类型")]
  25. public string AircraftType;
  26. [JsonProperty("子类型")]
  27. public string AircraftSubType;
  28. [JsonProperty("所属机场ID")]
  29. public int AirportId;
  30. [JsonProperty("状态")]
  31. public string AircraftState;
  32. [JsonProperty("已连续工作时间")]
  33. public double AircraftRunTime;
  34. [JsonProperty("任务载荷型号")]
  35. public TaskLoadType taskLoadType;
  36. [JsonProperty("最大起飞重量")]
  37. public double MaxTakeoffWeight;
  38. [JsonProperty("最大载油量")]
  39. public double MaxFuelCapacity;
  40. [JsonProperty("最大载客数量")]
  41. public double MaxPassengerNumber;
  42. }
  43. public class TaskLoadType
  44. {
  45. [JsonProperty("雷达设备")]
  46. public string RadarEquipment;
  47. [JsonProperty("光电探测设备")]
  48. public string PhotoelectricDetectionEquipment;
  49. }
  50. public class FirePoint
  51. {
  52. [JsonProperty("火点ID")]
  53. public int FirePointId;
  54. [JsonProperty("火点经度")]
  55. public double FirePointLongitude;
  56. [JsonProperty("火点纬度")]
  57. public double FirePointLatitude;
  58. [JsonProperty("火点海拔")]
  59. public double FirePointHeight;
  60. [JsonProperty("初始火场面积")]
  61. public double InitialArea;
  62. [JsonProperty("初始火线长度")]
  63. public double fireLength;
  64. }
  65. public class TargetPoint//搜救目标点初始坐标
  66. {
  67. [JsonProperty("目标点ID")]
  68. public int TargetPointId;
  69. [JsonProperty("目标点经度")]
  70. public double TargetPointLongitude;
  71. [JsonProperty("目标点纬度")]
  72. public double TargetPointLatitude;
  73. [JsonProperty("目标点海拔")]
  74. public double TargetPointHeight;
  75. [JsonProperty("目标类型")]
  76. public TargetType TargetType;
  77. }
  78. public class TargetType
  79. {
  80. [JsonProperty("类型")]
  81. public string Type;
  82. [JsonProperty("目标大小")]
  83. public string Size;
  84. [JsonProperty("目标吨位")]
  85. public string Tonnage;
  86. }
  87. public class ClimbSegment
  88. {
  89. [JsonProperty("爬升段速度")]
  90. public double ClimbVelocity;
  91. [JsonProperty("爬升段油耗率")]
  92. public double ClimbFuelConsumptionRate;
  93. }
  94. public class DescentSegment
  95. {
  96. [JsonProperty("下降段速度")]
  97. public double DescentVelocity;
  98. [JsonProperty("下降段油耗率")]
  99. public double DescentFuelConsumptionRate;
  100. }
  101. public class CruiseSegment
  102. {
  103. [JsonProperty("巡航段高度")]
  104. public double CruiseHeight = 2000;
  105. [JsonProperty("巡航段速度")]
  106. public double CruiseVelocity;
  107. [JsonProperty("巡航段油耗率")]
  108. public double CruiseFuelConsumptionRate;
  109. }
  110. public struct CityWeather
  111. {
  112. [JsonProperty("调用方式")]
  113. public string CallMethod;
  114. [JsonProperty("温度")]
  115. public double Temperature;
  116. //能见度
  117. [JsonProperty("能见度")]
  118. public double Visibility;
  119. //水温
  120. [JsonProperty("水温")]
  121. public double WaterTemperature;
  122. }
  123. public struct ScenarioInfo
  124. {
  125. [JsonProperty("想定日期")]
  126. public string Data;
  127. [JsonProperty("想定时间")]
  128. public string Time;
  129. }
  130. public class EditorConfig
  131. {
  132. [JsonProperty("仿真次数")]
  133. public int runCounts;
  134. [JsonProperty("想定信息")]
  135. public ScenarioInfo scenarioInfo = new ScenarioInfo();
  136. [JsonProperty("基地信息")]
  137. public List<Base> bases = new List<Base>();
  138. [JsonProperty("飞行器信息")]
  139. public List<AircraftParameter>aircraftParameters = new List<AircraftParameter>();
  140. [JsonProperty("火点")]
  141. public List<FirePoint> firePoints = new List<FirePoint>();
  142. [JsonProperty("天气信息")]
  143. public CityWeather cityWeather = new CityWeather();
  144. [JsonProperty("搜救目标点初始坐标")]
  145. public List<TargetPoint> targetPoints = new List<TargetPoint>();
  146. }