南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)模式&框架 Pattern & Framework

Pattern Frame work 模式&框架 Institute of Computer Software 2021/27 Nanjing University
模式&框架 Pattern & Framework 2021/2/7 Institute of Computer Software Nanjing University 1

最病 过摘要 2 口 More about pattern 口 Framework 口 Comparison Institute of Computer Software 2021/2/7 Nanjing University
摘要 More about Pattern Framework Comparison 2021/2/7 Institute of Computer Software Nanjing University 2

最病 o More about Pattern 口 Patterns of patterns 口Anti- pattern 口J2 EE patterns Institute of Computer Software 2021/2/7 Nanjing University
More about Pattern Patterns of Patterns Anti-pattern J2EE patterns 2021/2/7 Institute of Computer Software Nanjing University 4

最病 o More about Pattern 5 口 Patterns of patterns 口Anti- pattern 口J2 EE patterns Institute of Computer Software 2021/2/7 Nanjing University
More about Pattern Patterns of Patterns Anti-pattern J2EE patterns 2021/2/7 Institute of Computer Software Nanjing University 5

最病 A Working together 6 n Patterns are often used together and combined with the same design solution o a compound pattern combines two or more patterns into a solution that solves a recurring or general problem. Institute of Computer Software 2021/2/7 Nanjing University
Working together Patterns are often used together and combined with the same design solution. A compound pattern combines two or more patterns into a solution that solves a recurring or general problem. 2021/2/7 Institute of Computer Software Nanjing University 6

Example:设计一个文档编辑器 7 口设计问题 口文档结构 口格式化 口修饰用户界面 口支持多种视感look-and-e标准 口支持多种窗口系统 口用户操作 口拼写检查和连字符 Institute of Computer Software 2021/2/7 Nanjing University
Example:设计一个文档编辑器 设计问题 文档结构 格式化 修饰用户界面 支持多种视感(look-and-feel)标准 支持多种窗口系统 用户操作 拼写检查和连字符 2021/2/7 Institute of Computer Software Nanjing University 7

使用设计模式 a Composite表示文档的物理结构:递归组合 口 Strategyγ允许不同的格式化算法 口 Decorator修饰用户界面 口 Abstract Factory支持多视感标准 口 Bridge允许多个窗口平台 口 Command支持撤销用户操作 口 Iterator访问和遍历对象结构 口 Visitor允许无限扩充分析能力而又不会使文档结 构的实现复杂化 Institute of Computer Software 2021/2/7 Nanjing University
使用设计模式 Composite表示文档的物理结构:递归组合 Strategy允许不同的格式化算法 Decorator修饰用户界面 Abstract Factory支持多视感标准 Bridge允许多个窗口平台 Command支持撤销用户操作 Iterator访问和遍历对象结构 Visitor允许无限扩充分析能力而又不会使文档结 构的实现复杂化 2021/2/7 Institute of Computer Software Nanjing University 8

最病 A Duck Example 9 a Start with a bunch of quackables o a goose came along and wanted to act like a Quakable too Adapter n Then the Quackologists decided they wanted to count lacks. Decorator Abstract factory j o but the quackologists were worried theyd forget to add the Quack Counter decorator a We had management problems keeping track of all those ducks and geese and quackables Composite Iterator n The Qvackologists also wanted to be notified when any quackable quacked. Observer Institute of Computer Software 2021/2/7 Nanjing University
Duck Example Start with a bunch of Quackables.. A goose came along and wanted to act like a Quakable too. Then, the Quackologists decided they wanted to count quacks. But the Quackologists were worried they’d forget to add the QuackCounter decorator. We had management problems keeping track of all those ducks and geese and quackables. The Quackologists also wanted to be notified when any quackable quacked. 2021/2/7 Institute of Computer Software Nanjing University 9 Adapter Decorator Abstract factory Composite Iterator Observer

