using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NEIntelligentControl2.Models.Windturbine
{
    /// <summary>
    /// 推荐风机
    /// </summary>
    public class WindturbineSuggestion
    {
        /// <summary>
        /// 风机编号
        /// </summary>
        public string WindturbineId { get; set; }
        /// <summary>
        /// 推荐操作
        /// </summary>
        public string OperateStyle { get; set; }
        private OperateStyle operateStyle;
        /// <summary>
        /// 推荐操作类型
        /// </summary>
        public OperateStyle OperateType
        {
            get
            {
                if (operateStyle != Windturbine.OperateStyle.Nothing) return operateStyle;
                try
                {
                    Enum.TryParse(OperateStyle, out operateStyle);
                }
                catch { }
                return operateStyle;
            }
        }
        public string Reason { get; set; }
    }


    /// <summary>
    /// 启停推荐数据来源
    /// </summary>
    public enum CalcSource
    {
        /// <summary>
        /// 为止
        /// </summary>
        Unknow,
        /// <summary>
        /// 实时状态计算
        /// </summary>
        RealTimeStatus,
        /// <summary>
        /// 报警
        /// </summary>
        Alarm,
        /// <summary>
        /// 风功率预测
        /// </summary>
        PowerForecast,
        /// <summary>
        /// 健康管理
        /// </summary>
        HealthyManage,
    }
}
