using System.Collections.ObjectModel;
using DMS.Core.Enums;
namespace DMS.Core.Models;
///
/// 表示设备信息。
///
public partial class Device
{
///
/// 设备的描述信息。
///
public string Description { get; set; }
///
/// 设备的类型。
///
public DeviceType DeviceType { get; set; }
///
/// 设备的唯一标识符。
///
public int Id { get; set; }
///
/// 设备的IP地址。
///
public string Ip { get; set; }
///
/// 表示设备是否处于活动状态。
///
public bool IsActive { get; set; } = true;
///
/// 表示是否添加默认变量表。
///
public bool IsAddDefVarTable { get; set; } = true;
///
/// 表示设备是否正在运行。
///
public bool IsRuning { get; set; }
///
/// 设备的名称。
///
public string Name { get; set; }
///
/// 设备的端口号。
///
public int Prot { get; set; }
///
/// PLC的CPU类型。
///
//public CpuType cpuType;
///
/// PLC的机架号。
///
public short Rack { get; set; }
///
/// PLC的槽号。
///
public short Slot { get; set; }
///
/// 设备的通信协议类型。
///
public ProtocolType ProtocolType { get; set; }
///
/// OPC UA Endpoint URL。
///
public string OpcUaEndpointUrl { get; set; }=String.Empty;
///
/// 设备关联的变量表列表。
///
public ObservableCollection? VariableTables { get; set; }
}