而POAD能解决这些问题:POAD——Pattern-Oriented Analysis and Design(面向模式的分析和设计),它使用结构的合成在高层次的设计上粘合(glue)设计模式,它基于这样的前提:在某些设计层次,对于应用于应用的设计模式有足够的认识,并且设计者不会受制于模式的内部设计细节。POAD提供逻辑视图去表达作为模式组合的应用设计,还提供必须的方法去跟踪这些模式的参与者到应用的最终类图里面。POAD的用途包括:
2、The design uses a prototypical pattern application to derive the composite design pattern. A prototypical application is a concrete application, which is usually represented by an object diagram. It plays the role of the concrete example to be abstracted.
4、使用带有注解过的角色的对象图,设计者创建一个角色关系矩阵。The role relationship matrix is used to analyze how roles are close to each other in terms of the composition constraints. The purpose of this analysis is to discover the pattern interaction synergy and unleash any composite roles. As a result, role equivalent sets that form composite roles are defined. The role relationship matrix is reduced to a final role relationship matrix.
5、最终的角色关系矩阵被用来为组合设计模式创建角色图(the role diagram for the composite design pattern.)。