16.2. Subsystems and the Class Diagram

Each class belongs to exactly one subsystem. Draw a class diagram for each subsystem.

Of course, classes are related to classes in other subsystems. For example, the Shopping Cart in the Ordering subsystem is associated with the Product in the Product Specification subsystem.

When a class in one subsystem has an association with a class in another subsystem, show the imported class using only the name of the class with either an annotation “imported from <subsystem name>,” or a stereotype «imported», as shown in Figure 16.2.

Figure 16.2. An Imported Class on a Class Diagram

Place the association in only one ...

Get Executable UML: A Foundation for Model-Driven Architecture 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.