PredictDataModel.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 GDNXFD.Data
  8. {
  9. [DataContract]
  10. public class PredictDataModel
  11. {
  12. //风场ID
  13. [DataMember]
  14. public string StationId { get; set; }
  15. //测点名
  16. [DataMember]
  17. public string TestingPoint { get; set; }
  18. //测点统一编码(D)
  19. [DataMember]
  20. public string UniformCode { get; set; }
  21. //点类型: DQ -- 短期 , CDQ -- 超短期
  22. [DataMember]
  23. public string Type { get; set; }
  24. //时间
  25. [DataMember]
  26. public DateTime FutureTime { get; set; }
  27. //预测功率
  28. [DataMember]
  29. public double PredictPower { get; set; }
  30. //预测功率
  31. [DataMember]
  32. public double CDQPredictPower { get; set; }
  33. //实际功率
  34. [DataMember]
  35. public double FactPower { get; set; }
  36. //保证功率
  37. [DataMember]
  38. public double EnsurePower { get; set; }
  39. //自算功率
  40. [DataMember]
  41. public double FittingPower { get; set; }
  42. //预测(反推)风速
  43. [DataMember]
  44. public double PredictWindSpeed { get; set; }
  45. //超短期预测(反推)风速
  46. [DataMember]
  47. public double CDQPredictWindSpeed { get; set; }
  48. //实际风速
  49. [DataMember]
  50. public double FactWindSpeed { get; set; }
  51. //预测功率拟合
  52. [DataMember]
  53. public double PredictPowerFitting { get; set; }
  54. public override bool Equals(object obj)
  55. {
  56. if (obj == null)
  57. return false;
  58. if (this.GetType() != obj.GetType())
  59. return false;
  60. return Equals(obj as PredictDataModel);
  61. }
  62. private bool Equals(PredictDataModel p)
  63. {
  64. return (this.TestingPoint == p.TestingPoint);
  65. }
  66. public override int GetHashCode()
  67. {
  68. if (string.IsNullOrEmpty(this.TestingPoint))
  69. return 0;
  70. return this.TestingPoint.GetHashCode();
  71. }
  72. }
  73. }