Download presentation
Presentation is loading. Please wait.
1
Sequence Diagram Traces
or why sequence diagrams are “hard” to use when generating code
2
What is always true on Sequence Diagrams
- The send event must occur before the receive event Events are strictly ordered along one lifeline, however, the distance between events on a lifeline is insignificant. How many global traces are there in this diagram? Same diagram gives several global traces.
3
Numbering The Events 1 2 4 3 5 6 7 8 10 9 11 12 14 13
4
Some Dependent Events (ordering some events)
1 2 4 3 5 6 7 8 10 9 11 12 10 is also independent of 12, 13 and 14 14 13
5
Possible Global Traces - Independent Events:
1 2 4 3 5 6 7 8 10 9 11 12 10 is also independent of 12, 13 and 14 14 13
6
Possible Global Traces
1 1 Possible Global Traces 2 2 … 4 3 5 6 8 7 9 8 } 10 10 11 11 11 11 9 11 12 11 10 12 12 12 14 13 12 12 10 13 13 13 13 13 10 14 one possible ordering 14 14 14 14 10
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.