using Ips.Library.Entity; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Ips.CorTool.ViewModels { public class SettingViewModel : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; [Display(Name = "自动清理参估结果")] public bool AutoClearCafResult { get; set; } [Display(Name = "CPU最大样点数")] public int CafCpuMaxSamples { get; set; } /// /// 频差中心 /// [Display(Name = "频差中心")] public double DfoCenter { get; set; } /// /// 频差范围 /// [Display(Name = "频差范围")] public double DfoRange { get; set; } /// /// 时差陷波 /// [Display(Name = "时差陷波")] public double DtoCorr { get; set; } /// /// 频差陷波 /// [Display(Name = "频差陷波")] public double DfoCorr { get; set; } /// /// 参估带宽 /// [Display(Name = "参估带宽")] public int CafBandWidth { get; set; } /// /// 线程数 /// [Display(Name = "线程数")] public int ThreadNum { get; set; } /// /// 偏移类型 /// [Display(Name = "偏移类型")] public CorOffsetType OffsetType { get; set; } /// /// 采样类型 /// [Display(Name = "采样类型")] public SampleType FsType { get; set; } /// /// 倍速处理,1为原始速度 19200时建议4倍 96000使用2倍 /// [Display(Name = "倍速处理", Description = "1为原始速度 19200时建议4倍 96000使用2倍")] public int Sparese { get; set; } = 2; /// /// 是否包含ccow /// [Display(Name = "包含ccow")] public bool Ccow { get; set; } = true; /// /// 是否使用full检测 /// [Display(Name = "Full检测")] public bool Full { get; set; } = false; [Display(Name = "检测带宽")] public int NotDmDetBandWidth { get; set; } = 25000; /// /// 能量门限 /// [Display(Name = "能量门限")] public int AverageCnt { get; set; } = 5; } }