SettingViewModel.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using Ips.Library.Entity;
  2. using System.ComponentModel;
  3. using System.ComponentModel.DataAnnotations;
  4. namespace Ips.CorTool.ViewModels
  5. {
  6. public class SettingViewModel : INotifyPropertyChanged
  7. {
  8. public event PropertyChangedEventHandler PropertyChanged;
  9. [Display(Name = "自动清理参估结果")]
  10. public bool AutoClearCafResult { get; set; }
  11. [Display(Name = "CPU最大样点数")]
  12. public int CafCpuMaxSamples { get; set; }
  13. /// <summary>
  14. /// 频差中心
  15. /// </summary>
  16. [Display(Name = "频差中心")]
  17. public double DfoCenter { get; set; }
  18. /// <summary>
  19. /// 频差范围
  20. /// </summary>
  21. [Display(Name = "频差范围")]
  22. public double DfoRange { get; set; }
  23. /// <summary>
  24. /// 时差陷波
  25. /// </summary>
  26. [Display(Name = "时差陷波")]
  27. public double DtoCorr { get; set; }
  28. /// <summary>
  29. /// 频差陷波
  30. /// </summary>
  31. [Display(Name = "频差陷波")]
  32. public double DfoCorr { get; set; }
  33. /// <summary>
  34. /// 参估带宽
  35. /// </summary>
  36. [Display(Name = "参估带宽")]
  37. public int CafBandWidth { get; set; }
  38. /// <summary>
  39. /// 线程数
  40. /// </summary>
  41. [Display(Name = "线程数")]
  42. public int ThreadNum { get; set; }
  43. /// <summary>
  44. /// 偏移类型
  45. /// </summary>
  46. [Display(Name = "偏移类型")]
  47. public CorOffsetType OffsetType { get; set; }
  48. /// <summary>
  49. /// 采样类型
  50. /// </summary>
  51. [Display(Name = "采样类型")]
  52. public SampleType FsType { get; set; }
  53. /// <summary>
  54. /// 倍速处理,1为原始速度 19200时建议4倍 96000使用2倍
  55. /// </summary>
  56. [Display(Name = "倍速处理", Description = "1为原始速度 19200时建议4倍 96000使用2倍")]
  57. public int Sparese { get; set; } = 2;
  58. /// <summary>
  59. /// 是否包含ccow
  60. /// </summary>
  61. [Display(Name = "包含ccow")]
  62. public bool Ccow { get; set; } = true;
  63. /// <summary>
  64. /// 是否使用full检测
  65. /// </summary>
  66. [Display(Name = "Full检测")]
  67. public bool Full { get; set; } = false;
  68. [Display(Name = "检测带宽")]
  69. public int NotDmDetBandWidth { get; set; } = 25000;
  70. /// <summary>
  71. /// 能量门限
  72. /// </summary>
  73. [Display(Name = "能量门限")]
  74. public int AverageCnt { get; set; } = 5;
  75. }
  76. }