using BPA.Message; using BPA.Message.Enum; using BPASmartClient.Model; using BPASmartClient.Peripheral; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections.ObjectModel; namespace BPASmartClient.Device { /// /// 设备接口 /// public interface IDevice { /// /// 设备ID /// int DeviceId { get; set; } /// /// 设备名称 /// string Name { get; set; } /// /// 设备类型 /// DeviceClientType DeviceType { get; } /// /// 订单物料信息 /// //OrderMaterialDelivery orderMaterialDelivery { get; set; } /// /// 配方数据信息 /// //RecipeBoms recipeBoms { get; set; } /// /// 设备所有状态 /// DeviceStatus Status { get; set; } /// /// 运行日志 /// public List Log { get; set; } /// /// 运行告警 /// public List Error { get; set; } /// /// 设备变量信息 /// ObservableCollection variableMonitors { get; set; } /// /// 设备报警信息集合 /// List alarms { get; set; } /// /// 接口报警对象 /// IAlarm InterfaceAlarm { get; set; } /// /// 接口设备状态 /// IStatus InterfaceStatus { get; set; } /// /// 报警实体 /// AlarmHelper alarmHelper { 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; } } }