12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using KYFramework;
- using Model;
- namespace SimulationServer;
- public class XHEconomical
- {
- public string 单机飞行员人数;
- public string 单机飞行工程师人数;
- public string 单机地面保障人数;
- public string 单机总任务时长;
- public string 单机总油耗;
- public string 单机机场使用情况;
- public string 单机导航使用情况;
- }
- public class XHEconomicalComponent : Component
- {
- public XHEconomical XhEconomical = new XHEconomical();
-
- public void FillData(AircraftDB db)
- {
- var aircraft = GetParent<AircraftXH>();
- XhEconomical.单机飞行员人数 = "1";
- XhEconomical.单机飞行工程师人数 = "1";
- XhEconomical.单机地面保障人数 = "2";
- XhEconomical.单机总任务时长 = GetParent<AircraftXH>().TotalTime.ToString();
- XhEconomical.单机总油耗 = GetParent<AircraftXH>().TotalFuelConsumption.ToString();
- XhEconomical.单机机场使用情况 = "自有";
- XhEconomical.单机导航使用情况 = "0";
- }
-
- public Dictionary<string, Dictionary<string, string>> GetReport()
- {
- Dictionary<string, Dictionary<string, string>> report = new Dictionary<string, Dictionary<string, string>>();
- report["经济性"] = new Dictionary<string, string>
- {
- { "单机飞行员人数/人", XhEconomical.单机飞行员人数.ToString() },
- { "单机飞行工程师人数/人", XhEconomical.单机飞行工程师人数.ToString() },
- { "单机地面保障人数/人", XhEconomical.单机地面保障人数.ToString() },
- { "单机总任务时长/s", XhEconomical.单机总任务时长.ToString() },
- { "单机总油耗/kg", XhEconomical.单机总油耗.ToString() },
- { "单机机场使用情况/-", XhEconomical.单机机场使用情况.ToString() },
- { "单机导航使用情况/-", XhEconomical.单机导航使用情况.ToString() }
- };
- return report;
- }
- }
|