01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

248<br />

Sunday Morning<br />

<br />

Shipping<br />

<br />

Order<br />

Processing<br />

Figure 24-3 A bi-directional dependency<br />

For simplicity’s sake, all the other dependencies illustrated in this session go only one<br />

direction.<br />

Dependency stereotypes<br />

The package dependency may be labeled with a stereotype to describe the nature of the<br />

dependency. The <strong>UML</strong> defines two dependency stereotypes, and .<br />

The stereotype in Figure 24-4 means that the Receiving package adds a<br />

Purchasing class (in this case the PurchaseOrder class) to itself at run time, allowing internal<br />

references (references within the package) to the class without specifying the source<br />

package name.<br />

<br />

Purchasing<br />

<br />

<br />

Receiving<br />

Figure 24-4<br />

The stereotype on a dependency<br />

Tip<br />

For Java programmers, the stereotype has the same effect as the<br />

import statement in Java.<br />

The stereotype in Figure 24-5 says that the Shipping subsystem will want to<br />

communicate with the Receiving subsystem but will not actually pull the classes from<br />

Receiving into Shipping at run time. At run time, you would then expect to see some object<br />

from the Shipping subsystem making calls in the interface of the Receiving subsystem.<br />

<br />

Receiving<br />

<br />

<br />

Shipping<br />

Figure 24-5<br />

The stereotype on a dependency<br />

Tip<br />

There are a number of other stereotypes described in the <strong>UML</strong> specification<br />

in the file 01-09-78 <strong>UML</strong> 1.4 Appendix A <strong>UML</strong> Standard Elements.pdf.

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

Saved successfully!

Ooh no, something went wrong!