patrick
2019-12-10 1c4426810c71eead57084be8a18ade8d314dd8c4
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using Bro.Common.Helper;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Bro.Common.Helper.EnumHelper;
 
namespace Bro.Common.Interface
{
    public interface IStationProcess
    {
        //IStationProcess GetInstance();
 
        #region 属性
        //string StationCode { get; set; }
        IStationConfig StationConfig { get; set; }
 
        //SchneiderPLC_ModbusTcp_Driver PLC { get; set; }
        //SchneiderRFIDDriver RFID { get; set; }
        //HikCameraDriver Camera_Lookup { get; set; }
        //HikCameraDriver Camera_Lookdown { get; set; }
        #endregion
 
        #region 方法
        /// <summary>
        /// 打开
        /// </summary>
        void Open();
 
        void Pause();
 
        void Resume();
 
        /// <summary>
        /// 关闭
        /// </summary>
        void Close();
 
        /// <summary>
        /// 初始化Process
        /// </summary>
        void InitialStationProcess();
 
        /// <summary>
        /// 整理类中所有ProcessMethod特性修饰
        /// </summary>
        /// <returns></returns>
        List<ProcessMethodAttribute> CollectProcessMethods();
 
        void InitialProcessMethods();
        #endregion
 
        #region 事件
        /// <summary>
        /// 图像输出事件
        /// </summary>
        Action<string, Bitmap> OnBitmapOutput { get; set; }
 
        /// <summary>
        /// 对象输出事件
        /// </summary>
        Action<string, object> OnObjectOutput { get; set; }
 
        /// <summary>
        /// 异常抛出事件
        /// </summary>
        Action<string, Exception> OnExceptionOccured { get; set; }
 
        Action<DeviceState> OnProcessStateChanged { get; set; }
        #endregion
 
        #region 数据库操作
        void SaveStationConfig(IStationConfig config);
        #endregion
 
        #region Test
        //void CSVOutput(int positionIndex, string data, string head, string fileName);
        //void AddScrewPointSpec();
        #endregion
    }
}