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 1—What Is the <strong>UML</strong> 9<br />

they are all used in the construction of a user interface. But, as Figure 1-3 shows, the individual<br />

classes could be as diverse as Frame, Button, and DropDownList.<br />

<br />

Frame<br />

<br />

Button<br />

<br />

DropDownList<br />

Figure 1-3 A stereotype on a class<br />

There are a number of stereotypes already defined in the <strong>UML</strong>, but you are free to<br />

define and use your own. The existing stereotypes are specified in Appendix A of the <strong>UML</strong><br />

specification.<br />

Because no notation can cover every possible type of information, the <strong>UML</strong> also supports<br />

the use of comments. Figure 1-4 illustrates a sample comment icon. You may place as much<br />

text as needed within the symbol. The symbol can be placed anywhere on any diagram.<br />

Place your comment<br />

inside this figure<br />

Figure 1-4 Comment notation<br />

Another extension, called a constraint, is used throughout the <strong>UML</strong> diagrams to limit the<br />

use of a model element. You can always spot constraints by the use of { } braces around the<br />

text that describes the limitation you want to impose. For example, you might want to limit<br />

the values that can be used for the attribute “age” to between 21 and 120. The constraint<br />

might look like this: {age > 20 and < 121}. I’ll cover the use of constraints with each diagram<br />

in the subsequent sessions.<br />

There are two more mechanisms that reach beyond the scope of an introductory book,<br />

tagged values and profiles. A complete description is available in the <strong>UML</strong> specification.<br />

Ten Diagrams<br />

Ten diagrams are defined in the <strong>UML</strong> metamodel. Each is fully described using Class diagrams<br />

and textual narrative. A key to the successful application of the <strong>UML</strong> is in understanding<br />

that you can use the notation standard with any number of different development methods,<br />

process controls, and quality controls.<br />

In Session 2, I explain the difference between a process and the <strong>UML</strong>, how they complement<br />

one another, and four very different yet popular processes to apply the <strong>UML</strong>. Session 3<br />

provides an overview of the diagrams. The rest of this course is devoted to explaining the<br />

purpose and definition of each <strong>UML</strong> diagram and their relationships to one another. This<br />

understanding should prepare you to apply the models successfully in your own unique<br />

environment.

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

Saved successfully!

Ooh no, something went wrong!