当前位置:网站首页>[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 边栏推荐
- 目标跟踪常见训练数据集格式
- Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
- TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
- 深度监听 数组深度监听 watch
- [C language] question set of X
- 二叉搜索树(基操篇)
- Personal notes of graphics (3)
- pycharm 终端部启用虚拟环境
- 【DesignMode】享元模式(Flyweight Pattern)
- AutoLISP series (3): function function 3
猜你喜欢

【MySql进阶】索引详解(一):索引数据页结构

You Yuxi, coming!

【C 语言】 题集 of Ⅹ

Prediction - Grey Prediction

The team of East China Normal University proposed the systematic molecular implementation of convolutional neural network with DNA regulation circuit

Personal notes of graphics (1)

Personal notes of graphics (4)

Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation

模仿企业微信会议室选择
3000 words speak through HTTP cache
随机推荐
What about the pointer in neural network C language
Record the migration process of a project
Balanced binary tree (AVL)
【知识小结】PHP使用svn笔记总结
打造All-in-One应用开发平台,轻流树立无代码行业标杆
二叉搜索树(特性篇)
Opportunity interview experience summary
Laravel service provider instance tutorial - create a service provider test instance
数据中台落地实施之法
[summary of knowledge] summary of notes on using SVN in PHP
Vs tool word highlight with margin
What else can an ordinary person do besides working in a factory to make money?
prometheus api删除某个指定job的所有数据
PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()
121. 买卖股票的最佳时机
Prediction - Grey Prediction
php 自带过滤和转义函数
Imitate the choice of enterprise wechat conference room
Good news! Kelan sundb database and Hongshu technology privacy data protection management software complete compatibility adaptation
面试题 01.02. 判定是否互为字符重排-辅助数组算法