using MECF.Framework.Common.CommonData;

namespace MECF.Framework.Common.Aitex.Core.Common.DeviceData
{
    /// <summary>
    /// 单种气体总的用量
    /// </summary>
    public class GasFlowSum : NotifiableItem
    {
        /// <summary>
        /// 气体描述
        /// </summary>
        public string Display { get;set; }

        /// <summary>
        /// 气体名称
        /// </summary>
        public string Name { get; set; }


        private double _runVolume;
        /// <summary>
        /// Run使用的体积
        /// </summary>
        public double RunVolume
        {
            get { return _runVolume; }
            set
            {
                _runVolume = value;
                InvokePropertyChanged();
            }
        }


        private double _ventVolume;
        /// <summary>
        /// Vent使用的体积
        /// </summary>
        public double VentVolume
        {
            get { return _ventVolume; }
            set
            {
                _ventVolume = value;
                InvokePropertyChanged();
            }
        }

        private double _volume;
        /// <summary>
        /// 气体用量总和
        /// </summary>
        public double Volume
        {
            get => _volume; 
            set 
            { 
                _volume = value;
                InvokePropertyChanged();
            }
        }
    }
}
