using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation
{
///
/// 报警
///
public class Alarm
{
#region 报警类型
///
/// 数据不变
///
public const string Type_UnChanged = "数据不变";
///
/// 数据突变
///
public const string Type_Mutation = "数据突变";
///
/// 缺数据
///
public const string Type_Lacked = "缺数据";
///
/// 数据中断
///
public const string Type_Interrupted = "数据中断";
///
/// 数据越上限
///
public const string Type_Upper = "数据越上限";
///
/// 数据越下限
///
public const string Type_Lower = "数据越下限";
///
/// 非合理区间
///
public const string Type_UnReasonable = "非合理区间";
///
/// 获取报警类型列表
///
public static List GetAlarmTypeList()
{
var list = new List()
{
Type_UnChanged,
Type_Mutation,
Type_Lacked,
Type_Interrupted,
Type_Upper,
Type_Lower,
Type_UnReasonable
};
return list;
}
#endregion
#region 处理状态
///
/// 未处理
///
public const int HandleStatus_None = 0;
///
/// 已处理
///
public const int HandleStatus_Yes = 1;
///
/// 搁置
///
public const int HandleStatus_Shelve = 2;
///
/// 屏蔽
///
public const int HandleStatus_Shield = 3;
#endregion
}
}