WindturbineFormData.cs 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Runtime.CompilerServices;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace IntelligentControlForsx.Service.WindturbineControl.Domain.FormInfo
  9. {
  10. public class WindturbineFormData : INotifyPropertyChanged
  11. {
  12. public event PropertyChangedEventHandler PropertyChanged;
  13. private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
  14. {
  15. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  16. }
  17. public WindturbineFormData(string windturbineId,
  18. string windSpeed,
  19. string power,
  20. string statusString,
  21. string hungTypeString,
  22. string alternatorSpeed,
  23. string laminaSpeed,
  24. string limitSpeed,
  25. string laminaAngle1,
  26. string laminaAngle2,
  27. string laminaAngle3,
  28. string windAngle,
  29. string yawPosition
  30. )
  31. {
  32. this.windturbineId = windturbineId;
  33. this.windSpeed = windSpeed;
  34. this.power = power;
  35. this.statusString = statusString;
  36. this.hungTypeString = hungTypeString;
  37. this.alternatorSpeed = alternatorSpeed;
  38. this.laminaSpeed = laminaSpeed;
  39. this.limitSpeed = limitSpeed;
  40. this.laminaAngle1 = laminaAngle1;
  41. this.laminaAngle2 = laminaAngle2;
  42. this.laminaAngle3 = laminaAngle3;
  43. this.windAngle = windAngle;
  44. this.yawPosition = yawPosition;
  45. }
  46. private string windturbineId = "";
  47. /// <summary>
  48. /// 风机编号
  49. /// </summary>
  50. public string WindturbineId
  51. {
  52. get { return this.windturbineId; }
  53. set
  54. {
  55. if (value != this.windturbineId)
  56. {
  57. windturbineId = value;
  58. NotifyPropertyChanged();
  59. }
  60. }
  61. }
  62. private string windSpeed = "0.0";
  63. /// <summary>
  64. /// 风速
  65. /// </summary>
  66. public string WindSpeed
  67. {
  68. get { return this.windSpeed; }
  69. set
  70. {
  71. if (value != this.windSpeed)
  72. {
  73. windSpeed = value;
  74. NotifyPropertyChanged();
  75. }
  76. }
  77. }
  78. private string power = "0.0";
  79. /// <summary>
  80. /// 功率
  81. /// </summary>
  82. public string Power
  83. {
  84. get { return this.power; }
  85. set
  86. {
  87. if (value != this.power)
  88. {
  89. this.power = value;
  90. NotifyPropertyChanged();
  91. }
  92. }
  93. }
  94. private string statusString = "";
  95. /// <summary>
  96. /// 状态
  97. /// </summary>
  98. public string StatusString
  99. {
  100. get { return this.statusString; }
  101. set
  102. {
  103. if (value != this.statusString)
  104. {
  105. statusString = value;
  106. NotifyPropertyChanged();
  107. }
  108. }
  109. }
  110. private string hungTypeString = "";
  111. /// <summary>
  112. /// 挂牌状态
  113. /// </summary>
  114. public string HungTypeString
  115. {
  116. get { return this.hungTypeString; }
  117. set
  118. {
  119. if (value != this.hungTypeString)
  120. {
  121. hungTypeString = value;
  122. NotifyPropertyChanged();
  123. }
  124. }
  125. }
  126. private string alternatorSpeed = "0.0";
  127. /// <summary>
  128. /// 发电机转速
  129. /// </summary>
  130. public string AlternatorSpeed
  131. {
  132. get { return this.alternatorSpeed; }
  133. set
  134. {
  135. if (value != this.alternatorSpeed)
  136. {
  137. alternatorSpeed = value;
  138. NotifyPropertyChanged();
  139. }
  140. }
  141. }
  142. private string laminaSpeed = "0.0";
  143. /// <summary>
  144. /// 叶轮转速
  145. /// </summary>
  146. public string LaminaSpeed
  147. {
  148. get { return this.laminaSpeed; }
  149. set
  150. {
  151. if (value != this.laminaSpeed)
  152. {
  153. laminaSpeed = value;
  154. NotifyPropertyChanged();
  155. }
  156. }
  157. }
  158. private string limitSpeed = "17.0";
  159. /// <summary>
  160. /// 限速值
  161. /// </summary>
  162. public string LimitSpeed
  163. {
  164. get { return this.limitSpeed; }
  165. set
  166. {
  167. if (value != this.limitSpeed)
  168. {
  169. limitSpeed = value;
  170. NotifyPropertyChanged();
  171. }
  172. }
  173. }
  174. private string laminaAngle1 = "0.0";
  175. /// <summary>
  176. /// 桨叶角度1
  177. /// </summary>
  178. public string LaminaAngle1
  179. {
  180. get { return this.laminaAngle1; }
  181. set
  182. {
  183. if (value != this.laminaAngle1)
  184. {
  185. laminaAngle1 = value;
  186. NotifyPropertyChanged();
  187. }
  188. }
  189. }
  190. private string laminaAngle2 = "0.0";
  191. /// <summary>
  192. /// 桨叶角度2
  193. /// </summary>
  194. public string LaminaAngle2
  195. {
  196. get { return this.laminaAngle2; }
  197. set
  198. {
  199. if (value != this.laminaAngle2)
  200. {
  201. laminaAngle2 = value;
  202. NotifyPropertyChanged();
  203. }
  204. }
  205. }
  206. private string laminaAngle3 = "0.0";
  207. /// <summary>
  208. /// 桨叶角度3
  209. /// </summary>
  210. public string LaminaAngle3
  211. {
  212. get { return this.laminaAngle3; }
  213. set
  214. {
  215. if (value != this.laminaAngle3)
  216. {
  217. laminaAngle3 = value;
  218. NotifyPropertyChanged();
  219. }
  220. }
  221. }
  222. private string windAngle = "0.0";
  223. /// <summary>
  224. /// 对风角度
  225. /// </summary>
  226. public string WindAngle
  227. {
  228. get { return this.windAngle; }
  229. set
  230. {
  231. if (value != this.windAngle)
  232. {
  233. windAngle = value;
  234. NotifyPropertyChanged();
  235. }
  236. }
  237. }
  238. private string yawPosition = "0.0";
  239. /// <summary>
  240. /// 偏航位置
  241. /// </summary>
  242. public string YawPosition
  243. {
  244. get { return this.yawPosition; }
  245. set
  246. {
  247. if (value != this.yawPosition)
  248. {
  249. yawPosition = value;
  250. NotifyPropertyChanged();
  251. }
  252. }
  253. }
  254. }
  255. }