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 = "";
///
/// 风机编号
///
public string WindturbineId
{
get { return this.windturbineId; }
set
{
if (value != this.windturbineId)
{
windturbineId = value;
NotifyPropertyChanged();
}
}
}
private string windSpeed = "0.0";
///
/// 风速
///
public string WindSpeed
{
get { return this.windSpeed; }
set
{
if (value != this.windSpeed)
{
windSpeed = value;
NotifyPropertyChanged();
}
}
}
private string power = "0.0";
///
/// 功率
///
public string Power
{
get { return this.power; }
set
{
if (value != this.power)
{
this.power = value;
NotifyPropertyChanged();
}
}
}
private string statusString = "";
///
/// 状态
///
public string StatusString
{
get { return this.statusString; }
set
{
if (value != this.statusString)
{
statusString = value;
NotifyPropertyChanged();
}
}
}
private string hungTypeString = "";
///
/// 挂牌状态
///
public string HungTypeString
{
get { return this.hungTypeString; }
set
{
if (value != this.hungTypeString)
{
hungTypeString = value;
NotifyPropertyChanged();
}
}
}
private string alternatorSpeed = "0.0";
///
/// 发电机转速
///
public string AlternatorSpeed
{
get { return this.alternatorSpeed; }
set
{
if (value != this.alternatorSpeed)
{
alternatorSpeed = value;
NotifyPropertyChanged();
}
}
}
private string laminaSpeed = "0.0";
///
/// 叶轮转速
///
public string LaminaSpeed
{
get { return this.laminaSpeed; }
set
{
if (value != this.laminaSpeed)
{
laminaSpeed = value;
NotifyPropertyChanged();
}
}
}
private string limitSpeed = "17.0";
///
/// 限速值
///
public string LimitSpeed
{
get { return this.limitSpeed; }
set
{
if (value != this.limitSpeed)
{
limitSpeed = value;
NotifyPropertyChanged();
}
}
}
private string laminaAngle1 = "0.0";
///
/// 桨叶角度1
///
public string LaminaAngle1
{
get { return this.laminaAngle1; }
set
{
if (value != this.laminaAngle1)
{
laminaAngle1 = value;
NotifyPropertyChanged();
}
}
}
private string laminaAngle2 = "0.0";
///
/// 桨叶角度2
///
public string LaminaAngle2
{
get { return this.laminaAngle2; }
set
{
if (value != this.laminaAngle2)
{
laminaAngle2 = value;
NotifyPropertyChanged();
}
}
}
private string laminaAngle3 = "0.0";
///
/// 桨叶角度3
///
public string LaminaAngle3
{
get { return this.laminaAngle3; }
set
{
if (value != this.laminaAngle3)
{
laminaAngle3 = value;
NotifyPropertyChanged();
}
}
}
private string windAngle = "0.0";
///
/// 对风角度
///
public string WindAngle
{
get { return this.windAngle; }
set
{
if (value != this.windAngle)
{
windAngle = value;
NotifyPropertyChanged();
}
}
}
private string yawPosition = "0.0";
///
/// 偏航位置
///
public string YawPosition
{
get { return this.yawPosition; }
set
{
if (value != this.yawPosition)
{
yawPosition = value;
NotifyPropertyChanged();
}
}
}
}
}