CHAPTER 9

Modeling Interactions in UML 2.0

images

In This Chapter

  • Modeling a Sequence diagram
  • Modeling frames and lifelines
  • Modeling messages and event occurrences
  • Modeling interactions and interaction occurrences
  • Modeling a Communication diagram
  • Modeling an Interaction Overview diagram
  • Modeling a decision, fork and join, and merge
  • Modeling a Timing diagram

images

UML 2.0 models object interactions using the following four different, but related diagrams. The diversity of the diagrams reflects the many reasons for evaluating interactions in a system design.

  • A Sequence diagram is a time-oriented view of the interaction between objects to accomplish a behavioral goal of the system. An interaction may be modeled at any level of abstraction within the system design, from subsystem interactions to instance-level interaction for a single operation or activity.
  • A Communication diagram is a structural view of the messaging between objects, taken from the Collaboration diagram concept of UML 1.4 and earlier versions.
  • An Interaction Overview diagram is a high-level view of sets of interactions combined into a logic sequence, including flow-control logic to navigate between the interactions.
  • A Timing diagram is an optional diagram designed to specify the time constraints on messages sent and received ...

Get UML™ Bible 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.