using System;
using System.ComponentModel;

namespace SWRIS.Enums
{
    /// <summary>
    /// 设备运行状态（支持位运算组合状态）
    /// </summary>
    [Flags]
    public enum RunningStatus
    {
        /// <summary>
        /// 0 - 停止检测
        /// </summary>
        [Description("停止检测")]
        Stopped = 0,

        /// <summary>
        /// 1 - 检测中且正常
        /// </summary>
        [Description("检测中")]
        RunningNormal = 1,

        /// <summary>
        /// 2 - 传感器故障
        /// </summary>
        [Description("传感器故障")]
        SensorFault = 2,

        /// <summary>
        /// 4 - 预警（黄色预警）
        /// </summary>
        [Description("黄色预警")]
        YellowAlert = 4,

        /// <summary>
        /// 8 - 报警（红色报警）
        /// </summary>
        [Description("红色报警")]
        RedAlert = 8,

        /// <summary>
        /// 16 - 预停止
        /// </summary>
        [Description("预停止")]
        PreStop = 16,

        /// <summary>
        /// 32 - 预运行
        /// </summary>
        [Description("预运行")]
        PreRunning = 32,

        /// <summary>
        /// 64 - 预标定
        /// </summary>
        [Description("预标定")]
        PreCalibration = 64
    }
}
