当前位置:网站首页>[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 边栏推荐
- [Android -- data storage] use SQLite to store data
- Horizontal and vertical centering method and compatibility
- Sysom case analysis: where is the missing memory| Dragon lizard Technology
- Balanced binary tree (AVL)
- JS modularization
- Laravel5.1 路由 -路由分组
- MySQL中, 如何查询某一天, 某一月, 某一年的数据
- Laravel 服务提供者实例教程 —— 创建 Service Provider 测试实例
- Statistical learning method -- perceptron
- JS 模块化
猜你喜欢

Continuous creation depends on it!

AutoLISP series (2): function function 2

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

Logback logging framework third-party jar package is available for free

华东师大团队提出,具有DNA调控电路的卷积神经网络的系统分子实现

爬虫(17) - 面试(2) | 爬虫面试题库

Odoo集成Plausible埋码监控平台

Opencv configuration 2019vs

全网“追杀”钟薛高

TiDB For PostgreSQL和YugabyteDB在Sysbench上的性能对比
随机推荐
两类更新丢失及解决办法
[summary of knowledge] summary of notes on using SVN in PHP
How does laravel run composer dump autoload without emptying the classmap mapping relationship?
模拟Servlet的本质
Opportunity interview experience summary
laravel构造函数和中间件执行顺序问题
laravel 是怎么做到运行 composer dump-autoload 不清空 classmap 映射关系的呢?
IP地址和物理地址有什么区别
Logback logging framework third-party jar package is available for free
Prometheus API deletes all data of a specified job
网关Gateway的介绍与使用
markdown公式编辑教程
Iptables only allows the specified IP address to access the specified port
JS中null NaN undefined这三个值有什么区别
平衡二叉树(AVL)
全网“追杀”钟薛高
爬虫(17) - 面试(2) | 爬虫面试题库
PHP中exit,exit(0),exit(1),exit(‘0’),exit(‘1’),die,return的区别
Lecturer solicitation order | Apache seatunnel (cultivating) meetup sharing guests are in hot Recruitment!
修改配置文件后tidb无法启动