| 12345678910111213141516171819202122 |
- from .BxCmdSendDynamicArea import NewBxCmdSendDynamicArea
- from .BxCmdState import NewCmdState
- from .BxCmdReadParams import NewCmdReadParams
- class BxCmdFactory:
- """命令工厂类,用于创建各种命令实例"""
- @staticmethod
- def NewBxCmdSendDynamicArea(areas):
- """创建发送动态区域命令"""
- return NewBxCmdSendDynamicArea(areas)
- @staticmethod
- def NewCmdState():
- """创建系统状态命令"""
- return NewCmdState()
- @staticmethod
- def NewCmdReadParams():
- """创建读取参数命令"""
- return NewCmdReadParams()
|