1.1.2 How to Infer an Object Diagram Design From Descriptive Text

Video: Create Object Diagrams from Specifications (6:29)
Infer a Soccer Snapshot from Descriptive Text

A requirement can mix identities, values, relationships, and background facts. Before drawing, separate what the text actually establishes from what sounds plausible.

Use this snapshot description: The Wildcats team is captained by Casey, who wears jersey 1. Jordan wears jersey 7 and belongs to the same Wildcats team. Both players are available now. The diagram's purpose is to show player availability and team membership at this moment.

Extract Evidence Before Choosing Shapes
  1. Find the specific instances: one Wildcats team, Casey, and Jordan.
  2. Assign types: Team for Wildcats and Player for the two people.
  3. Attach the stated values to their owners: team name, player names, jerseys, and availability.
  4. Record the relationships: both players belong to the same team; that team's captain is Casey.
  5. Leave out unstated facts, such as Jordan's preferred foot or either player's turn count.
Draw Only the Supported Snapshot
Wildcats has captain Casey. Casey and Jordan are available Players with jerseys 1 and 7, both referring to the same Team instance.
One team is shared by both described players
  • New
  • Changed
  • Removed

Read the finished diagram back as sentences and compare them with the description. Both player-to-team links target the same box because the text says same team. The captain link targets Casey rather than another Player with matching values.

Test One Changed Requirement