using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace Aitex.Core.UI.ControlDataContext
{
[DataContract]
[Serializable]
public class AnalogDeviceDataItem
{
///
/// 设备的唯一名称,UI与RT交互的ID
///
[DataMember]
public string DeviceName { get; set; }
///
/// 显示在界面上的名称
///
[DataMember]
public string DisplayName { get; set; }
///
/// IO 表中定义的物理编号,物理追溯使用 比如: M122
///
[DataMember]
public string DeviceId { get; set; }
[DataMember]
public string Unit { get; set; }
[DataMember]
public string Description { get; set; }
///
/// 量程
///
[DataMember]
public double Scale { get; set; }
///
/// 设定值
///
[DataMember]
public double SetPoint { get; set; }
///
/// 实际反馈值
///
[DataMember]
public double FeedBack { get; set; }
///
/// 默认值
///
[DataMember]
public double DefaultValue { get; set; }
///
/// 是否有报警
///
[DataMember]
public bool IsWarning { get; set; }
///
/// alarm或是erro时显示的信息
///
[DataMember]
public string ErroMessage { get; set; }
///
/// MFC,PC
///
[DataMember]
public string Type { get; set; }
private double _factor = 1.0;
[DataMember]
public double Factor { get { return _factor; } set { _factor = value; } }
///
/// 格式化显示
///
[DataMember]
public string FormatString { get; set; }
public AnalogDeviceDataItem()
{
DisplayName = "未定义设备";
FormatString = "F1";
}
}
public class AnalogDeviceOperation
{
public const string Ramp = "Ramp";
}
}