S. Coughing
S. Coughing

Reputation: 186

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

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).

Upvotes: 1

Views: 440

Answers (1)

bruno
bruno

Reputation: 32596

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

Upvotes: 4

Related Questions