nus-cs2103-AY2223S2 / forum

12 stars 0 forks source link

Question about omitting methods in sequence diagram #353

Closed swxk19 closed 1 year ago

swxk19 commented 1 year ago

Say I have the following scenario of nested calls where one() calls two() which calls three() which calls four()

image

but in my particular scenario, i only want to show one() and four(), as two() and three() are irrelevant and doesn't add much value in this specific scenario. Would it then be acceptable to show the diagram as this? :

image
damithc commented 1 year ago

@swxk19 Yes, it is fine, provided the omission doesn't detract from the purpose of the diagram. Typically, the purpose of SDs is to show notable interactions between entities; omitting less important self-calls does not detract from that purpose.