当前位置:网站首页>[designmode] facade patterns
[designmode] facade patterns
2022-07-07 16:36:00 【weixin_ forty-three million two hundred and twenty-four thousan】
Basic introduction
Appearance mode (Facade), Also called “ Process mode : A skin mode is a set of interfaces in a subsystem Provide a consistent interface , This pattern defines a high-level interface , This interface makes this subsystem easier to use
The facade pattern defines a consistent interface , use To shield the details of internal subsystems , bring The caller only needs to call this interface , You don't need to care about the internal details of this subsystem
1. Cinema Management Project
Set up a home theater :
DVD player 、 Projector 、 Auto screen 、 Surround sound 、 Popcorn machine , It is required to complete the function of using home theater , The process is :
Directly with the remote control : Coordinate the switch of each equipment
Open the popcorn machine
Put down the screen
Turn on the projector
Turn on the stereo
open DVD, choose dvd
Go get the popcorn
Dim the lights
Play
After watching the movie , Shut down the devices
2. Traditional way to solve theater management
Class diagram :
Code :
ClientTest{
public static
边栏推荐
- 预测——灰色预测
- Leetcode-136- number that appears only once (solve with XOR)
- 修改配置文件后tidb无法启动
- Cesium (4): the reason why gltf model is very dark after loading
- Unity3d click events added to 3D objects in the scene
- MySQL数据库基本操作-DQL-基本查询
- Leetcode-136-只出现一次的数(用异或来解答)
- 记录Servlet学习时的一次乱码
- Logback日志框架第三方jar包 免费获取
- Rongyun won the 2022 China Xinchuang digital office portal excellence product award!
猜你喜欢
随机推荐
95.(cesium篇)cesium动态单体化-3D建筑物(楼栋)
Logback日志框架第三方jar包 免费获取
Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
23. 合并K个升序链表-c语言
Personal notes of graphics (1)
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
47_Opencv中的轮廓查找 cv::findContours()
logback.xml配置不同级别日志,设置彩色输出
Introduction to ThinkPHP URL routing
[Android -- data storage] use SQLite to store data
three. JS create cool snow effect
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
删除 console 语句引发的惨案
null == undefined
What are compiled languages and interpreted languages?
MySQL中, 如何查询某一天, 某一月, 某一年的数据
面试题 01.02. 判定是否互为字符重排-辅助数组算法
【PHP】PHP接口继承及接口多继承原理与实现方法
prometheus api删除某个指定job的所有数据
pycharm 终端部启用虚拟环境