How do you show multiple function calls to the same class?

288 Views Asked by At

For my deposit use case in the communication diagram below: I make 3 successive calls to the Account class which contains isPreferred(), isCardHolder(), and updateBalance(). I don't know if the looping symbol I used above Account is a way to display multiple calls to the same class, so any help is appreciated.

enter image description here

My operation sequence:

enter image description here

The possible sequence scenario I'm aiming for: 1, 2, 3, 3, 3, 4, 5 (printReceipt).

1

There are 1 best solutions below

15
On BEST ANSWER

your diagram does not show the messages nor their numbering, the numbering you show correspond to nothing

out of that your reflexive arrow is correct having self message(s)

an extract of the sequence following normalized notation can be :

enter image description here

it is also possible to use hierarchical numbering rather than global numering

P.S. classes Screen/DBinterface and message communicate_DB are very 'strange' but this is not the subject of the question