using BPA.Message;
using BPA.Message.Enum;
using BPASmartClient.Helper;
using BPASmartClient.Message;
using BPASmartClient.Peripheral;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BPASmartClient.Device
{
///
/// 设备基类
///
public abstract class BaseDevice : IDevice
{
public BaseDevice()
{
}
#region 属性
///
/// 订单物料信息
///
protected OrderMaterialDelivery orderMaterialDelivery { get; set; } = new OrderMaterialDelivery();
///
/// 配方数据信息
///
protected RecipeBoms recipeBoms { get; set; } = new RecipeBoms();
///
/// 设备ID
///
public int DeviceId { get; set; }
///
/// 设备所有状态
///
public DeviceStatus Status { get; set; } = new DeviceStatus();
///
/// 设备名称
///
public string Name { get; set; }
///
/// 当前订单数量
///
protected int OrderCount { get; set; }
///
/// 设备初始化中
///
protected bool Initing { get; set; }
///
/// 设备类型
///
public abstract DeviceClientType DeviceType { get; }
///
/// 是否忙碌
///
public bool IsBusy { get; protected set; }
///
/// 是否健康
///
public bool IsHealth { get; protected set; }
///
/// 设备运行日志
///
public List