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.

CHAPTER 12<br />

Solving the CAD/CAM<br />

Problem with <strong>Patterns</strong><br />

Overview<br />

In this chapter, I apply design patterns to solve the CAD/CAM prob- In this chapter<br />

lem presented in Chapter 3, "A Problem That Cries Out for Flexible<br />

Code."<br />

In this chapter,<br />

• I walk through the methods needed to solve the earlier CAD/<br />

CAM problem.<br />

• I take you through the initial design phase. The details of<br />

implementation are left to you.<br />

• I compare the new solution with the previous solution.<br />

Review of the CAD/CAM Problem<br />

In Chapter 3, I described the requirements for the CAD/CAM problem,<br />

a real-world problem that first got me on the road to using<br />

design patterns.<br />

The problem domain is in computer systems to support a large engineering<br />

organization, specifically, to support their CAD/CAM system.<br />

The basic requirement is to create a computer program that can<br />

read a CAD/CAM dataset and extract the features that an existing<br />

expert system needs to be able to do intelligent design. This system is<br />

supposed to shield the expert system from the CAD/CAM system. The<br />

complication is that the CAD/CAM system was in the midst of<br />

The requirements<br />

197

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

Saved successfully!

Ooh no, something went wrong!