using System.ComponentModel;
using System.Reflection;
using System.Runtime.Serialization;
using System.Windows.Input;
namespace OldWorldData.CommonData.DeviceData
{
[DataContract]
[Serializable]
public class AITSignalTowerData
{
///
/// 设备的唯一名称,UI与RT交互的ID
///
[DataMember]
public string DeviceName { get; set; }
///
/// 显示在界面上的名称
///
[DataMember]
public string DisplayName { get; set; }
///
/// IO 表中定义的物理编号,物理追溯使用 比如: M122
///
[DataMember]
public string DeviceSchematicId { get; set; }
[DataMember]
public string Description { get; set; }
[DataMember]
public bool IsRedLightOn
{
get;
set;
}
[DataMember]
public bool IsYellowLightOn
{
get;
set;
}
[DataMember]
public bool IsGreenLightOn
{
get;
set;
}
[DataMember]
public bool IsBlueLightOn
{
get;
set;
}
[DataMember]
public bool IsWhiteLightOn
{
get;
set;
}
[DataMember]
public bool IsBuzzerOn
{
get;
set;
}
[DataMember]
public bool IsBuzzer1On
{
get;
set;
}
[DataMember]
public bool IsBuzzer2On
{
get;
set;
}
[DataMember]
public bool IsBuzzer3On
{
get;
set;
}
[DataMember]
public bool IsBuzzer4On
{
get;
set;
}
[DataMember]
public bool IsBuzzer5On
{
get;
set;
}
public AITSignalTowerData()
{
DisplayName = "Undefined";
}
}
public enum AITSignalTowerOperation
{
SwitchOffBuzzer,
SwitchOffBuzzer1,
SwitchOffBuzzer2,
SwitchOffBuzzer3,
SwitchOffBuzzer4,
}
}