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
|
}
|
}
|