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.

262<br />

Sunday Morning<br />

REVIEW<br />

The purpose of the Component diagram is to define software modules and their relationships<br />

to one another. Each component is a chunk of code that resides in memory on a piece of<br />

hardware.<br />

The <strong>UML</strong> groups components into three broad categories:<br />

Deployment components, which are required to run the system<br />

Work product components including models, source code, and data files used to<br />

create deployment components<br />

Execution components, which are components created while running the<br />

application<br />

The component icon is a rectangle with two small rectangles on the left edge. The<br />

interface to the component may be modeled two different ways:<br />

The lollipop notation represents the interface as a small circle connected to the<br />

component by a solid line and with the name of the interface near the circle.<br />

The second method uses a class with the stereotype with a realizes<br />

relationship drawn from the component to the interface class. A component<br />

may realize (implement) as many interfaces as it requires.<br />

QUIZ YOURSELF<br />

1. What is a <strong>UML</strong> component (See “Explaining the Component Diagram.”)<br />

2. What is the icon for a <strong>UML</strong> component (See “Defining the Notation for<br />

Components and Component Dependencies.”)<br />

3. What notation shows that one component needs access to another component<br />

(See “Defining the Notation for Components and Component Dependencies.”)<br />

4. What notation is used to show that a component implements an interface (See<br />

“Defining the Notation for Components and Component Dependencies.”)<br />

5. True or False: Each component implements a class. (See “Mapping the Logical<br />

Design to the Physical Implementation.”)

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

Saved successfully!

Ooh no, something went wrong!