当前位置:网站首页>【DesignMode】外观模式 (facade patterns)
【DesignMode】外观模式 (facade patterns)
2022-07-07 14:16:00 【weixin_43224306】
基本介绍
外观模式(Facade),也叫“过程模式:外观模式为子系统中的一组接口 提供一个一致的界面,此模式定义了一个高层接口,这个接口使得这一子系统更加容易使用
外观模式通过定义一个一致的接口,用 以屏蔽内部子系统的细节,使得 调用端只需跟这个接口发生调用,而无需关心这个子系统的内部细节
1. 影院管理项目
组建一个家庭影院:
DVD 播放器、投影仪、自动屏幕、环绕立体声、爆米花机,要求完成使用家庭影院的功能,其过程为:
直接用遥控器:统筹各设备开关
开爆米花机
放下屏幕
开投影仪
开音响
开 DVD,选 dvd
去拿爆米花
调暗灯光
播放
观影结束后,关闭各种设备
2. 传统方式解决影院管理
类图:

代码:
ClientTest{
public static 边栏推荐
- Three. JS series (2): API structure diagram-2
- 模仿企业微信会议室选择
- Description of vs common shortcut keys
- Balanced binary tree (AVL)
- The difference and working principle between compiler and interpreter
- How to determine whether the checkbox in JS is selected
- The team of East China Normal University proposed the systematic molecular implementation of convolutional neural network with DNA regulation circuit
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- The inevitable trend of the intelligent development of ankerui power grid is that microcomputer protection devices are used in power systems
- 删除 console 语句引发的惨案
猜你喜欢
![[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3](/img/8f/ca9ab042916f68de7994d9f2124da9.jpg)
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3

【Vulnhub靶场】THALES:1

MySQL数据库基本操作-DQL-基本查询
![[vulnhub range] thales:1](/img/fb/721d08697afe9b26c94fede628c4d1.png)
[vulnhub range] thales:1
![Unity drawing plug-in = = [support the update of the original atlas]](/img/b0/92114ffb1f168a1f27125db46c6797.jpg)
Unity drawing plug-in = = [support the update of the original atlas]

分步式監控平臺zabbix

记一次项目的迁移过程

记录Servlet学习时的一次乱码

2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo

Odoo集成Plausible埋码监控平台
随机推荐
Laravel service provider instance tutorial - create a service provider test instance
Power of leetcode-231-2
Have fun | latest progress of "spacecraft program" activities
Strengthen real-time data management, and the British software helps the security construction of the medical insurance platform
Record the migration process of a project
JS modularization
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
AutoLISP series (2): function function 2
MySQL中, 如何查询某一天, 某一月, 某一年的数据
【Vulnhub靶场】THALES:1
[vulnhub range] thales:1
Talk about the cloud deployment of local projects created by SAP IRPA studio
How to implement backspace in shell
3000 words speak through HTTP cache
121. 买卖股票的最佳时机
Leetcode-231-2的幂
Logback logging framework third-party jar package is available for free
MySQL数据库基本操作-DQL-基本查询
Excessive dependence on subsidies, difficult collection of key customers, and how strong is the potential to reach the dream of "the first share of domestic databases"?
Sysom case analysis: where is the missing memory| Dragon lizard Technology