Chapter 9. Object Diagrams

Object Diagrams

Sometimes it can be useful to show the state of the system at a particular point in time. Like a snapshot of a running system, a UML object diagram shows the objects, relationships, and attribute values that obtain at a given instant.

A Snapshot in Time

Some time ago I was involved with an application that allowed users to draw the floor plan of a building on a GUI. The program captured the rooms, doors, windows, and wall openings in the data structure, as shown in Figure 9-1. While this diagram shows you what kinds of data structures are possible, it does not tell you exactly what objects and relationships are instantiated ...

Get UML FOR JAVA™ PROGRAMMERS 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.