四巨头GoF的《设计模式》中23种设计模式的UML图 - 2 of 4
2013-01-25 20:38
483 查看
INTENTS AND DIAGRAMS OF 23 DESIGN PATTERNS
1: DOTV
2: PAMIB
3: SFC
*Decorator: A DECORATOR attaches additional responsibilities to a COMPONENT dynamically. DECORATORS provide a flexible alternative to subclassing for extending the COMPONENT’s functionality.
CCOR
7. Extending functionality by subclassing.
8. Inability to alter classes conveniently.
*Observer: Define a one-to-many dependency between one SUBJECT and many OBSERVERS so that when one SUBJECT changes state, all its dependent OBSERVERS are notified and updated automatically.CCOR
6. Tight coupling.
7. Extending functionality by subclassing.
*Template Method: Define the skeleton of an algorithm in a template method of an ABSTRACT CLASS, deferring some steps to CONCRETE SUBCLASSES. Template Method lets subclassed CONCRETE CLASSES
redefine certain steps of an algorithm defined in parent ABSTRACT CLASS without changing the algorithm's structure.
CCOR
5. Algorithmic dependencies.
Visitor: A VISITOR encapsulates operations to be performed on the ELEMENTS of an OBJECT STRUCTURE. VISITOR lets you define a new operation without changing the classes of the elements
on which it operates.
CCOR:
5. Algorithmic dependencies.
8. Inability to alter classes conveniently.
相关文章推荐
- 四巨头GoF的《设计模式》中23种设计模式的UML图 - 3 of 4
- 四巨头GoF的《设计模式》中23种设计模式的UML图 - 4 of 4
- 四巨头GoF的《设计模式》中23种设计模式的UML图 - 1 of 4
- GOF 23种设计模式 : Gang Of Four 四人组.
- 设计模式精解-GoF 23种设计模式解析附C++实现源码
- 23种设计模式(22)_行为型_责任链模式(Chain of Responsibility Pattern)
- 为什么GOF的23种设计模式里面没有MVC?
- GoF23种设计模式之 - Factory Method模式
- (转):GOF设计模式趣解(23种设计模式)
- 笔记:Gof设计模式--Chain of Responsibility
- GoF23种设计模式之行为型模式之访问者模式
- GoF23种设计模式之结构型模式之组合模式
- GOF以及java的23种设计模式简介
- 为什么GOF的23种设计模式里面没有MVC?
- Java:GOF的23种设计模式(上)
- 设计模式----GOF 23种 设计模式顺口溜
- GOF23种设计模式精解
- GoF23种设计模式之行为型模式之观察者模式
- 工厂方法模式GoF23种设计模式之创建型模式之工厂方法模式
- Java:GOF的23种设计模式(上)