nus-cs2103-AY2324S1 / forum

10 stars 0 forks source link

Omitting parameters of method calls in sequence diagrams #519

Closed craigtonlian closed 9 months ago

craigtonlian commented 9 months ago

Suppose in a sequence diagram, a call was made on a method foo(int a, int b) that takes in two parameters. But the sequence diagram labels it as a call to foo(). Can we justify the omission of the parameters as a means of simplifying the diagram? Or is it just wrong?

damithc commented 9 months ago

@craigtonlian depends on how relevant to the purpose of the diagram and how much it hinders the reader. Ideally, such simplifications should be indicated (e.g., foo(...) or mention in the accompanying explanations/note)