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