WindturbineState.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. using NEIntelligentControl2.Models.Attributes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.Json.Serialization;
  7. using System.Threading.Tasks;
  8. namespace NEIntelligentControl2.Models.Windturbine
  9. {
  10. /// <summary>
  11. /// 风机状态
  12. /// </summary>
  13. public enum WindturbineState
  14. {
  15. /// <summary>
  16. /// 已经停机
  17. /// </summary>
  18. Stoped = 0,
  19. /// <summary>
  20. /// 上电
  21. /// </summary>
  22. PowerOn = 1,
  23. /// <summary>
  24. /// 待机
  25. /// </summary>
  26. Standby = 2,
  27. /// <summary>
  28. /// 启动
  29. /// </summary>
  30. StartUp = 3,
  31. /// <summary>
  32. /// 并网
  33. /// </summary>
  34. GridConnected = 4,
  35. /// <summary>
  36. /// 故障
  37. /// </summary>
  38. Malfunction = 5,
  39. /// <summary>
  40. /// 维护
  41. /// </summary>
  42. Maintain = 6,
  43. /// <summary>
  44. /// 离线
  45. /// </summary>
  46. Offline = 7
  47. }
  48. /// <summary>
  49. /// 操作类型
  50. /// </summary>
  51. [JsonConverter(typeof(JsonStringEnumConverter))]
  52. public enum OperateStyle
  53. {
  54. /// <summary>
  55. /// 未知操作
  56. /// </summary>
  57. [StringValue("无")]
  58. Nothing = 0,
  59. /// <summary>
  60. /// 启动
  61. /// </summary>
  62. [StringValue("启动")]
  63. Start = 1,
  64. /// <summary>
  65. /// 停机
  66. /// </summary>
  67. [StringValue("停机")]
  68. Stop = 2,
  69. /// <summary>
  70. /// 限转速
  71. /// </summary>
  72. [StringValue("限转速")]
  73. LimitSpeed = 3,
  74. /// <summary>
  75. /// 限功率
  76. /// </summary>
  77. [StringValue("限功率")]
  78. LimitPower = 4,
  79. /// <summary>
  80. /// 复位
  81. /// </summary>
  82. [StringValue("复位")]
  83. Reset = 5,
  84. /// <summary>
  85. /// 维护
  86. /// </summary>
  87. [StringValue("维护")]
  88. Maintain = 6,
  89. /// <summary>
  90. /// 恢复满发
  91. /// </summary>
  92. [StringValue("恢复满发")]
  93. ResetMax = 7,
  94. /// <summary>
  95. /// 取消维护
  96. /// </summary>
  97. [StringValue("取消维护")]
  98. UnMaintain = 8,
  99. /// <summary>
  100. /// 挂牌
  101. /// </summary>
  102. [StringValue("挂牌")]
  103. Lock = 9,
  104. /// <summary>
  105. /// 取消挂牌
  106. /// </summary>
  107. [StringValue("取消挂牌")]
  108. UnLock = 10,
  109. /// <summary>
  110. /// 未知
  111. /// </summary>
  112. [StringValue("未知")]
  113. Unknow = 11
  114. }
  115. /// <summary>
  116. /// 挂牌类型
  117. /// </summary>
  118. [JsonConverter(typeof(JsonStringEnumConverter))]
  119. public enum HungType
  120. {
  121. /// <summary>
  122. /// 正常(未挂牌)
  123. /// </summary>
  124. [StringValue("未挂牌")]
  125. UnLock = 0,
  126. /// <summary>
  127. /// 场内受累检修
  128. /// </summary>
  129. [StringValue("场内受累检修")]
  130. StationCheckLock = 2,
  131. /// <summary>
  132. /// 场内受累故障
  133. /// </summary>
  134. [StringValue("场内受累故障")]
  135. StationFaulLock = 3,
  136. /// <summary>
  137. /// 场外受累电网
  138. /// </summary>
  139. [StringValue("场外受累电网")]
  140. StationPowerLineLock = 4,
  141. /// <summary>
  142. /// 场外受累天气
  143. /// </summary>
  144. [StringValue("场外受累天气")]
  145. StationWeatherLock = 5,
  146. /// <summary>
  147. /// 故障检修
  148. /// </summary>
  149. [StringValue("故障检修")]
  150. FaultLock = 7,
  151. /// <summary>
  152. /// 检修
  153. /// </summary>
  154. [StringValue("检修")]
  155. CheckLock = 8,
  156. /// <summary>
  157. /// 自定义挂牌
  158. /// </summary>
  159. [StringValue("自定义挂牌")]
  160. CustomerLock = 9,
  161. /// <summary>
  162. /// 未知
  163. /// </summary>
  164. [StringValue("未知")]
  165. UnKnow = 10
  166. }
  167. /// <summary>
  168. /// 状态时间对应状态
  169. /// </summary>
  170. public enum StateTimes
  171. {
  172. /// <summary>
  173. /// 停机 0
  174. /// </summary>
  175. [StringValue("停机")]
  176. Stop,
  177. /// <summary>
  178. /// 上电 1
  179. /// </summary>
  180. [StringValue("上电")]
  181. OnPower,
  182. /// <summary>
  183. /// 待机 2
  184. /// </summary>
  185. [StringValue("待机")]
  186. Standby,
  187. /// <summary>
  188. /// 启动 3
  189. /// </summary>
  190. [StringValue("启动")]
  191. Start,
  192. /// <summary>
  193. /// 并网 4
  194. /// </summary>
  195. [StringValue("并网")]
  196. Online,
  197. /// <summary>
  198. /// 故障 5
  199. /// </summary>
  200. [StringValue("故障")]
  201. Fault,
  202. /// <summary>
  203. /// 维护 6
  204. /// </summary>
  205. [StringValue("维护")]
  206. Maintain,
  207. /// <summary>
  208. /// 离线 7
  209. /// </summary>
  210. [StringValue("离线")]
  211. Offline
  212. }
  213. }