23.07.2012 Views

Design Patterns Explained

Design Patterns Explained

Design Patterns Explained

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

294 Part V • Handling Variations with <strong>Design</strong> <strong>Patterns</strong><br />

Table 20-2 Filling Out the Analysis Matrix: First Concept<br />

U.S. Sales<br />

Calculate freight Use UPS rates<br />

Now, I continue with the next piece of information, "use U.S. postal<br />

rules for verifying addresses," by adding another row to hold that<br />

piece of information, as shown in Table 20-3.<br />

Table 20-3 Filling Out the Analysis Matrix: Second Concept<br />

U.S. Sales<br />

Calculate freight Use UPS rates<br />

Verify address Use U.S. postal rules<br />

I continue through all of the concepts in the first case, as shown in<br />

Table 20-4.<br />

Table 20-4 Filling Out the Analysis Matrix:<br />

Complete First Case— U.S. Sales<br />

U.S. Sales<br />

Calculate freight Use UPS rates<br />

Verify address Use U.S. postal rules<br />

Calculate tax Use state and local taxes<br />

Money U.S. $<br />

2. Proceed through<br />

the other cases,<br />

expanding the<br />

matrix as necessary<br />

Now, I move to the next case and the other cases, one column per<br />

case, completing each cell with as much information as I have. The<br />

completed matrix for the next case is in Table 20-5.

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

Saved successfully!

Ooh no, something went wrong!