using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;


namespace CRVM.Entity
{
    public class EntityChannel
    {
        [DataMember]
        public bool ChChecked { get; set; }    //在线采集时通道选中状态
        [DataMember]
        public float vibSens { get; set; }      //加速度传感器灵敏度

        [DataMember]
        public float speedSens { get; set; }    //速度传感器灵敏度

        [DataMember]
        public int alarmTimes_l { get { return defaultAlarmTimes[0]; } set { defaultAlarmTimes[0] = value; } }   //低频报警次数

        [DataMember]
        public int alarmTimes_m { get { return defaultAlarmTimes[1]; } set { defaultAlarmTimes[1] = value; } }   //中频报警次数
        [DataMember]
        public int alarmTimes_h { get { return defaultAlarmTimes[2]; } set { defaultAlarmTimes[2] = value; } }   //高频报警次数
        [DataMember]
        private EntityAlarmSpeed[] _alarmConfig = new EntityAlarmSpeed[10];
        /// <summary>
        /// 报警设置参数，该参数从参数设置文件中读取而来。
        /// </summary>
        [DataMember]
        public EntityAlarmSpeed[] alarmConfig     //报警设置参数
        {
            get { return _alarmConfig; }
            set { _alarmConfig = value; }
        }
        private EntityAlarmSpeed[] _reAlarmConfig = new EntityAlarmSpeed[10];//回放时报警参数
        [DataMember]
        public EntityAlarmSpeed[] reAlarmConfig
        {
            get { return _reAlarmConfig; }
            set { _reAlarmConfig = value; }
        }
        private int[] defaultAlarmTimes = new int[3] { 3, 3, 3 };
    }
}
