Facade
2016-06-29 12:23:24 20 举报
Facade 外观模式
作者其他创作
大纲/内容
Camera
+ TurnOn()+ TurnOff()+ Rotate()
Sensor
+ Activate()+ Deactivate()+ Trigger()
SecurityFacade
- a:Alarm- c1:Camera- c2:Camera- l1:Light- l2:Light- l3:Light- s:Sensor
+ Activtate()+ Deactivate()
Client
- sf:SecurityFacade
+ static Main()
Alarm
+ Activate()+ Deactivate()+ Ring()+ StopRing()
Light
+ TurnOn()+ TurnOff()+ ChangeLum()
0 条评论
下一页