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.

256<br />

Sunday Morning<br />

Components may depend on one another. For example, an executable (.exe) may require<br />

access to a dynamic link library (.dll), or a client application may depend on a server side<br />

application, which in turn depends on a database interface.<br />

Components may be dependent on classes. For example, to compile an executable file,<br />

you may need to supply the source classes.<br />

Given the key elements, component, component interface, and dependencies, you can<br />

describe the physical implementation of your system in terms of the software modules and<br />

the relationships among them.<br />

Defining the Notation for Components<br />

and Component Dependencies<br />

A component icon is modeled as a rectangle with two small rectangles centered on the left<br />

edge. The name is placed inside the icon, as in Figure 25-1.<br />

OrderEntry.exe<br />

Figure 25-1<br />

Component icon and name<br />

Note<br />

The two small rectangles are left over from an old notation that used to put<br />

the component interfaces in the rectangles.<br />

Component stereotypes<br />

Component stereotypes provide visual clues to the role that the component plays in the<br />

implementation. Some common component stereotypes include:<br />

: A component that runs on a processor<br />

: A set of resources referenced by an executable during runtime<br />

: A database component accessed by an executable<br />

: Typically represents data or source code<br />

: A document such as a page inserted into a Web page<br />

These stereotypes refer to classifiers (implementations of the classes defined earlier in<br />

the process) and artifacts of the implementation of the classifiers, such as the source code,<br />

binary files, and databases.

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

Saved successfully!

Ooh no, something went wrong!