Fork me on GitHub
摘要: 策略模式(Strategy Pattern) + 工厂模式(Factory Pattern) + 命令模式(Command Pattern) 1. 策略模式 封装不同设备的指令生成算法 // 策略接口 public interface CommandGenerateStrategy { /** * 阅读全文
posted @ 2025-12-31 21:26 秋夜雨巷 阅读(21) 评论(0) 推荐(0)