UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory UML Weekend Crash Course™ - To Parent Directory

crnarupa.singidunum.ac.rs
from crnarupa.singidunum.ac.rs More from this publisher
01.01.2015 Views

Session 24—Modeling the Development Environment 251 Purchasing Receiving Shipping Figure 24-9 Step 3: Adding a dependency 4. Stereotype the dependency between Receiving and Purchasing as to show that Receiving makes references to classes within Purchasing by adding them into its own set of classes at run time. Figure 24-10 shows the addition of the stereotype. Purchasing Receiving Shipping Figure 24-10 Step 4: Adding the dependency stereotype 5. Add the stereotype to the dependency between Shipping and Receiving to show that Shipping needs to communicate with classes within Receiving without actually making them part of the Shipping subsystem at run time. Instead, the classes in the Shipping subsystem will make calls to one or more classes in Receiving. Figure 24-11 places the stereotype on the dashed dependency arrow between Shipping and Receiving.

252 Sunday Morning Purchasing Receiving Shipping Figure 24-11 Step 5: Adding the dependency stereotype 6. Add a package to handle the order processing requirements of the system. The new package, Order Processing, is modeled as a folder icon just like the other packages. The name is placed inside the icon. The package should be recognizable as a subsystem, so the stereotype is placed above the name. The Order Processing package needs to use the Inventory class in the Receiving package, so it pulls the class into itself to work with it. This requirement is implemented in Figure 24-12 with a dashed dependency arrow from Order Processing to Receiving using the dependency stereotype. Purchasing Receiving Order Processing Shipping Figure 24-12 stereotype Step 6: Adding Order Processing and the dependency

252<br />

Sunday Morning<br />

<br />

Purchasing<br />

<br />

<br />

Receiving<br />

<br />

<br />

Shipping<br />

Figure 24-11<br />

Step 5: Adding the dependency stereotype<br />

6. Add a package to handle the order processing requirements of the system. The new<br />

package, Order Processing, is modeled as a folder icon just like the other packages.<br />

The name is placed inside the icon. The package should be recognizable as a subsystem,<br />

so the stereotype is placed above the name. The Order<br />

Processing package needs to use the Inventory class in the Receiving package, so it<br />

pulls the class into itself to work with it. This requirement is implemented in<br />

Figure 24-12 with a dashed dependency arrow from Order Processing to Receiving<br />

using the dependency stereotype.<br />

<br />

Purchasing<br />

<br />

<br />

Receiving<br />

<br />

<br />

<br />

Order<br />

Processing<br />

<br />

Shipping<br />

Figure 24-12<br />

stereotype<br />

Step 6: Adding Order Processing and the dependency

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

Saved successfully!

Ooh no, something went wrong!