UML Sequence Diagrams
Last updated
Last updated
Sequence diagram is one kind of interaction diagram
. It focuses on the message
interchange between a number of lifelines
.
In , we use a simple syntax for the main elements.
Lifeline is a named element
. Each lifeline
represents only one interacting entity.
lifeline
?All the tools allows implicit definition of lifeline
and that is the default behavior and recommended way in . However, most of them support explicit lifeline
definition. This is particularly useful when you want to have the lifeline
in an order different from when it appears in the text.
To generate a lifeline
like the above, here are the different way in some popular tools.
EventBus
At the beginning of the text, each line with one This syntax can only be used at the beginning of the code. Each line for one lifeline
.
participants EventBus