123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373 |
- using System;
- using System.ComponentModel;
- using System.Runtime.CompilerServices;
- using EntityDataSet;
- namespace IntelligentControlForsx.Model
- {
- public class DeviceParams : INotifyPropertyChanged
- {
- private string deviceId = String.Empty;
- private string lqfwd = String.Empty;
- private string yggl = String.Empty;
- private string yyywd = String.Empty;
- private string u1rzwd = String.Empty;
- private string u2rzwd = String.Empty;
- private string v1rzwd = String.Empty;
- private string v2rzwd = String.Empty;
- private string w1rzwd = String.Empty;
- private string w2rzwd = String.Empty;
- private string zcawd = String.Empty;
- private string zcbwd = String.Empty;
- private string clxwd = String.Empty;
- private string clxz1wd = String.Empty;
- private string clxz2wd = String.Empty;
- private string jcwd = String.Empty;
- private string hjwd = String.Empty;
- public event PropertyChangedEventHandler PropertyChanged;
- // This method is called by the Set accessor of each property.
- // The CallerMemberName attribute that is applied to the optional propertyName
- // parameter causes the property name of the caller to be substituted as an argument.
- private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
- {
- PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- // The constructor is private to enforce the factory pattern.
- public DeviceParams(string deviceName)
- {
- deviceId = deviceName;
- lqfwd = "0.00";
- yggl = "0.00";
- yyywd = "0.00";
- u1rzwd = "0.00";
- u2rzwd = "0.00";
- v1rzwd = "0.00";
- v2rzwd = "0.00";
- w1rzwd = "0.00";
- w2rzwd = "0.00";
- zcawd = "0.00";
- zcbwd = "0.00";
- clxwd = "0.00";
- clxz1wd = "0.00";
- clxz2wd = "0.00";
- jcwd = "0.00";
- hjwd = "0.00";
- }
- public string 风机名称
- {
- get
- {
- return deviceId;
- }
- set
- {
- if (value != this.deviceId)
- {
- this.deviceId = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 有功功率
- {
- get
- {
- return yggl;
- }
- set
- {
- if (value != this.yggl)
- {
- this.yggl = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 风速
- {
- get
- {
- return v2rzwd;
- }
- set
- {
- if (value != this.v2rzwd)
- {
- this.v2rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 发电机转速
- {
- get
- {
- return u2rzwd;
- }
- set
- {
- if (value != this.u2rzwd)
- {
- this.u2rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 转子转速
- {
- get
- {
- return w2rzwd;
- }
- set
- {
- if (value != this.w2rzwd)
- {
- this.w2rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 塔底柜温度
- {
- get
- {
- return lqfwd;
- }
- set
- {
- if (value != this.lqfwd)
- {
- this.lqfwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 液压油温度
- {
- get
- {
- return yyywd;
- }
- set
- {
- if (value != this.yyywd)
- {
- this.yyywd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string U1绕组温度
- {
- get
- {
- return u1rzwd;
- }
- set
- {
- if (value != this.u1rzwd)
- {
- this.u1rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string V1绕组温度
- {
- get
- {
- return v1rzwd;
- }
- set
- {
- if (value != this.v1rzwd)
- {
- this.v1rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string W1绕组温度
- {
- get
- {
- return w1rzwd;
- }
- set
- {
- if (value != this.w1rzwd)
- {
- this.w1rzwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 轴承A温度
- {
- get
- {
- return zcawd;
- }
- set
- {
- if (value != this.zcawd)
- {
- this.zcawd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 轴承B温度
- {
- get
- {
- return zcbwd;
- }
- set
- {
- if (value != this.zcbwd)
- {
- this.zcbwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 齿轮箱温度
- {
- get
- {
- return clxwd;
- }
- set
- {
- if (value != this.clxwd)
- {
- this.clxwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 齿轮箱轴1温度
- {
- get
- {
- return clxz1wd;
- }
- set
- {
- if (value != this.clxz1wd)
- {
- this.clxz1wd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 齿轮箱轴2温度
- {
- get
- {
- return clxz2wd;
- }
- set
- {
- if (value != this.clxz2wd)
- {
- this.clxz2wd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 机舱温度
- {
- get
- {
- return jcwd;
- }
- set
- {
- if (value != this.jcwd)
- {
- this.jcwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- public string 环境温度
- {
- get
- {
- return hjwd;
- }
- set
- {
- if (value != this.hjwd)
- {
- this.hjwd = value;
- NotifyPropertyChanged();
- }
- }
- }
- private windturbine tag;
- public windturbine getTag()
- {
- return tag;
- }
- public void setTag(windturbine value)
- {
- tag = value;
- }
- }
- }
|