面向对象uml7.pptVIP

  • 2
  • 0
  • 约1.06万字
  • 约 74页
  • 2017-12-19 发布于江苏
  • 举报
面向对象uml7

面向对象技术 Object-Oriented Techniques 第 7 章面向对象的设计模式 Object-Oriented Design Patterns Review: Object-Oriented Design Principles LSP:Liskov替换原则 The Liskov Substitution Principle OCP:开放-封闭原则 The Open-Close Principle SRP:单一职责原则 The Single Responsibility Principle ISP:接口隔离原则 The Interface Segregation Principle DIP:依赖倒置原则 The Dependency Inversion Principle …… 学习线路图 References [GoF94], Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides, Design Patterns: Elements of Reuseable Object-Oriented Software(李英军等译,设计模式—可复用面向对象软件的基础,机械工业出版社,2000年) [Mart02], Robert C. Martin, Agile Software Development-Principles, Patterns, and Practices(邓辉译,敏捷软件开发-原则、模式与实践,清华大学出版社,2003年) [Gold01], Brandon Goldfedder, The Joy of Patterns: Using Patterns for Enterprise Development(熊节译,模式的乐趣,清华大学出版社,2003年) [Larm01], Craig Larman, Applying UML and Patterns, 2e(姚淑珍、李虎等译,UML和模式应用-面向对象分析与设计导论,机械工业出版社,2002年) 内容安排 从原则到模式 设计模式 GoF设计模式及应用 GRASP职责分配模式 模式与编程语言 模式与重构 内容安排 从原则到模式 设计模式 GoF设计模式及应用 GRASP职责分配模式 模式与编程语言 模式与重构 模式? 设计? 设计模式? 模式 Pattern A decorative design, as for wallpaper, made up of elements in a regular arrangement A recognizable combination of action, qualities, etc., characteristic of a particular person or population 通用问题的解决方案 来自建筑行业 Christopher Alexander 1977年《A Pattern Language》 Concept of Patterns Each pattern describes a problem which occurs over and over again in our environments, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice. -- Christopher Alexander, A Pattern Language, 1977 模式的形式 模式的一个主要目标就是以一种别人容易接受的方式,捕捉那些重复出现的问题的解决方案 模式的形式: 名称 意图 动机 适用性 结构 参与者 协作 效果 实现 模式简史-1 模式简史-2 内容安排 从原则到模式 设计模式 GoF设计模式及应用 GRASP职责分配模式 模式与编程语言 模式与重构 设计模式 什么是设计模式? 设计就是解决方案—对某个问题的解决 如果某个解决方案对某类问题都很有用 这时就把它总结出来 这就产生了设计模式 设计模式 是: 优秀的设计范例 从优秀设计方案中发现和总结出来的经验 在实践中反复出现的设计问题的优秀解决方案 设计者相互交流的基本术语:设计语言 培养优秀设计师的一条捷径 不是: 面向对象设计的框架 可供简单组合的设计元件 发明创造出来的创新思路 解决面向对象设计问题的完整方案 设计模式的基本要素 1. 名称:用于助记,形象

文档评论(0)

1亿VIP精品文档

相关文档