A design team is reviewing an object diagram that a colleague drew from the system's class diagram to illustrate a tricky configuration. Which of the following statements about UML object diagrams are true? Select all that apply.
The diagram can show the order in which the objects call one another's operations.
Every link must be an instance of an association that exists between the two objects' classes.
Two objects of the same class can appear in one diagram with different values in the same slot.
Each link should be labelled with a multiplicity such as 1..∗1..*1..∗ at each end, copied from its association.
Slots that are irrelevant to the point the diagram makes may be left out.
Unlock full course notes by signing up
Counting and checking a team snapshot
A project-tracking tool's class diagram has one association: each Developer belongs to exactly 111 Team, and each Team has 2..52..52..5 Developers. A complete object diagram from the running tool shows Team objects t1, t2 and t3, linked to 4, 6 and 1 Developer objects respectively, and every Developer object is linked to exactly one Team. No other objects appear.
Find the total number of objects in the snapshot, the number of links, and the number of Team objects that violate the multiplicity of the association. Give each answer as a whole number.
Updating a shared theme instance
A document editor uses the object diagram below. Every Panel reads its font size directly from its linked Theme, with no cached copy. The named instances t1 and t2 represent distinct objects, although their displayed slot values are equal. Font sizes are measured in typographic points.
For a second snapshot, only t1's fontSize changes from 14 to 18. All object identities and links remain unchanged. Complete these steps for constructing the revised snapshot, using the exact instance names and an integer font size.
First, locate the object shared by p1 and p2: ________. Next, retain the separate object referenced by p3: ________. Finally, read p2's font size through its unchanged link: ________ points.
Smallest valid snapshot
An online store's class diagram has two associations. Each Order contains 1..∗1..*1..∗ LineItems, and each LineItem belongs to exactly 111 Order. Each LineItem refers to exactly 111 Product, and each Product appears in 0..∗0..*0..∗ LineItems. No other classes or associations exist.
A tester wants the smallest complete object diagram, showing every link each object takes part in, that contains exactly 3 Order objects and conforms to the class diagram. What is the smallest possible total number of objects across all classes? Give your answer as a whole number.
Repairing assignments with the fewest link changes
A dispatch application stores the initial object snapshot below. Each line assigns one Crate to one Van. All mass and capacity slot values are in kilograms.
Construct a repaired snapshot in which every crate is assigned to exactly one van and the sum of assigned crate masses does not exceed that van's capacity. Retain every object, identity, and slot value. You may change only assignment links; every crate may be assigned to any van. These constraints apply to the completed snapshot, not intermediate editing states.
A single link edit means deleting one existing link or adding one new link. Changing a crate's assigned van therefore requires deleting its original link and adding its replacement.