| 123456789101112131415161718192021222324252627 |
- from .BxCmdDelDynamicArea import NewCmdDelDynamicArea
- 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()
- @staticmethod
- def NewCmdDelDynamicArea(numbers):
- return NewCmdDelDynamicArea(numbers)
|