当前位置:网站首页>[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 边栏推荐
猜你喜欢

Cesium(3):ThirdParty/zip. js

1亿单身男女“在线相亲”,撑起130亿IPO

Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench

PyTorch 中的乘法:mul()、multiply()、matmul()、mm()、mv()、dot()

Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition

You Yuxi, coming!

Opencv personal notes

Power of leetcode-231-2

记录Servlet学习时的一次乱码

95. (cesium chapter) cesium dynamic monomer-3d building (building)
随机推荐
Personal notes of graphics (3)
Opencv personal notes
three.js打造酷炫下雪效果
JS中null NaN undefined这三个值有什么区别
AutoLISP series (2): function function 2
PHP has its own filtering and escape functions
删除 console 语句引发的惨案
1亿单身男女“在线相亲”,撑起130亿IPO
Detailed explanation of several ideas for implementing timed tasks in PHP
What else can an ordinary person do besides working in a factory to make money?
预测——灰色预测
What are compiled languages and interpreted languages?
23. 合并K个升序链表-c语言
Multiplication in pytorch: mul (), multiply (), matmul (), mm (), MV (), dot ()
平衡二叉树(AVL)
Bidding announcement: Fujian Rural Credit Union database audit system procurement project (re bidding)
Laravel constructor and middleware execution order
Unity3d click events added to 3D objects in the scene
Find tags in prefab in unity editing mode
Personal notes of graphics (4)