Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the...
-
Upload
joshua-hardy -
Category
Documents
-
view
215 -
download
1
Transcript of Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the...
![Page 1: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/1.jpg)
Slide 1
Use Case Sequence Diagram
Explained
![Page 2: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/2.jpg)
Slide 2
Steps for Building a Sequence Diagram
1) Set the context
2) Identify which objects and actors will participate
3) Set the lifeline for each object/actor
4) Lay out the messages from the top to the bottom of the diagram based on the order in which they are sent
5) Add the focus of control for each object’s or actor’s lifeline
6) Validate the sequence diagram
![Page 3: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/3.jpg)
Slide 3
Steps for Building a Sequence Diagram
To do these steps, the best tool is a Message Analysis Table.
As we progress thru the steps we will both show how to develop the Message Analysis Table and then show how the sequence diagram is constructed from that table.
![Page 4: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/4.jpg)
Slide 4
1) Set the context.a) Select a use case.
b) Decide the initiating actor.
Steps for Building a Sequence Diagram
3 Register
MembershipCustomer
![Page 5: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/5.jpg)
Slide 5
1) Set the context.a) Select a use case.
b) Decide the initiating actor.
Steps for Building a Sequence Diagram
Use Case Name RegisterAsMember
Use Case ID 3
Initiating Actor Customer
Message Analysis Table
![Page 6: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/6.jpg)
Slide 6
2) Identify the objects that may participate in the implementation of this use case by completing the supplied message table.
a) List candidate objects.1) Use case controller class2) Domain classes 3) Database table classes4) Display screens or reports
Steps for Building a Sequence Diagram
![Page 7: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/7.jpg)
Slide 7
2) Identify the objects
1) Use case controller class
Steps for Building a Sequence Diagram
RegisterAs Member Controller
![Page 8: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/8.jpg)
Slide 8
2) Identify the objects
2) Domain Objects
Steps for Building a Sequence Diagram
RegisterAs Member Controller
Member
![Page 9: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/9.jpg)
Slide 9
2) Identify the objects
3) Database Table Classes
Steps for Building a Sequence Diagram
RegisterAs Member Controller
MemberMember
Table
![Page 10: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/10.jpg)
Slide 10
2) Identify the objects
4) Display Screens and/or Reports
Steps for Building a Sequence Diagram
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
![Page 11: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/11.jpg)
Slide 11
2) Identify the objects
Steps for Building a Sequence Diagram
Candidate Objects/Classes
Use Case Controller RegisterAsMemberController
Domain Database Table
Display Screens or Report Other UC
Member MemberTable MemberApplicationScreen
NewUserNamePasswordScreen
ConfirmationScreen
![Page 12: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/12.jpg)
Slide 12
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
1) Examine each step in the normal scenario of the use case description to determine the messages needed to implement that step.
2) For each step:
1) Identify step number.
2) Determine messages needed to complete this step.
3) For each message, decide which class holds the data for this action or performs this action
3) Make sure that the messages within the table are in the same order as the normal scenario
![Page 13: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/13.jpg)
Slide 13
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
1. Customer enters name, address, phone number, email address, credit card number, and expiration date of credit card.
2. System validates member information.
3. Customer enters new user name and password for subsequent membership login.
4. System validates user name and password.
5. Customer confirms membership information.
6. System emails membership confirmation to new member.
![Page 14: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/14.jpg)
Slide 14
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
acceptMemberInformation()
1. Customer enters name, address, phone number, email address, credit card number, and expiration date of credit card.
Message
![Page 15: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/15.jpg)
Slide 15
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
validateMembershipInformation ()
2. System validates member information..
Message
![Page 16: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/16.jpg)
Slide 16
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
acceptUserNamePassword ()
3. Customer enters new user name and password for subsequent membership login..
Message
![Page 17: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/17.jpg)
Slide 17
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
validateUserNamePassword ()
System validates user name and password.
Message
![Page 18: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/18.jpg)
Slide 18
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
acceptConfirmation ()updateMembershipInformation ()
5. Customer confirms membership information..
Message
![Page 19: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/19.jpg)
Slide 19
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)b) List candidate messages.
emailMembershipConfirmation
6. System emails membership confirmation to new member
Message
![Page 20: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/20.jpg)
Slide 20
Steps for Building a Sequence Diagram
For each step:1) Identify step number.2) Determine messages needed to complete this step.3) For each message, decide which class holds the data for this action or performs this action
We have done the first two steps – now lest decide which class should RECEIVE this message and thus have a method to perform the functions of the message.
![Page 21: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/21.jpg)
Slide 21
Steps for Building a Sequence Diagram
Step #
Message Name Owner Class Name
1 acceptMemberInformation MembershipApplicationScreen
2 validateMembershipInformation Member
3 acceptUserNamePassword NewUserNamePasswordScreen
4 validateUserNamePassword Member
5 acceptConfirmation ConfirmationScreen
5 updateMembershipInformation MemberTable
6 emailMembershipConfirmation Member
![Page 22: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/22.jpg)
Slide 22
Steps for Building a Sequence Diagram
2) Identify the objects (cont.)c) Begin sequence diagram construction.
1) Draw and label each of the identified actors and objects across the top of the sequence diagram.
2) The typical order from left to right across the top is the actor, primary display screen class, primary use case controller class, domain classes (in order of access), and other display screen classes (in order of access)
3) Set the lifeline for each object/actor
![Page 23: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/23.jpg)
Slide 23
Steps for Building a Sequence Diagram c) Begin sequence diagram
construction.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
![Page 24: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/24.jpg)
Slide 24
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
![Page 25: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/25.jpg)
Slide 25
4) Lay out the messages from the top to the bottom of the diagram based on the order in which they are sent.
a) Working in sequential order of the message table, make a message arrow with the message name pointing to the owner class.
b) Decide which object or actor initiates the message and complete the arrow to its lifeline.
c) Add needed return messages.
d) Add needed parameters and control information.
Steps for Building a Sequence Diagram
![Page 26: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/26.jpg)
Slide 26
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
acceptMemberInformationvalidateMembershipInformationacceptUserNamePasswordvalidateUserNamePasswordacceptConfirmationupdateMembershipInformationemailMembershipConfirmation
![Page 27: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/27.jpg)
Slide 27
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
acceptMemberInformation
![Page 28: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/28.jpg)
Slide 28
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
![Page 29: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/29.jpg)
Slide 29
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
![Page 30: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/30.jpg)
Slide 30
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
![Page 31: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/31.jpg)
Slide 31
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
acceptConfirmation:confirmed
![Page 32: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/32.jpg)
Slide 32
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
acceptConfirmation:confirmed
![Page 33: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/33.jpg)
Slide 33
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
acceptConfirmation:confirmed
updateMembershipInformation
![Page 34: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/34.jpg)
Slide 34
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
acceptConfirmation:confirmed
updateMembershipInformation
memberhipsConfirmed()
![Page 35: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/35.jpg)
Slide 35
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
validateUserNamePassword (username, password):valid
acceptConfirmation:confirmed
updateMembershipInformation
memberhipsConfirmed()
emailMembershipConfirmation
![Page 36: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/36.jpg)
Slide 36
5) Add the focus of control (activation box) for each object’s or actor’s lifeline.
6) Validate the sequence diagram.
Steps for Building a Sequence Diagram
![Page 37: Slide 1 Use Case Sequence Diagram Explained. Slide 2 Steps for Building a Sequence Diagram 1)Set the context 2)Identify which objects and actors will.](https://reader030.fdocuments.us/reader030/viewer/2022032606/56649ea85503460f94baaf98/html5/thumbnails/37.jpg)
Slide 37
Steps for Building a Sequence Diagram c. Set the lifeline for each object/actor.
RegisterAs Member Controller
MemberMember
Table
MemberApplication
Screen
NewUserName
Password Screen
Confirm-ation
Screen
Customer
acceptConfirmation:confirmed
emailMembershipConfirmation
validateMembershipInformation (member information):valid
acceptMemberInformation
acceptUserNamePassword
memberhipsConfirmed()
validateUserNamePassword (username, password):valid
updateMembershipInformation