简体   繁体   中英

How to represent method reuse in sequence diagram?

Need to reuse the method existing in a class.How can i create sequence diagram for this. To explain elaborately, I have successfully represented the following scenario. 1. I have called a existing method belongiing to a class. I'm quite concerned in representaing the same when I call the same method for the second time

how to show method reusabiity in sequence diagram?

It's perfectly fine to invoke the same method several times in sequence diagrams.

If you have a more complex reusable component, you can create Interaction fragment to represent the reusable part and use it in your sequence diagram(s) by utilizing UML operator ref .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM