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 • Solving the CAD/CAM Problem with <strong>Patterns</strong> 2O9<br />

Figure 12-8 The canonical Bridge pattern.<br />

Substituting the classes into the canonical Bridge pattern gives<br />

Figure 12-9.<br />

Figure 12-9 Applying the Bridge pattern to the problem.<br />

In Figure 12-9, the Features are being implemented by an<br />

ImpFeature, which is either a Vllmp or a V2lmp. In this design,<br />

ImpFeature would have to have an interface that allowed for<br />

Feature to get whatever information it needed to give Model the<br />

information it requested. Thus, ImpFeature would have an interface<br />

including methods such as

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

Saved successfully!

Ooh no, something went wrong!