hutongqing
2024-11-01 2f75b4c0a67ccc3a443e7cc4f2f0f909defd9a92
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 命名空间:WIDESEAWCS_QuartzJob
 * 创建者:胡童庆
 * 创建时间:2024/8/2 16:13:36
 * 版本:V1.0.0
 * 描述:设备接口层,所有设备继承的底层接口
 *
 * ----------------------------------------------------------------
 * 修改人:
 * 修改时间:
 * 版本:V1.0.1
 * 修改说明:
 * 
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>
 
using HslCommunication;
using System;
using System.Collections.Generic;
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 : IDisposable
    {
 
        /// <summary>
        /// 通讯对象
        /// </summary>
        BaseCommunicator Communicator { get; }
 
        /// <summary>
        /// 通讯协议信息
        /// </summary>
        List<DeviceProDTO> DeviceProDTOs { get; }
 
        /// <summary>
        /// 通讯协议明细信息
        /// </summary>
        List<DeviceProtocolDetailDTO> DeviceProtocolDetailDTOs { get; }
 
 
        /// <summary>
        /// 设备编号
        /// </summary>
        string DeviceCode { get; }
 
        /// <summary>
        /// 设备名称
        /// </summary>
        string DeviceName { get; }
 
        /// <summary>
        /// 设备是否已连接
        /// </summary>
        bool IsConnected { get; }
    }
}