using System.Collections.Generic; namespace WIDESEAWCS_S7Simulator.Core.Persistence.Models { /// /// 瀹炰緥鏁版嵁妯″瀷锛堢敤浜嶫SON搴忓垪鍖栵級 /// public class InstanceDataModel { /// /// 瀹炰緥ID /// public string Id { get; set; } = string.Empty; /// /// 瀹炰緥鍚嶇О /// public string Name { get; set; } = string.Empty; /// /// PLC绫诲瀷 /// public string PlcType { get; set; } = string.Empty; /// /// 鐩戝惉绔彛 /// public int Port { get; set; } /// /// 婵€娲诲瘑閽? /// public string ActivationKey { get; set; } = string.Empty; /// /// 鑷姩鍚姩 /// public bool AutoStart { get; set; } /// /// 协议模板ID /// public string ProtocolTemplateId { get; set; } = string.Empty; /// /// 鍐呭瓨鍖哄煙閰嶇疆 /// public MemoryRegionConfigModel MemoryConfig { get; set; } = new(); } /// /// 鍐呭瓨鍖哄煙閰嶇疆妯″瀷 /// public class MemoryRegionConfigModel { public int MRegionSize { get; set; } = 1024; public int DBBlockCount { get; set; } = 100; public List DBBlockNumbers { get; set; } = new(); public int DBBlockSize { get; set; } = 1024; public int IRegionSize { get; set; } = 256; public int QRegionSize { get; set; } = 256; public int TRegionCount { get; set; } = 64; public int CRegionCount { get; set; } = 64; } /// /// 鍐呭瓨鏁版嵁妯″瀷 /// public class MemoryDataModel { /// /// 鍐呭瓨鍖哄煙鏁版嵁瀛楀吀锛堝尯鍩熺被鍨?-> Base64缂栫爜鐨勫瓧鑺傛暟缁勶級 /// public Dictionary MemoryData { get; set; } = new(); } }