92 lines
2.5 KiB
C#
92 lines
2.5 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace Model
|
||
{
|
||
/// <summary>
|
||
/// 交互模型
|
||
/// </summary>
|
||
public class InteractionModel
|
||
{
|
||
/// <summary>
|
||
/// 运行中(报告当前设备是否处于运行状态)
|
||
/// </summary>
|
||
public bool Running { get; set; }
|
||
|
||
/// <summary>
|
||
/// 安全信号
|
||
/// </summary>
|
||
public bool Safe { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否有请求 (请求方发出)
|
||
/// </summary>
|
||
public bool Request { get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否有请求 (请求方发出)
|
||
/// </summary>
|
||
public bool RequestCache { get; set; }
|
||
/// <summary>
|
||
/// 请求类型(请求方赋值) 1:穴位1 2:穴位2
|
||
/// </summary>
|
||
public int RequestType { get; set; }
|
||
/// <summary>
|
||
/// 请求完成 (被请求方发出)
|
||
/// </summary>
|
||
public bool RequestAchieve { get; set; }
|
||
|
||
/// 请求完成 (被请求方发出)
|
||
/// </summary>
|
||
public bool RequestCacheAchieve { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品对象 (被请求方赋值)
|
||
/// </summary>
|
||
public ShowInfo Product { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出料请求
|
||
/// </summary>
|
||
public bool RequestOut { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出料请求
|
||
/// </summary>
|
||
public bool RequestOutCache { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出料产品对象(由当前站给下一站识别)
|
||
/// </summary>
|
||
public ShowInfo OutProducr { get; set; }
|
||
|
||
/// <summary>
|
||
/// 出料产品对象(由当前站给下一站识别)
|
||
/// </summary>
|
||
public List<ShowInfo> OutProducrList { get; set; }
|
||
|
||
/// <summary>
|
||
/// 发给上一站,表示 出料产品已经被取走了
|
||
/// </summary>
|
||
public bool OutProducrOK { get; set; }
|
||
|
||
/// <summary>
|
||
/// 发给上一站,表示 出料产品已经被取走了
|
||
/// </summary>
|
||
public bool OutCacheProducrOK { get; set; }
|
||
/// <summary>
|
||
/// 发给上一站 表示取走产品的索引或序列
|
||
/// </summary>
|
||
public int OutProducrNumber { get; set; }
|
||
|
||
public InteractionModel()
|
||
{
|
||
Product = new ShowInfo();
|
||
OutProducr = new ShowInfo();
|
||
}
|
||
}
|
||
}
|