using System.Collections.ObjectModel; using DMS.Core.Enums; namespace DMS.Models; /// /// 表示设备信息。 /// public partial class Device { /// /// 设备的描述信息。 /// private string description; /// /// 设备的类型。 /// public DeviceType DeviceType { get; set; } /// /// 设备的唯一标识符。 /// private int id; /// /// 设备的IP地址。 /// private string ip; /// /// 表示设备是否处于活动状态。 /// private bool isActive = true; /// /// 表示是否添加默认变量表。 /// private bool isAddDefVarTable = true; /// /// 表示设备是否正在运行。 /// private bool isRuning; /// /// 设备的名称。 /// private string name; /// /// 设备的端口号。 /// private int prot; /// /// PLC的CPU类型。 /// //private CpuType cpuType; /// /// PLC的机架号。 /// private short rack; /// /// PLC的槽号。 /// private short slot; /// /// 设备的通信协议类型。 /// public ProtocolType ProtocolType { get; set; } /// /// OPC UA Endpoint URL。 /// private string? opcUaEndpointUrl; /// /// 设备关联的变量表列表。 /// public ObservableCollection? VariableTables { get; set; } }