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.

5O Part II • The Limitations of Traditional Object-Oriented <strong>Design</strong><br />

... because it must<br />

determine the order<br />

of the features<br />

The problem is, I cannot just generate the NC set commands for the<br />

three features independently of one another and hope the part<br />

comes out properly— there is often a particular order that must be<br />

used. In the example, if I do the slots first and then the cutout, as<br />

shown in Figure 3-3, when the cutout is made (remember a cutout<br />

is created by using a high-impact punch), the sheet metal will bend<br />

because the slots will have weakened the metal.<br />

Figure 3-3 A bad approach to cutting out the openings. This sequence<br />

results in weakened, bent sheet metal.<br />

I must create the shape shown in Figure 3-2 by punching out the<br />

cutout first, then doing the slots. This works because the slots are<br />

created using a router, which applies sideways pressure. Making the<br />

cutout first actually makes the job easier, not harder. This is shown in<br />

Figure 3-4.<br />

Fortunately, someone had already worked out the rules for the<br />

expert system. I did not have to worry about that. I took the time to<br />

explain these challenges so that you could understand the type of<br />

information needed by the expert system.

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

Saved successfully!

Ooh no, something went wrong!