MotionAO.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. using Prism.Mvvm;
  2. using SKMC.Api.Common.Types;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace SKMC.Api.Motion.Model
  9. {
  10. /// <summary>
  11. /// 模拟量模型
  12. /// </summary>
  13. public class MotionAO : BindableBase
  14. {
  15. private long _id;
  16. public long Id
  17. {
  18. get { return _id; }
  19. set { _id = value; RaisePropertyChanged(); }
  20. }
  21. private string _type;
  22. public string Type
  23. {
  24. get { return _type; }
  25. set { _type = value; RaisePropertyChanged(); }
  26. }
  27. private string _code;
  28. public string Code
  29. {
  30. get { return _code; }
  31. set { _code = value; RaisePropertyChanged(); }
  32. }
  33. private string _name;
  34. public string Name
  35. {
  36. get { return _name; }
  37. set { _name = value; RaisePropertyChanged(); }
  38. }
  39. private string catalog;
  40. /// <summary>
  41. /// 所在(模块)分类
  42. /// </summary>
  43. public string Catalog
  44. {
  45. get { return catalog; }
  46. set { catalog = value; RaisePropertyChanged(); }
  47. }
  48. private short _devNo;
  49. /// <summary>
  50. /// 设备序号
  51. /// </summary>
  52. public short DevNo
  53. {
  54. get { return _devNo; }
  55. set { _devNo = value; }
  56. }
  57. private short _siteNO;
  58. /// <summary>
  59. /// 在设备上的点位顺序, 从0开始
  60. /// </summary>
  61. public short SiteNo
  62. {
  63. get { return _siteNO; }
  64. set { _siteNO = value; }
  65. }
  66. private short _capacity;
  67. public short Capacity
  68. {
  69. get { return _capacity; }
  70. set { _capacity = value; }
  71. }
  72. private string _desc;
  73. public string Desc
  74. {
  75. get { return _desc; }
  76. set { _desc = value; RaisePropertyChanged(); }
  77. }
  78. private string _unit;
  79. /// <summary>
  80. /// 数值单位, eg: Kg/N/KPa...
  81. /// </summary>
  82. public string Unit
  83. {
  84. get { return _unit; }
  85. set { _unit = value; }
  86. }
  87. private decimal radio;
  88. /// <summary>
  89. /// 数值换算比率
  90. /// </summary>
  91. public decimal Radio
  92. {
  93. get { return radio; }
  94. set { radio = value; RaisePropertyChanged(); }
  95. }
  96. private int offset;
  97. /// <summary>
  98. /// 补偿值 (在比率换算后补偿)
  99. /// </summary>
  100. public int Offset
  101. {
  102. get { return offset; }
  103. set { offset = value; RaisePropertyChanged(); }
  104. }
  105. private TimestampSet timestampSet;
  106. /// <summary>
  107. /// 时间戳数据集
  108. /// </summary>
  109. public TimestampSet TimestampSet
  110. {
  111. get { return timestampSet; }
  112. set { timestampSet = value; }
  113. }
  114. }
  115. }