3.4. The Composite Structure Diagram

This section discusses a diagram form of UML 2 that was not around in UML 1: composite structure diagrams. A composite structure diagram describes the internal structure of classes on role level. 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.24. It is a simplified representation of things a car is composed of. The car consists of an engine that drives two wheels. In total, the car has four wheels—two front wheels and two rear wheels.

Figure 3-24. Simple class model for a car.

Get Systems Engineering with SysML/UML 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.