123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- using GDNXFD.Data;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Alert.Interpreter
- {
- /// <summary>
- /// 取测点的值
- /// </summary>
- public interface IDataProvider
- {
- /// <summary>
- /// 取数值型测点的值
- /// </summary>
- /// <param name="PointAI">统一编码</param>
- /// <param name="objectId">对象(风机)ID</param>
- /// <param name="objectType">对象类型:风机、风电场、变电所、电气等</param>
- /// <returns></returns>
- double FindAIValue(string PointAI, string objectId, AlertObjectType objectType, ref string dataInfo);
- /// <summary>
- /// 取布尔型测点的值
- /// </summary>
- /// <param name="PointDI">统一编码</param>
- /// <param name="objectId">对象(风机)ID</param>
- /// <param name="objectType">对象类型:风机、风电场、变电所、电气等</param>
- /// <returns></returns>
- bool FindDIValue(string PointDI, string objectId, AlertObjectType objectType, ref string dataInfo);
- /// <summary>
- /// 取数值型测点的历史值
- /// </summary>
- /// <param name="PointDI">统一编码</param>
- /// <param name="objectId">对象(风机)ID</param>
- /// <param name="objectType">对象类型:风机、风电场、变电所、电气等</param>
- /// <param name="duration">持续时间,从当前倒推</param>
- /// <param name="interval">抽样间隔,默认为60秒</param>
- /// <returns></returns>
- double[] FindAIHistorySnap(string PointAI, string objectId, AlertObjectType objectType, DateTime tStart, DateTime tEnd, int interval = 60);
- /// <summary>
- /// 取布尔型测点的历史值
- /// </summary>
- /// <param name="PointDI">统一编码</param>
- /// <param name="objectId">对象(风机)ID</param>
- /// <param name="objectType">对象类型:风机、风电场、变电所、电气等</param>
- /// <param name="duration">持续时间,从当前倒推</param>
- /// <param name="interval">抽样间隔,默认为60秒</param>
- /// <returns></returns>
- bool[] FindDIHistorySnap(string PointDI, string objectId, AlertObjectType objectType, DateTime tStart, DateTime tEnd, int interval = 60);
- /// <summary>
- /// 取测点历史原始值
- /// </summary>
- /// <param name="PointAI"></param>
- /// <param name="objectId"></param>
- /// <param name="objectType"></param>
- /// <param name="tStart"></param>
- /// <param name="tEnd"></param>
- /// <returns></returns>
- double[] FindHistoryRaw(string PointAI, string objectId, AlertObjectType objectType, DateTime tStart, DateTime tEnd);
- /// <summary>
- /// 取测点最新值的时间
- /// </summary>
- /// <param name="pointKey">测点</param>
- /// <param name="objectId">对象的ID</param>
- /// <param name="objectType">报警类型</param>
- /// <returns></returns>
- int GetLastUpdateTime(string pointKey, string objectId, AlertObjectType objectType, ref string dataInfo);
- }
- }
|