最病 A Compound Patterns 口MVC aa song about MvC by James Dempsey (yrics you urface and ey see the en9 mey new so pining View Controller det tells the ew the state has Contreller os The odel containd all the state. data, and appeats Institute of Computer Software 2021/2/7 Nanjing University
Compound Patterns MVC a song about MVC by James Dempsey (lyrics) 2021/2/7 Institute of Computer Software Nanjing University 10

最病 E MVO a MVC is a compound pattern consisting of the Observer(model), Strategy (controller )and Composite(view) patterns. a The Adapter pattern can be used to adapt a new model to an existing view and controller Institute of Computer Software 2021/2/7 Nanjing University
MVC MVC is a compound pattern consisting of the Observer (model), Strategy (controller) and Composite (view) patterns. The Adapter pattern can be used to adapt a new model to an existing view and controller. 2021/2/7 Institute of Computer Software Nanjing University 11
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《数据库系统概论 An Introduction to Database System》课程教学资源(PPT课件讲稿)第二讲 关系数据库.ppt
- 《计算机辅助设计》课程介绍.pdf
- 沈阳工程学院:《面向对象程序设计》课程教学大纲(适用专业:计算机科学与技术专业).pdf
- 《编译原理》课程教学资源(PPT课件讲稿)从正则表达式到有限自动机.pptx
- Introduction to Computing Using Java(PPT讲稿)Java Language Basics.ppt
- 《物联网导论》课程教学资源(PPT课件讲稿)第2章 自动识别技术与RFID.ppt
- 《计算机维修》课程教学资源(PPT课件讲稿)第3章 磁盘工具.ppt
- 《数据结构》课程PPT教学课件(讲稿)第一章 数据结构基础.ppsx
- 华北科技学院:图像的采集与处理(PPT课件讲稿)Photoshop CS.ppt
- 《JAVA与面向对象编程》课程教学资源(PPT课件讲稿)第二章 Java语法基础.ppt
- 《C语言程序设计》课程电子教案(PPT教学课件)第四章 选择结构程序设计.ppt
- 西安交通大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第7章 模拟量输入输出接口.ppt
- Wrapper Generation and HTML Reduction(PPT讲稿).ppt
- 《微机原理》课程教学资源(PPT课件讲稿)第九章 可编程接口芯片及其与CPU的接口.ppt
- 面向服务的业务流程管理(PPT讲稿)Business Process Modeling Notation(BPMN), Business Process Executive Language(BPEL), and XML Process Definition Language(XPDL).pptx
- 上海交通大学:《微机原理与接口技术》课程教学资源(教学大纲)信息与计算科学专业.pdf
- 《计算机组装与维护》课程教学资源(PPT课件讲稿)第七章 计算机硬件故障处理.ppt
- 《Photoshop_CS入门教程》教学资源(PPT讲稿)第1章 浏览Photoshop CS.ppt
- 山东大学:《微机原理及单片机接口技术》课程教学资源(PPT课件讲稿)第七章 定时计数器与可编程计数器阵列.ppt
- 《计算机网络》课程教学资源(PPT课件讲稿)第三章 数据链路层.ppt
- 《C语言程序设计》课程电子教案(PPT课件讲稿)第二章 基本数据类型及运算.ppt
- Performance Evaluation of Long Range Dependent Queues(PPT讲稿).pptx
- 上海海事大学:《数字图像处理》课程教学资源(PPT课件讲稿)Unit 7 Introduction to Digital Image Processing.ppt
- 《网络搜索和挖掘关键技术 Web Search and Mining》课程教学资源(PPT讲稿)Lecture 08 Scoring and results assembly.ppt
- 《数据库基础》课程教学资源(PPT课件讲稿)第四章 数据查询.ppt
- 北京大学:C++模板与STL库介绍(PPT讲稿).ppt
- Computer Graphics(PPT讲稿)INFORMATION VISUALIZATION.pptx
- 档案数字化基本程序与要求(PPT讲稿).ppt
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第5章 指令级并行.pptx
- 上海交通大学:《程序设计》课程教学资源(PPT课件讲稿)第14章 输入输出与文件.ppt
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第7章 多处理器及线程级并行.ppt
- 南京大学:《编译原理》课程教学资源(PPT课件讲稿)第五章 语法制导的翻译.ppt
- 河南中医药大学:《网络技术实训》课程教学资源(PPT课件讲稿)第一阶段 组网(主讲:路景鑫).pptx
- 《SQL基础教程》课程教学资源(PPT课件讲稿)第6章 数据操作与SQL语句.ppt
- 《计算机基础及C语言程序设计》课程PPT教学课件(讲稿)第1章 概论.ppt
- 西安交通大学:《网络与信息安全》课程PPT教学课件(网络入侵与防范)身份认证.ppt
- 《计算机网络和因特网》教学资源(PPT讲稿)网络互连(概念, IP 地址, IP 路由, IP 数据报, 地址解析).ppt
- 《高级语言程序设计》课程教学资源(试卷习题)试题四(无答案).doc
- 上海交通厌:《通信网络》课程教学资源(PPT讲稿)DELAY MODELS IN DATA NETWORKS、LITTLE’S LAW、ARRIVAL MODEL、M/M/X QUEUING MODELS.pptx
- 《软件工程》课程教学资源(PPT课件讲稿)第7章 软件测试.ppt