Component Diagrams

A component diagram shows the various components in a system and their dependencies.

A component represents a physical module of code. A component is often the same as a package, but it may be different, since components represent the physical packaging of code. As such, a single class may be present in multiple components, but that class can be defined in only one package. For example, the Java string class is part of the java.lang package, but it turns up in lots of components.

The dependencies among the components show how changes to one component may cause other components to change. There is quite a range of dependencies that you can use, including communication and compilation dependencies. I often use these kinds of ...

Get UML Distilled: A Brief Guide to the Standard Object Modeling Language, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.