WindturbineSuggestion.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace NEIntelligentControl2.Models.Windturbine
  7. {
  8. /// <summary>
  9. /// 推荐风机
  10. /// </summary>
  11. public class WindturbineSuggestion
  12. {
  13. /// <summary>
  14. /// 风机编号
  15. /// </summary>
  16. public string WindturbineId { get; set; }
  17. /// <summary>
  18. /// 推荐操作
  19. /// </summary>
  20. public string OperateStyle { get; set; }
  21. private OperateStyle operateStyle;
  22. /// <summary>
  23. /// 推荐操作类型
  24. /// </summary>
  25. public OperateStyle OperateType
  26. {
  27. get
  28. {
  29. if (operateStyle != Windturbine.OperateStyle.Nothing) return operateStyle;
  30. try
  31. {
  32. Enum.TryParse(OperateStyle, out operateStyle);
  33. }
  34. catch { }
  35. return operateStyle;
  36. }
  37. }
  38. public string Reason { get; set; }
  39. }
  40. /// <summary>
  41. /// 启停推荐数据来源
  42. /// </summary>
  43. public enum CalcSource
  44. {
  45. /// <summary>
  46. /// 为止
  47. /// </summary>
  48. Unknow,
  49. /// <summary>
  50. /// 实时状态计算
  51. /// </summary>
  52. RealTimeStatus,
  53. /// <summary>
  54. /// 报警
  55. /// </summary>
  56. Alarm,
  57. /// <summary>
  58. /// 风功率预测
  59. /// </summary>
  60. PowerForecast,
  61. /// <summary>
  62. /// 健康管理
  63. /// </summary>
  64. HealthyManage,
  65. }
  66. }