DeviceParams.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. using System;
  2. using System.ComponentModel;
  3. using System.Runtime.CompilerServices;
  4. using EntityDataSet;
  5. namespace IntelligentControlForsx.Model
  6. {
  7. public class DeviceParams : INotifyPropertyChanged
  8. {
  9. private string deviceId = String.Empty;
  10. private string lqfwd = String.Empty;
  11. private string yggl = String.Empty;
  12. private string yyywd = String.Empty;
  13. private string u1rzwd = String.Empty;
  14. private string u2rzwd = String.Empty;
  15. private string v1rzwd = String.Empty;
  16. private string v2rzwd = String.Empty;
  17. private string w1rzwd = String.Empty;
  18. private string w2rzwd = String.Empty;
  19. private string zcawd = String.Empty;
  20. private string zcbwd = String.Empty;
  21. private string clxwd = String.Empty;
  22. private string clxz1wd = String.Empty;
  23. private string clxz2wd = String.Empty;
  24. private string jcwd = String.Empty;
  25. private string hjwd = String.Empty;
  26. public event PropertyChangedEventHandler PropertyChanged;
  27. // This method is called by the Set accessor of each property.
  28. // The CallerMemberName attribute that is applied to the optional propertyName
  29. // parameter causes the property name of the caller to be substituted as an argument.
  30. private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
  31. {
  32. PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
  33. }
  34. // The constructor is private to enforce the factory pattern.
  35. public DeviceParams(string deviceName)
  36. {
  37. deviceId = deviceName;
  38. lqfwd = "0.00";
  39. yggl = "0.00";
  40. yyywd = "0.00";
  41. u1rzwd = "0.00";
  42. u2rzwd = "0.00";
  43. v1rzwd = "0.00";
  44. v2rzwd = "0.00";
  45. w1rzwd = "0.00";
  46. w2rzwd = "0.00";
  47. zcawd = "0.00";
  48. zcbwd = "0.00";
  49. clxwd = "0.00";
  50. clxz1wd = "0.00";
  51. clxz2wd = "0.00";
  52. jcwd = "0.00";
  53. hjwd = "0.00";
  54. }
  55. public string 风机名称
  56. {
  57. get
  58. {
  59. return deviceId;
  60. }
  61. set
  62. {
  63. if (value != this.deviceId)
  64. {
  65. this.deviceId = value;
  66. NotifyPropertyChanged();
  67. }
  68. }
  69. }
  70. public string 有功功率
  71. {
  72. get
  73. {
  74. return yggl;
  75. }
  76. set
  77. {
  78. if (value != this.yggl)
  79. {
  80. this.yggl = value;
  81. NotifyPropertyChanged();
  82. }
  83. }
  84. }
  85. public string 风速
  86. {
  87. get
  88. {
  89. return v2rzwd;
  90. }
  91. set
  92. {
  93. if (value != this.v2rzwd)
  94. {
  95. this.v2rzwd = value;
  96. NotifyPropertyChanged();
  97. }
  98. }
  99. }
  100. public string 发电机转速
  101. {
  102. get
  103. {
  104. return u2rzwd;
  105. }
  106. set
  107. {
  108. if (value != this.u2rzwd)
  109. {
  110. this.u2rzwd = value;
  111. NotifyPropertyChanged();
  112. }
  113. }
  114. }
  115. public string 转子转速
  116. {
  117. get
  118. {
  119. return w2rzwd;
  120. }
  121. set
  122. {
  123. if (value != this.w2rzwd)
  124. {
  125. this.w2rzwd = value;
  126. NotifyPropertyChanged();
  127. }
  128. }
  129. }
  130. public string 塔底柜温度
  131. {
  132. get
  133. {
  134. return lqfwd;
  135. }
  136. set
  137. {
  138. if (value != this.lqfwd)
  139. {
  140. this.lqfwd = value;
  141. NotifyPropertyChanged();
  142. }
  143. }
  144. }
  145. public string 液压油温度
  146. {
  147. get
  148. {
  149. return yyywd;
  150. }
  151. set
  152. {
  153. if (value != this.yyywd)
  154. {
  155. this.yyywd = value;
  156. NotifyPropertyChanged();
  157. }
  158. }
  159. }
  160. public string U1绕组温度
  161. {
  162. get
  163. {
  164. return u1rzwd;
  165. }
  166. set
  167. {
  168. if (value != this.u1rzwd)
  169. {
  170. this.u1rzwd = value;
  171. NotifyPropertyChanged();
  172. }
  173. }
  174. }
  175. public string V1绕组温度
  176. {
  177. get
  178. {
  179. return v1rzwd;
  180. }
  181. set
  182. {
  183. if (value != this.v1rzwd)
  184. {
  185. this.v1rzwd = value;
  186. NotifyPropertyChanged();
  187. }
  188. }
  189. }
  190. public string W1绕组温度
  191. {
  192. get
  193. {
  194. return w1rzwd;
  195. }
  196. set
  197. {
  198. if (value != this.w1rzwd)
  199. {
  200. this.w1rzwd = value;
  201. NotifyPropertyChanged();
  202. }
  203. }
  204. }
  205. public string 轴承A温度
  206. {
  207. get
  208. {
  209. return zcawd;
  210. }
  211. set
  212. {
  213. if (value != this.zcawd)
  214. {
  215. this.zcawd = value;
  216. NotifyPropertyChanged();
  217. }
  218. }
  219. }
  220. public string 轴承B温度
  221. {
  222. get
  223. {
  224. return zcbwd;
  225. }
  226. set
  227. {
  228. if (value != this.zcbwd)
  229. {
  230. this.zcbwd = value;
  231. NotifyPropertyChanged();
  232. }
  233. }
  234. }
  235. public string 齿轮箱温度
  236. {
  237. get
  238. {
  239. return clxwd;
  240. }
  241. set
  242. {
  243. if (value != this.clxwd)
  244. {
  245. this.clxwd = value;
  246. NotifyPropertyChanged();
  247. }
  248. }
  249. }
  250. public string 齿轮箱轴1温度
  251. {
  252. get
  253. {
  254. return clxz1wd;
  255. }
  256. set
  257. {
  258. if (value != this.clxz1wd)
  259. {
  260. this.clxz1wd = value;
  261. NotifyPropertyChanged();
  262. }
  263. }
  264. }
  265. public string 齿轮箱轴2温度
  266. {
  267. get
  268. {
  269. return clxz2wd;
  270. }
  271. set
  272. {
  273. if (value != this.clxz2wd)
  274. {
  275. this.clxz2wd = value;
  276. NotifyPropertyChanged();
  277. }
  278. }
  279. }
  280. public string 机舱温度
  281. {
  282. get
  283. {
  284. return jcwd;
  285. }
  286. set
  287. {
  288. if (value != this.jcwd)
  289. {
  290. this.jcwd = value;
  291. NotifyPropertyChanged();
  292. }
  293. }
  294. }
  295. public string 环境温度
  296. {
  297. get
  298. {
  299. return hjwd;
  300. }
  301. set
  302. {
  303. if (value != this.hjwd)
  304. {
  305. this.hjwd = value;
  306. NotifyPropertyChanged();
  307. }
  308. }
  309. }
  310. private windturbine tag;
  311. public windturbine getTag()
  312. {
  313. return tag;
  314. }
  315. public void setTag(windturbine value)
  316. {
  317. tag = value;
  318. }
  319. }
  320. }