using WIDESEAWCS_S7Simulator.Core.Interfaces; using WIDESEAWCS_S7Simulator.Core.Protocol; namespace WIDESEAWCS_S7Simulator.Application.Protocol; /// /// 设备协议处理器接口。 /// 每个设备使用一个独立实现类,便于后续单设备扩展。 /// public interface IDeviceProtocolHandler { /// /// 协议名称(唯一)。 /// 由配置中的 ProtocolName 绑定到具体处理器。 /// string ProtocolName { get; } /// /// 执行设备协议处理逻辑。 /// bool Process(IMemoryStore memoryStore, ProtocolTemplate template, ProtocolRuntimeState runtimeState); }