CHAPTER THREE OCUP INTERMEDIATE

3.1 COMPOSITE STRUCTURE DIAGRAMS

This chapter discusses a diagram form of UML 2.0 that was not around in UML 1x: composite structure diagrams.

A composite structure diagram describes the internal structure of things such as classes and components. Because UML is a very extensive language already, so that you may ask, “Why do we need yet another diagram form?”

To answer this question, let’s look at the class diagram in Figure 3.1. This class diagram shows the simplified composition of a boat and a car. The boat consists of a propeller and an engine that drives the propeller. The car also consists of an engine, but it is driven by two wheels instead of a propeller. Altogether, the car has four wheels, namely, ...

Get UML 2 Certification Guide 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.