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; } } }