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

Pattern Framework 模式&框架 Institute of Computer Software 2022-2-27 Nanjing University
模式&框架 Pattern & Framework 2022-2-27 Institute of Computer Software Nanjing University 1

&雪扇 摘要 1002 UNIVE 2 口More about Pattern Framework Comparison Institute of Computer Software 2022-2-27 Nanjing University
摘要 More about Pattern Framework Comparison 2022-2-27 Institute of Computer Software Nanjing University 2

&雪扇 摘要 UNIVE 3 More about Pattern Framework Comparison Institute of Computer Software 2022-2-27 Nanjing University
摘要 More about Pattern Framework Comparison 2022-2-27 Institute of Computer Software Nanjing University 3

&雪扇 More about Pattern 0o2 UNIVE 4 Patterns of Patterns Anti-pattern J2EE patterns Institute of Computer Software 2022-2-27 Nanjing University
More about Pattern Patterns of Patterns Anti-pattern J2EE patterns 2022-2-27 Institute of Computer Software Nanjing University 4

&雪扇 More about Pattern 0o2 UNIVE 5 Patterns of Patterns Anti-pattern J2EE patterns Institute of Computer Software 2022-2-27 Nanjing University
More about Pattern Patterns of Patterns Anti-pattern J2EE patterns 2022-2-27 Institute of Computer Software Nanjing University 5

&扇 NAN Working together 1902 6 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. Institute of Computer Software 2022-2-27 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. 2022-2-27 Institute of Computer Software Nanjing University 6

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

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

Duck Example 102 9 Start with a bunch of Quackables.. ▣/ A goose came along and wanted to act like a Quakable too. Adapter Then,the Quackologists decided they wanted to count quacks. Decorator Abstract factory 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. Composite Iterator The Quackologists also wanted to be notified when any quackable quacked. Observer Institute of Computer Software 2022-2-27 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. 2022-2-27 Institute of Computer Software Nanjing University 9 Adapter Decorator Abstract factory Composite Iterator Observer

&雪扇 Compound Patterns 102 UNIVE 10 ▣MVC a song about MVC by James Dempsey (lyrics) the view display is updated for your actions you you see the song go to the display update and controller hear the new song "Play new song' playing View Controller Model tells the view the state has changed Player model to begin playing the model notifles song the view of a change in state controller manlpulates the model Model The model contains all the state. data,and application logic needed to maintain and play mp3s Institute of Computer Software 2022-2-27 Nanjing University
Compound Patterns MVC a song about MVC by James Dempsey (lyrics) 2022-2-27 Institute of Computer Software Nanjing University 10
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)13 设计模式 Design Patterns(3).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)12 设计模式 Design Patterns(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)11 设计模式 Design Patterns(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)10 敏捷软件开发 Agile Software Development.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)09 面向对象的分析与设计简介 OOA & OOD:An introduction.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)08 对象序列化和持久化 Serialization and Persistence.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)07 Java并发编程 Concurrent Programming in Java.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)06 并发对象 Concurrent Objects.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)05 异常处理 Exception Handling.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)04 契约式设计 Design by Contract.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)03 类和对象 Class and Object.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)02 抽象数据类型 Abstract Data Types.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)01 Introduction(主讲:余萍).ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第16讲 信息系统应用.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第15讲 信息系统管理.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第14讲 实现与测试.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第13讲 系统设计实践(小区物业管理系统).ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第12讲 详细设计(下)界面设计.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第11讲 详细设计(中)数据库设计.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第10讲 详细设计(上).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)15 面向方面的编程 Aspect Oriented Programming(AOP).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)16 构件化软件 Component Software.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)17 分布对象 Distributed Objects(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)18 分布对象 Distributed Objects(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)19 复习和总结 Object-Oriented Technology:Review and Conclusion Remarks.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)实习项目概述.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(实习指南)医院预约挂号系统.docx
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)OOT实习指南.pptx
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)33 O-O programming and Ada.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)06 Abstract data types.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)27 Object-oriented analysis.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)E Bibliography.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)07 The static structure:classes.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)30 Concurrency, distribution, client-server and the Internet.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)11 Design by Contract:building reliable software.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)02 Criteria of object orientation.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)34 Emulating object technology in non-O-O environments.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)36 An object-oriented environment.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)Epilogue, In Full Frankness Exposing the Language.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)12 When the contract is broken:exception handling.pdf