2019年5月10日金曜日

In a sequence diagram, should I not include the same file repeatedly?

In a sequence diagram, should I not include the same file repeatedly?

Alice has replied four times. But why does Bob hear only twice?

  • Bob.sd.txt
@startuml
Bob -> Alice : Where are you? 1
Alice -> Bob : I'm here!


Bob -> Alice : Where are you? 2
!include Alice.replyToBob.sd.txt


Bob -> Alice : Where are you? 3
!include Alice.replyToBob.sd.txt


Bob -> Alice : Where are you? 4
!include Alice.replyToBob.sd.txt

@enduml

  • Alice.replyToBob.sd.txt
Alice -> Bob : I'm here!

  • Result





  • Answer
!include_many  Alice.replyToBob.sd.txt

0 件のコメント:

コメントを投稿