当前位置:网站首页>[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
边栏推荐
- Markdown formula editing tutorial
- [vulnhub range] thales:1
- Mysql database basic operation DQL basic query
- logback. XML configure logs of different levels and set color output
- 面试题 01.02. 判定是否互为字符重排-辅助数组算法
- hellogolang
- Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
- Prediction - Grey Prediction
- How can laravel get the public path
- Personal notes of graphics (4)
猜你喜欢
【DesignMode】外观模式 (facade patterns)
AutoLISP series (2): function function 2
null == undefined
Sysom case analysis: where is the missing memory| Dragon lizard Technology
Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
【C 语言】 题集 of Ⅹ
数据中台落地实施之法
全网“追杀”钟薛高
Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
随机推荐
MySQL中, 如何查询某一天, 某一月, 某一年的数据
Sysom case analysis: where is the missing memory| Dragon lizard Technology
You Yuxi, coming!
如何快速检查钢网开口面积比是否符合 IPC7525
Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
【HCSD大咖直播】亲授大厂面试秘诀-简要笔记
Xcode Revoke certificate
Find tags in prefab in unity editing mode
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
二叉搜索树(基操篇)
95. (cesium chapter) cesium dynamic monomer-3d building (building)
【DesignMode】享元模式(Flyweight Pattern)
What else can an ordinary person do besides working in a factory to make money?
[vulnhub range] thales:1
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
【MySql进阶】索引详解(一):索引数据页结构
Geoserver2.18 series (5): connect to SQLSERVER database
Laravel service provider instance tutorial - create a service provider test instance
Personal notes of graphics (2)