using System.Text.Json.Serialization;
using System.Collections.Generic;
namespace WIDESEAWCS_S7Simulator.Core.Entities
{
///
/// 内存区域配置
///
public class MemoryRegionConfig
{
///
/// M区大小(字节),默认1KB
///
[JsonPropertyName("mRegionSize")]
public int MRegionSize { get; set; } = 1024;
///
/// DB块数量,默认100个
///
[JsonPropertyName("dbBlockCount")]
public int DBBlockCount { get; set; } = 100;
///
/// 指定需要创建的 DB 块号列表(例如 50,900,901)。
/// 配置后只会初始化这些 DB 块。
///
[JsonPropertyName("dbBlockNumbers")]
public List DBBlockNumbers { get; set; } = new();
///
/// 每个DB块大小(字节),默认1KB
///
[JsonPropertyName("dbBlockSize")]
public int DBBlockSize { get; set; } = 1024;
///
/// I区大小(字节),默认256字节
///
[JsonPropertyName("iRegionSize")]
public int IRegionSize { get; set; } = 256;
///
/// Q区大小(字节),默认256字节
///
[JsonPropertyName("qRegionSize")]
public int QRegionSize { get; set; } = 256;
///
/// T区数量,默认64个
///
[JsonPropertyName("tRegionCount")]
public int TRegionCount { get; set; } = 64;
///
/// C区数量,默认64个
///
[JsonPropertyName("cRegionCount")]
public int CRegionCount { get; set; } = 64;
}
}