BxCmdFactory.py 600 B

12345678910111213141516171819202122
  1. from .BxCmdSendDynamicArea import NewBxCmdSendDynamicArea
  2. from .BxCmdState import NewCmdState
  3. from .BxCmdReadParams import NewCmdReadParams
  4. class BxCmdFactory:
  5. """命令工厂类,用于创建各种命令实例"""
  6. @staticmethod
  7. def NewBxCmdSendDynamicArea(areas):
  8. """创建发送动态区域命令"""
  9. return NewBxCmdSendDynamicArea(areas)
  10. @staticmethod
  11. def NewCmdState():
  12. """创建系统状态命令"""
  13. return NewCmdState()
  14. @staticmethod
  15. def NewCmdReadParams():
  16. """创建读取参数命令"""
  17. return NewCmdReadParams()