using BPA.Message.Enum; using BPASmartClient.Peripheral; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPASmartClient.Device { /// /// 设备接口 /// public interface IDevice { /// /// 设备ID /// int DeviceId { get; set; } /// /// 设备名称 /// string Name { get; set; } /// /// 设备类型 /// DeviceClientType DeviceType { get; } /// /// 设备所有状态 /// DeviceStatus Status { get; set; } /// /// 运行日志 /// public List Log { get; set; } /// /// 运行告警 /// public List Error { get; set; } /// /// 设备变量信息 /// List variableMonitors { get; set; } /// /// 是否忙碌 /// bool IsBusy { get; } /// /// 是否健康 /// bool IsHealth { get; } /// /// 初始化设备加载 /// void Initliaze(List peripherals); /// /// 开启设备主任务 /// void StartMain(); /// /// 设备停止 /// void Stop(); /// /// 获取错误信息 /// object GetError(); /// /// 获取日志信息 /// object GetLog(); /// /// 获取硬件信息 /// object GetVariableMonitor(); /// /// 获取属性变量 /// /// /// object GetPropertyValue(object info, string field); Action AddErrorAction { get; set; } Action DeleteErrorAction { get; set; } } }