命令模式-遥控器API
2016-05-29 14:41:58 0 举报
设计模式UML图,巴斯特家电自动化公司
作者其他创作
大纲/内容
public void excute(){ light.off();}
Light
+ on()+ off()
LightOffCommand
+ light:type = Light
+ excute()
NoCommand
public void excute(){ light.on();}
Command
+ excute()+ undo()
RemoteLoader用来加载所有的资源bounding
LightOnCommand
RemoteController
+ onCommands:type = Command[]+ offCommands:type = Command[]
RemoteLoader
+ main()
0 条评论
下一页