PointMapModel.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace IntelligentControlForsx.Model
  8. {
  9. public class PointMapModel
  10. {
  11. //对象类型
  12. public PointType ThingType { get; set; }
  13. //对象ID
  14. public string ThingId { get; set; }
  15. //测点数据类型, AI or DI
  16. public PointDataType DataType { get; set; }
  17. //统一编码
  18. public string UniformCode { get; set; }
  19. //测点命称
  20. public string PointName { get; set; }
  21. //测点ID
  22. public string PointId { get; set; }
  23. //测点的值(上次更新时)
  24. public double Value { get; set; }
  25. public override bool Equals(object obj)
  26. {
  27. PointMapModel pmm = obj as PointMapModel;
  28. if (pmm != null &&
  29. pmm.ThingId == this.ThingId &&
  30. pmm.ThingType == this.ThingType &&
  31. pmm.UniformCode == this.UniformCode)
  32. {
  33. return true;
  34. }
  35. return false;
  36. }
  37. }
  38. }