| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_QuartzJob.DTO; |
| | | |
| | | namespace WIDESEAWCS_QuartzJob.DeviceBase |
| | | { |
| | | /// <summary> |
| | | /// 设备接口层 |
| | | /// </summary> |
| | | public interface IDevice |
| | | public interface IDevice : IDisposable |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 通讯对象 |
| | | /// </summary> |
| | | BaseCommunicator Communicator { get; } |
| | | |
| | | /// <summary> |
| | | /// 通讯协议信息 |
| | | /// </summary> |
| | | List<DeviceProDTO> DeviceProDTOs { get; } |
| | | |
| | | /// <summary> |
| | | /// 通讯协议明细信息 |
| | | /// </summary> |
| | | List<DeviceProtocolDetailDTO> DeviceProtocolDetailDTOs { get; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设备编号 |
| | | /// </summary> |
| | |
| | | string DeviceName { get; } |
| | | |
| | | /// <summary> |
| | | /// 设备是否有故障 |
| | | /// </summary> |
| | | bool IsFault { get; } |
| | | |
| | | /// <summary> |
| | | /// 设备是否已连接 |
| | | /// </summary> |
| | | bool IsConnected { get; } |
| | | |
| | | /// <summary> |
| | | /// 设备状态(空闲/运行中...) |
| | | /// </summary> |
| | | DeviceStatus Status { get; } |
| | | |
| | | } |
| | | } |