123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using KYFramework;
- using Model;
- namespace SimulationServer;
- public class SJStaticCapacity
- {
- // 初次出动准备时间
- public string 初次出动准备时间;
- //再次补给时间
- public string 再次补给时间;
- //舱内载荷
- public string 舱内载荷;
- //机舱容量
- public string 机舱容量;
- //最大平飞速度
- public string 最大平飞速度;
- //巡航速度
- public string 巡航速度;
- //搜救速度
- public string 搜救速度;
- //单人救助时间
- public string 单人救助时间;
- //抗风等级
- public string 抗风等级;
- //抗浪等级
- public string 抗浪等级;
- //起降距离
- public string 起降距离;
- //夜间作业能力
- public string 夜间作业能力;
- //仪表飞行能力
- public string 仪表飞行能力;
- //可靠性
- public string 可靠性;
- //航程
- public string 航程;
- //悬停相对耗油率
- public string 悬停相对耗油率;
- //最大悬停时间
- public string 搜救相对耗油率;
- //最大飞行时间
- public string 有效探测距离;
- }
- public class SJStaticCapacityComponent : Component
- {
- public SJStaticCapacity SJStaticCapacity = new SJStaticCapacity();
- public void FillData(AircraftDB db)
- {
- var aircraft = GetParent<AircraftSJ>();
-
- SJStaticCapacity.初次出动准备时间 = aircraft.TaskReadyTime.ToString();
- SJStaticCapacity.再次补给时间 = db.fjysj == null ? "0" : db.fjysj.ToString();
- SJStaticCapacity.舱内载荷 = db.fzdnz == null ? "0" : db.fzdnz.ToString();
- //SJStaticCapacity.机舱容量 = db.fjcrll == null ? "0" : db.fjcrll.ToString();
- SJStaticCapacity.最大平飞速度 = db.fzdss == null ? "0" : db.fzdss.ToString();
- SJStaticCapacity.巡航速度 = db.fzdss == null ? "0" : db.fzdss.ToString();
- //SJStaticCapacity.搜救速度 = db.fsjfxsd == null ? "0" : db.fsjfxsd.ToString();
- //SJStaticCapacity.单人救助时间 = db.fdrjzsj == null ? "0" : db.fdrjzsj.ToString();
- SJStaticCapacity.抗风等级 = "八级";
- //SJStaticCapacity.抗浪等级 = db.fkldj == null ? "0" : db.fkldj.ToString();
- SJStaticCapacity.起降距离 = db.fjjcdc == null ? "0" : db.fjjcdc.ToString();
- SJStaticCapacity.夜间作业能力 =0.ToString();
- SJStaticCapacity.仪表飞行能力 = 0.ToString();
- SJStaticCapacity.可靠性 = 0.ToString();
- //SJStaticCapacity.航程 = db.fhc == null ? "0" : db.fhc.ToString();
- SJStaticCapacity.悬停相对耗油率 = FXJHGenerate.GetHoverFuelConsumptionRate(aircraft.FlightPlanEditor, 50).ToString();
- SJStaticCapacity.搜救相对耗油率 = FXJHGenerate.GetCruisingVelocity(aircraft.FlightPlanEditor, 50).ToString();
- SJStaticCapacity.有效探测距离 = 2.ToString();
- }
- public Dictionary<string, Dictionary<string, string>> GetReport()
- {
- Dictionary<string, Dictionary<string, string>> report = new Dictionary<string, Dictionary<string, string>>();
- report["静态能力"] = new Dictionary<string, string>
- {
- { "初次出动准备时间/s", SJStaticCapacity.初次出动准备时间.ToString() },
- { "再次补给时间/s", SJStaticCapacity.再次补给时间.ToString() },
- { "舱内载荷/kg", SJStaticCapacity.舱内载荷.ToString() },
- { "机舱容量/kg", SJStaticCapacity.机舱容量.ToString() },
- { "最大平飞速度/m/s", SJStaticCapacity.最大平飞速度.ToString() },
- { "巡航速度/m/s", SJStaticCapacity.巡航速度.ToString() },
- { "搜救速度/m/s", SJStaticCapacity.搜救速度.ToString() },
- { "单人救助时间/s", SJStaticCapacity.单人救助时间.ToString() },
- { "抗风等级", SJStaticCapacity.抗风等级.ToString() },
- { "抗浪等级", SJStaticCapacity.抗浪等级.ToString() },
- { "起降距离/m", SJStaticCapacity.起降距离.ToString() },
- { "夜间作业能力", SJStaticCapacity.夜间作业能力.ToString() },
- { "仪表飞行能力", SJStaticCapacity.仪表飞行能力.ToString() },
- { "可靠性", SJStaticCapacity.可靠性.ToString() },
- { "航程/km", SJStaticCapacity.航程.ToString() },
- { "悬停相对耗油率", SJStaticCapacity.悬停相对耗油率.ToString() },
- { "搜救相对耗油率", SJStaticCapacity.搜救相对耗油率.ToString() },
- { "有效探测距离/m", SJStaticCapacity.有效探测距离.ToString() }
- };
- return report;
- }
-
- }
|