using System;
|
using System.Threading;
|
|
namespace Bro.Common.Interface
|
{
|
/// <summary>
|
/// 设备的实际运行的硬件输入配置
|
/// 考虑使用消息接收机制在这里等待外部信号进入
|
/// </summary>
|
public interface IInputConfig : IDisposable //: IProcessID
|
{
|
/// <summary>
|
/// 该配置对应的工序编号
|
/// 考虑到多工序可能对应到同样的配置,工序编号不做固定赋值,在设备运作时随用随赋值
|
/// </summary>
|
string ProcessId { get; set; }
|
|
/// <summary>
|
/// 工序名称
|
/// </summary>
|
string ProcessName { get; set; }
|
|
//Dictionary<string, AutoResetEvent> InputHanlderDict { get; set; }
|
//Dictionary<string, bool> InputFlagDict { get; set; }
|
|
//ConcurrentDictionary<string, AutoResetEvent> InputHanlderDict { get; set; }
|
|
//ConcurrentDictionary<string, bool> InputFlagDict { get; set; }
|
|
AutoResetEvent InputHandle { get; set; }
|
|
///// <summary>
|
///// 是否已进入输入配置方法标志
|
///// </summary>
|
//bool BoundFlag { get; set; }
|
|
/// <summary>
|
/// 是否需要做硬输入(外部输入)判断 false:不需要 true:需要
|
/// </summary>
|
bool IsInputNeed { get; set; }
|
|
string InputMethodName { get; set; }
|
|
|
/// <summary>
|
/// 第三方设备输入参数
|
/// </summary>
|
dynamic InputPara { get; set; }
|
}
|
}
|