![Hands-On Design Patterns with Java](https://wfqqreader-1252317822.image.myqcloud.com/cover/688/36698688/b_36698688.jpg)
上QQ阅读APP看书,第一时间看更新
Interaction diagrams
Interaction diagrams visually document how system components interact with each other.
In the following interaction diagram, you can see that the flow starts with a decision on whether the customer is a new, or already existing, customer. In both cases, the interaction between the Customer object and Customer Database object is documented:
![](https://epubservercos.yuewen.com/A2D5A8/19470379708814006/epubprivate/OEBPS/Images/88347a4e-5b57-49b9-9ebd-2b02636ea931.png?sign=1739013807-nByf5UgqGyEkyn4liUHGquuSnB14lcNT-0-a093f2b3b0e98d0ee7d7c23edd35bf11)
An interaction diagram for a coffee shop order
Interaction UML diagrams are robust and come in several different types. The interaction UML diagram types are listed here and will be covered in the subsequent sections:
- Sequence diagram
- Communication diagram
- Timing diagram