23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2O • The Analysis Matrix 299<br />

In a similar vein, I can look at the columns. Each column describes 7. Identify design<br />

which rules to use for each case. These entries represent the family patterns from this<br />

of objects needed for that case. This sounds like the Abstract Factory analysis: look at col-<br />

pattern. This is shown in Table 20-10. umns<br />

Table 2O-1O Implementing with the Abstract Factory Pattern<br />

Armed with the information that some of the rows represent a 8. Develop a Strategy<br />

pattern and each column represents a family in an Abstract high-level design Factory<br />

pattern, I can develop a high-level application design as shown in Figure 20-1.<br />

Field Notes<br />

In practice, almost any kind of pattern that involves polymorphism<br />

could be present in the Analysis Matrix. Of the patterns I've presented,<br />

this would include Bridge, Decorator, Template, and<br />

Observer. Other patterns I have used in an Analysis Matrix are<br />

Composite, Proxy, Chain of Responsibility, Command, Iterator,<br />

Mediator, and Visitor.<br />

Other patterns<br />

present

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!