using Ips.Library.Entity; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ips.Sps.Tools.TdmaCgs { public class TdmaCgViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; [DisplayName("文件1")] public string File1 { get; set; } [DisplayName("文件2")] public string File2 { get; set; } [DisplayName("文件时间")] public DateTime FileTime { get; set; } [DisplayName("文件时长")] public double FileTimeLen { get; set; } [DisplayName("计算类型")] public CorCalcType CalcType { get; set; } = CorCalcType.Cpu; [DisplayName("时隙文件")] public string SlotFile { get; set; } [DisplayName("采样率")] public double Fs { get; set; } = 0; [DisplayName("时差中心")] public double DtoCenter { get; set; } = 0; [DisplayName("时差范围")] public double DtoRange { get; set; } = 40000; [DisplayName("信噪比")] public double Snr { get; set; } = 14; [DisplayName("频差范围")] public int DfoRange { get; set; } = 16384; [DisplayName("时差限波")] public int DtoCorr { get; set; } = 0; [DisplayName("频差限波")] public int DfoCorr { get; set; } = 0; [DisplayName("时长门限")] public double MinTimeLen { get; set; } = 0; [DisplayName("参估列表")] public BindingList WorkItems { get; set; } = new BindingList(); } public class TdmaWorkItemViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public TdmaWorkItemViewModel() { //Dto = 0; //Dfo = 0; //Snr = 0; //UseTime = 0; } public bool Calced { get; set; } [DisplayName("用户ID")] public string UserId { get; set; } [DisplayName("MAC地址")] public string MacAddr { get; set; } [DisplayName("信号频点(MHz)")] public long FreqPoint { get; set; } [DisplayName("符号速率(Hz)")] public int Rate { get; set; } [DisplayName("时差(us)")] public double? Dto { get; set; } [DisplayName("频差(Hz)")] public double? Dfo { get; set; } [DisplayName("信噪比(dB)")] public double? Snr { get; set; } [DisplayName("耗时(s)")] public double? UseTime { get; set; } [DisplayName("消息")] public string Message { get; set; } [DisplayName("时隙列表")] public List SlotList { get; set; } = new List(); } public class TdmaSlotViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; [DisplayName("突发时间")] public DateTime SlotTime { get; set; } [DisplayName("突发纳秒")] public int SlotTimeNs { get; set; } [DisplayName("突发时长(ns)")] public long TimeLenNs { get; set; } } }