123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace IntelligentControlForsx.Service.WindturbineControl.Domain.FormInfo
- {
- public class WindturbineFormData : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
- {
- PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- public WindturbineFormData(string windturbineId,
- string windSpeed,
- string power,
- string statusString,
- string hungTypeString,
- string alternatorSpeed,
- string laminaSpeed,
- string limitSpeed,
- string laminaAngle1,
- string laminaAngle2,
- string laminaAngle3,
- string windAngle,
- string yawPosition
- )
- {
- this.windturbineId = windturbineId;
- this.windSpeed = windSpeed;
- this.power = power;
- this.statusString = statusString;
- this.hungTypeString = hungTypeString;
- this.alternatorSpeed = alternatorSpeed;
- this.laminaSpeed = laminaSpeed;
- this.limitSpeed = limitSpeed;
- this.laminaAngle1 = laminaAngle1;
- this.laminaAngle2 = laminaAngle2;
- this.laminaAngle3 = laminaAngle3;
- this.windAngle = windAngle;
- this.yawPosition = yawPosition;
- }
- private string windturbineId = "";
- /// <summary>
- /// 风机编号
- /// </summary>
- public string WindturbineId
- {
- get { return this.windturbineId; }
- set
- {
- if (value != this.windturbineId)
- {
- windturbineId = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string windSpeed = "0.0";
- /// <summary>
- /// 风速
- /// </summary>
- public string WindSpeed
- {
- get { return this.windSpeed; }
- set
- {
- if (value != this.windSpeed)
- {
- windSpeed = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string power = "0.0";
- /// <summary>
- /// 功率
- /// </summary>
- public string Power
- {
- get { return this.power; }
- set
- {
- if (value != this.power)
- {
- this.power = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string statusString = "";
- /// <summary>
- /// 状态
- /// </summary>
- public string StatusString
- {
- get { return this.statusString; }
- set
- {
- if (value != this.statusString)
- {
- statusString = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string hungTypeString = "";
- /// <summary>
- /// 挂牌状态
- /// </summary>
- public string HungTypeString
- {
- get { return this.hungTypeString; }
- set
- {
- if (value != this.hungTypeString)
- {
- hungTypeString = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string alternatorSpeed = "0.0";
- /// <summary>
- /// 发电机转速
- /// </summary>
- public string AlternatorSpeed
- {
- get { return this.alternatorSpeed; }
- set
- {
- if (value != this.alternatorSpeed)
- {
- alternatorSpeed = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string laminaSpeed = "0.0";
- /// <summary>
- /// 叶轮转速
- /// </summary>
- public string LaminaSpeed
- {
- get { return this.laminaSpeed; }
- set
- {
- if (value != this.laminaSpeed)
- {
- laminaSpeed = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string limitSpeed = "17.0";
- /// <summary>
- /// 限速值
- /// </summary>
- public string LimitSpeed
- {
- get { return this.limitSpeed; }
- set
- {
- if (value != this.limitSpeed)
- {
- limitSpeed = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string laminaAngle1 = "0.0";
- /// <summary>
- /// 桨叶角度1
- /// </summary>
- public string LaminaAngle1
- {
- get { return this.laminaAngle1; }
- set
- {
- if (value != this.laminaAngle1)
- {
- laminaAngle1 = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string laminaAngle2 = "0.0";
- /// <summary>
- /// 桨叶角度2
- /// </summary>
- public string LaminaAngle2
- {
- get { return this.laminaAngle2; }
- set
- {
- if (value != this.laminaAngle2)
- {
- laminaAngle2 = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string laminaAngle3 = "0.0";
- /// <summary>
- /// 桨叶角度3
- /// </summary>
- public string LaminaAngle3
- {
- get { return this.laminaAngle3; }
- set
- {
- if (value != this.laminaAngle3)
- {
- laminaAngle3 = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string windAngle = "0.0";
- /// <summary>
- /// 对风角度
- /// </summary>
- public string WindAngle
- {
- get { return this.windAngle; }
- set
- {
- if (value != this.windAngle)
- {
- windAngle = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string yawPosition = "0.0";
- /// <summary>
- /// 偏航位置
- /// </summary>
- public string YawPosition
- {
- get { return this.yawPosition; }
- set
- {
- if (value != this.yawPosition)
- {
- yawPosition = value;
- NotifyPropertyChanged();
- }
- }
- }
- }
- }
|