1.What is important to describe DP
(1)Graphical notations capture the end product of the design process.
(2)We should record the decisions, alternatives, and trade-offs that led to it.
2.The way to describe DP
Each pattern is divided into sections according to the following template. The template lends a uniform structure to the information.
(1)Pattern name and Alias:名称和别名
(2)Classification:类别,便于理解。
(3)Intent:目的
(4)Motivation:a scenario about the problem and solution.
(5)Applicability:适用性
(6)Structure:图形的方式说明结构
(7)Participants:用到哪些类或对象,各自功能
(8)Collaborations:各Participants如何实现功能
(9)Consequences:为什么用这个DP?从results、trade-offs等方面入手
(10)Implementation:实现该DP时要注意的pitfalls、hints和techniques
(11)Sample Code:样例代码
(12)Known Uses:实际案例
(13)Related Patterns:相关DP
(1)Graphical notations capture the end product of the design process.
(2)We should record the decisions, alternatives, and trade-offs that led to it.
2.The way to describe DP
Each pattern is divided into sections according to the following template. The template lends a uniform structure to the information.
(1)Pattern name and Alias:名称和别名
(2)Classification:类别,便于理解。
(3)Intent:目的
(4)Motivation:a scenario about the problem and solution.
(5)Applicability:适用性
(6)Structure:图形的方式说明结构
(7)Participants:用到哪些类或对象,各自功能
(8)Collaborations:各Participants如何实现功能
(9)Consequences:为什么用这个DP?从results、trade-offs等方面入手
(10)Implementation:实现该DP时要注意的pitfalls、hints和techniques
(11)Sample Code:样例代码
(12)Known Uses:实际案例
(13)Related Patterns:相关DP