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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Session 5—Understanding the Use Case Model 51<br />

Figure 5-2 Focus on the target, the goal of the process.<br />

For example, in the case study, the Accounts Payable Department needs to be notified<br />

when products have been received. For years this has meant that the paperwork for the<br />

shipment was delivered to the warehouse supervisor who in turn delivered it to the<br />

Accounts Payable Department. If you document this process as a requirement, you miss<br />

the opportunity to automate the process and remove the physical problems and limitations<br />

of hand delivering documents.<br />

The Resources of the Use Case Model<br />

The Use Case Model takes advantage of three different viewpoints to fully describe each<br />

requirement. The first and simplest resource is the Use Case diagram. The Use Case narrative<br />

and Use Case scenarios make up the remainder of the model.<br />

Use Case diagram<br />

The Use Case diagram consists of five very simple graphics that represent the system, actors,<br />

Use Cases, associations, and dependencies of the project. The goal of the diagram is to provide<br />

a high-level explanation of the relationship between the system and the outside world. It is a<br />

very flat diagram (that is, it provides only a surface level, or black-box, view of the system).<br />

The view represented by a Use Case diagram for an ATM application, for example, would<br />

correspond to the main screen of an ATM and the menu options available at that level. The<br />

ATM system offers the user a set of options such as withdraw, deposit, inquire on balance,<br />

and transfer funds. Each option can be represented by a separate Use Case. The customer<br />

(outside the system) is associated with each of the Use Cases (within the system) that he<br />

plans to use.<br />

Use Case narrative<br />

On the Use Case diagram, a Use Case is simply an ellipse with a simple label like “Receive<br />

Product.” Although this label may provide a meaningful interface, it doesn’t explain what<br />

you can expect from this system feature. For that, you need a textual description. The Use<br />

Case narrative provides a fairly standard (yet user-defined) set of information that is<br />

required to guide the analysis, design, and coding of the feature.

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

Saved successfully!

Ooh no, something went wrong!