Lab 11: Sequence Diagrams
To become familiar with creating UML sequence diagrams in Dia.
For this lab, you will create a UML sequence diagram for an email program.
You should create a sequence diagram for sending an email.
This will consist of the following sequence of method calls:
- Have a Main class call a create method of a
- This method will then call a getText method of an Editor
class which will return a String.
- The create method returns a Message object back to
- From Main, call the send method of the Message
- The send function returns a Confirmation object.
- Call the display method on the Confirmation object.
- The Dia program can also create sequence diagrams.
- You will use the "Object" tool to create an object for each one involved.
- You will also use the "Lifeline" tool to create the dashed line containing object lifelines.
These can be grown or shrunk from the right-click menu.
There is a bug where each lifeline can only have one call.
To get around this, you can place two over one object.
- Method calls and returns are modeled with the "Message" tool.
When you are done, please email your UML diagram to email@example.com.
If you are using Dia, you can email me either a .dia file, or
a .png image. If you are using something else, please send me a
Copyright © 2019 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.