123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using KYFramework;
- using Model;
- using SimulationServer.Utils;
- namespace SimulationServer;
- public class AircraftEntity : Entity
- {
- public string TaskName { get; set; }
- public string Name { get; set; }
- public string AircraftId { get; set; }
- public string AircraftIndex { get; set; }
- public string Type { get; set; }
- public AircraftDB Db { get; set; }
- public FlightPlanEditor? FlightPlanEditor { get; set; }
- public string Airport { get; set; }
- public double T { get; set; }
- public double TotalFuelConsumption { get; set; }
- public double FirstTime { get; set; }
- public double TaskResponseTime { get; set; } = 600;
- public double EffMisTime { get; set; }
- public YLDBData ylDb { get; set; }
-
- public double SearchTime { get; set; }
- public double TotalTime { get; set; }
- public double TaskReadyTime { get; set; }
- public bool SyncOver { get; set; }
- public double[] Velocitys = new double[5] { 220, 220, 220, 110, 0 };
- public double[] FuelConsumptions = new double[5] { 2800, 2800, 2800, 1000, 132 };
- public List<TurningPoint> TurningPoints = new List<TurningPoint>();
- public void Awake()
- {
- Db = Util.GetAircraftDefine(FlightPlanEditor.aircraftparameter.AircraftType, FlightPlanEditor.aircraftparameter.AircraftSubType, FlightPlanEditor.aircraftparameter.AircraftID);
-
- if (Db.f_zdqfzl != null)
- FlightPlanEditor.aircraftparameter.MaxTakeoffWeight = double.Parse(Db.f_zdqfzl.ToString());
- else
- FlightPlanEditor.aircraftparameter.MaxTakeoffWeight = 8000;
- if (Db.f_zdzkl != null)
- FlightPlanEditor.aircraftparameter.MaxPassengerNumber = double.Parse(Db.f_zdzkl.ToString());
- else
- FlightPlanEditor.aircraftparameter.MaxPassengerNumber = 20;
- }
- public virtual void Reset()
- {
- T = 0;
- EffMisTime = 0;
- FirstTime = 0;
- TotalFuelConsumption = 0;
- TaskResponseTime = 0;
- TurningPoints = new List<TurningPoint>();
- }
- public virtual void Start()
- {
- }
- public virtual void Update(double time)
- {
- }
- public virtual void End()
- {
- }
- }
|