Home > Articles > Software Development & Management > UML

This chapter is from the book 16.21 What’s the Relationship Between Interaction and Class Diagrams?

16.21 What’s the Relationship Between Interaction and Class Diagrams?

When we draw interaction diagrams, a set of classes and their methods emerge from the creative design process of dynamic object modeling. For example, if we started with the (trivial for explanation) makePayment sequence diagram in Figure 16.21, we see that a Register and Sale class definition in a class diagram can be obviously derived.

Thus, from interaction diagrams the definitions of class diagrams can be generated. This suggests a linear ordering of drawing interaction diagrams before class diagrams, but in practice, especially when following the agile modeling practice of models in parallel, these complementary dynamic and static views are drawn concurrently. For example, 10 minutes on one, then 10 on the other.

Guideline: A good UML tool should automatically support changes in one diagram being reflected in the other. If wall sketching, use one wall for interaction diagrams, and an adjacent wall for class diagrams.

Figure 16.21 The influence of interaction diagrams on class diagrams.

  • + Share This
  • 🔖 Save To Your Account