当前位置:网站首页>[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
边栏推荐
- 修改配置文件后tidb无法启动
- Have fun | latest progress of "spacecraft program" activities
- 1亿单身男女“在线相亲”,撑起130亿IPO
- 二叉搜索树(特性篇)
- 统计学习方法——感知机
- 如何快速检查钢网开口面积比是否符合 IPC7525
- Bidding announcement: 2022 Yunnan Unicom gbase database maintenance public comparison and selection project (second) comparison and selection announcement
- 全网“追杀”钟薛高
- 网关Gateway的介绍与使用
- How to determine whether the checkbox in JS is selected
猜你喜欢
Performance comparison of tidb for PostgreSQL and yugabytedb on sysbench
Opencv configuration 2019vs
Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
C语言进阶——函数指针
Continuous creation depends on it!
torch.numel作用
Odoo集成Plausible埋码监控平台
Balanced binary tree (AVL)
Have fun | latest progress of "spacecraft program" activities
Shandong old age Expo, 2022 China smart elderly care exhibition, smart elderly care and aging technology exhibition
随机推荐
Tragedy caused by deleting the console statement
Laravel changed the session from file saving to database saving
asyncio 概念和用法
【DesignMode】外观模式 (facade patterns)
Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
【MySql进阶】索引详解(一):索引数据页结构
How to determine whether the checkbox in JS is selected
spark调优(三):持久化减少二次查询
logback. XML configure logs of different levels and set color output
MySQL数据库基本操作-DQL-基本查询
How can laravel get the public path
[flower carving experience] 15 try to build the Arduino development environment of beetle esp32 C3
Cesium(3):ThirdParty/zip. js
2022 the 4th China (Jinan) International Smart elderly care industry exhibition, Shandong old age Expo
分类模型评价标准(performance measure)
01tire+链式前向星+dfs+贪心练习题.1
Personal notes of graphics (4)
Laravel5.1 路由 -路由分组
二叉搜索树(特性篇)
How to query the data of a certain day, a certain month, and a certain year in MySQL