SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
Advance Software Engineering                                                        LAB # 06




                                              LAB # 06

OBJECTIVE:
• Creating Sequence Diagrams.

Sequence Diagrams
A sequence diagram shows object interactions arranged in time sequence. It depicts the objects
and classes involved in the scenario and the sequence of messages exchanged between the
objects needed to carry out the functionality of the scenario. Sequence diagrams typically are
associated with use case realizations in the Logical View of the system under development. In
the UML, an object in a sequence diagram is drawn as a rectangle containing the name of the
object, underlined. An object can be named in one of three ways: the object name, the object
name and its class, or just the class name (anonymous object). The three ways of naming an
object are shown in Figure 5-5.




Sequence diagrams show a detailed flow for a specific use case or even just part of a specific use
case. They show the calls between the different objects in their sequence And can show, at a
detailed level, different calls to different objects.
A sequence diagram has two dimensions:
• The vertical dimension shows the sequence of messages/calls in the time order that they occur
• The horizontal dimension shows the object instances to which the messages are sent.
Start at the top left corner with the "driver" class instance that starts the sequence, and then
follow each message down the diagram.




                                                                                                1
Advance Software Engineering                                                        LAB # 06




The UML notation for objects and messages in a sequence diagram is shown in Figure 5.6.




1. Right-click to select the use case realization in the Logical View of the browser and make the
  shortcut menu visible.
2. Select the New: Sequence Diagram menu choice. An unnamed sequence diagram is added to
  the browser.
3. Double-click on the sequence diagram in the browser to open the diagram.
2. Click to select the actor in the browser.
3. Drag the actor onto the sequence diagram.
4. Click to select the Object icon from the toolbar.
5. Click on the sequence diagram window to place the object.
6. While the object is still selected, enter the name of the object.
7. Repeat the preceding steps for each object and actor in the scenario.
8. Click to select the Object Message icon from the toolbar.
9. Click on the actor or object sending the message and drag the message line to the actor or
object receiving the message.
10. While the message line is still selected, enter the name of the message.
11. Repeat steps 7 through 9 for each message in the scenario.




                                                                                                    2
Advance Software Engineering                                                         LAB # 06




Sequence Diagrams And Boundary Classes
Boundary classes are added to sequence diagrams to show the interaction with the user or
another system. In the early analysis phases, the purpose of showing boundary classes on a
sequence diagram is to capture and document the interface requirements, not to show how the
interface will be implemented.
Complexity And Sequence Diagrams
Every time I teach a class, the question "How complex can a sequence diagram be?" is always
asked. The answer I always give is "Keep them simple." The beauty of these diagrams is their
simplicity—it is very easy to see the objects, the object interactions, the messages between the
objects, and the functionality captured by the scenario. The next question is usually "What do I
do about conditional logic?" (all the if, then, else logic that exists in the real world). Here, you
again have a very subjective answer. If the logic is simple, involving only a few messages, I
usually add the logic to one diagram and use notes and scripts to communicate the choices to be
made. On the other hand, if the if, then, else logic involves many complicated messages, I
typically draw a separate diagram—one for the if case, one for the then case, and one for the else
case. This is done to keep the diagrams simple. If you desire, diagrams may be linked to one
another. This allows the user to navigate through a set of diagrams.


                                                                                                  3
Advance Software Engineering                                                                            LAB # 06



NOTE
1. Select the Note icon from the toolbar.
2. Click on the diagram to place the note.
3. Select the diagram that you wish to link in the browser and drag the diagram onto the note.
4. To navigate to the linked diagram, double-click on the note.


Call Message




Definition
A message defines a particular communication between Lifelines of an Interaction. Call
message is a kind of message that represents an invocation of operation of target lifeline.
Properties
 Name                      The name of message.

 Action Type               Type action type of the message.

 Return Value              The information to return to caller.

 Sequence No.              The number of message indicates the order of message within an interaction.

 Documentation             Description of message.

 Asynchronous              Determines whether the message is an asynchronous or a synchronous message.




Recursive Message
Definition


A message defines a particular communication between Lifelines of an Interaction. Recursive message is a kind of
message that represents the invocation of message of the same lifeline. It's target points to an activation on top of the




activation where the message was invoked from.




                                                                                                                       4
Advance Software Engineering                                                             LAB # 06



Delete Message

Delete message (called stop in previous versions of UML) is sent to terminate another lifeline.
The lifeline usually ends with a cross in the form of an X at the bottom denoting destruction
occurrence. UML 2.4 specification provides neither specific notation for delete message nor a
stereotype. Until they provide some notation, we can use custom «destroy» stereotype.




Online Bookshop terminates Account

Lifeline
Each object appearing on a sequence diagram contains a dashed, vertical line, called a lifeline,
which represents the location of an object at a particular point in time. The lifeline also serves as
a place for messages to start and stop and a place for the focus of control to reside.
Lifelines usually represent an object or its class.




                                                                                                    5
Advance Software Engineering                                                          LAB # 06




                             TASK TO BE PERFORMED

Task # 01 : Create sequence diagram for the scenarios given below.


Scenario # 01
The ESU course registration problem will be used as an example throughout this book. The
process of assigning professors to courses and the registration of students is a frustrating and
time-consuming experience. After the professors of ESU have decided which courses they are
going to teach for the semester, the Registrar's office enters the information into the computer
system. A batch report is printed for the professors indicating which courses they will teach. A
course catalog is printed and distributed to the students. The students currently fill out (mulit
part, multicolor) registration forms that indicate their choice in courses, and return the completed
forms to the Registrar's office. The typical student load is four courses. The staff of the
Registrar's office then enters the students’ forms into the mainframe computer system. Once the
students' curriculum for the semester has been entered, a batch job is run overnight to assign
students to courses. Most of the time the students get their first choice; however, in those cases
where there is a conflict, the Registrar's office talks with each student to get additional choices.
Once all the students have been successfully assigned to courses, a hard copy of the students'
schedule is sent to the students for their verification. Most student registrations are processed
within a week, but some exceptional cases take up to two weeks to solve. Once the initial
registration period is completed, professors receive a student roster for each course they are
scheduled to teach.

Scenario # 02
You're short on cash, so you walk over to the automated teller machine (ATM), insert your card
into the card reader, respond to the prompts on the screen, and within a minute you walk away
with your money and a receipt. These machines can now be found at most supermarkets,
convenience stores and travel centers.




                                                                                                   6
Advance Software Engineering                                                      LAB # 06



Scenario # 03: Create an sequence diagram for email account creation.


Scenario # 03: Create an sequence diagram Online Bookshop
Scenario # 03: Below an activity diagram is shown. Give an interpretation of the diagram.




                                                                                             7

Contenu connexe

Tendances

What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?Eliza Wright
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to umlTony Huynh
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagramskebsterz
 
Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Marwa Ali Eissa
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagramsbarney92
 
Intro to UML 2
Intro to UML 2Intro to UML 2
Intro to UML 2rchakra
 
UML (Unified Modeling Language)
UML (Unified Modeling Language)UML (Unified Modeling Language)
UML (Unified Modeling Language)Nguyen Tuan
 
Uml with detail
Uml with detailUml with detail
Uml with detailHamza Khan
 
3. use cases
3. use cases3. use cases
3. use casesAPU
 
UML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionUML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionRamakant Soni
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction ModelingHemant Sharma
 

Tendances (20)

Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Uml
UmlUml
Uml
 
What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?What is UML (Unified Modeling Language)?
What is UML (Unified Modeling Language)?
 
An introduction to uml
An introduction to umlAn introduction to uml
An introduction to uml
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)Introduction to the Unified Modeling Language (UML)
Introduction to the Unified Modeling Language (UML)
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
UML
UMLUML
UML
 
Intro to UML 2
Intro to UML 2Intro to UML 2
Intro to UML 2
 
Uml2
Uml2Uml2
Uml2
 
UML (Unified Modeling Language)
UML (Unified Modeling Language)UML (Unified Modeling Language)
UML (Unified Modeling Language)
 
Uml with detail
Uml with detailUml with detail
Uml with detail
 
Uml 9
Uml 9Uml 9
Uml 9
 
Uml
UmlUml
Uml
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
3. use cases
3. use cases3. use cases
3. use cases
 
UML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionUML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language Introduction
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 

Similaire à Lab # 06

Case tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaCase tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaursKarthick Raja
 
Java căn bản- Chapter1
Java  căn bản- Chapter1Java  căn bản- Chapter1
Java căn bản- Chapter1Vince Vo
 
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentChapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentEduardo Bergavera
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsAmr E. Mohamed
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsAmr E. Mohamed
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational RoseMunaam Munawar
 
CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III pkaviya
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialCreately
 
Object-oriented modeling and design.pdf
Object-oriented modeling and  design.pdfObject-oriented modeling and  design.pdf
Object-oriented modeling and design.pdfSHIVAM691605
 

Similaire à Lab # 06 (20)

Uml examples
Uml examplesUml examples
Uml examples
 
Case tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaCase tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick Raja
 
Ooad unit 1
Ooad unit 1Ooad unit 1
Ooad unit 1
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
A Multi-level Methodology for Developing UML Sequence Diagrams
A Multi-level Methodology for Developing UML Sequence DiagramsA Multi-level Methodology for Developing UML Sequence Diagrams
A Multi-level Methodology for Developing UML Sequence Diagrams
 
R1x g13 4 diagrams i
R1x g13 4 diagrams iR1x g13 4 diagrams i
R1x g13 4 diagrams i
 
Sequence diagrame
Sequence diagrameSequence diagrame
Sequence diagrame
 
Sdlc
SdlcSdlc
Sdlc
 
Sdlc
SdlcSdlc
Sdlc
 
Java căn bản- Chapter1
Java  căn bản- Chapter1Java  căn bản- Chapter1
Java căn bản- Chapter1
 
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software DevelopmentChapter1 - Introduction to Object-Oriented Programming and Software Development
Chapter1 - Introduction to Object-Oriented Programming and Software Development
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour Diagrams
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
 
Lab 3
Lab 3Lab 3
Lab 3
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III CS8592 Object Oriented Analysis & Design - UNIT III
CS8592 Object Oriented Analysis & Design - UNIT III
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
Object-oriented modeling and design.pdf
Object-oriented modeling and  design.pdfObject-oriented modeling and  design.pdf
Object-oriented modeling and design.pdf
 
system sequence diagram
system sequence diagramsystem sequence diagram
system sequence diagram
 
Chapter1
Chapter1Chapter1
Chapter1
 

Plus de Mr SMAK

Fyp list batch-2009 (project approval -rejected list)
Fyp list batch-2009 (project approval -rejected list)Fyp list batch-2009 (project approval -rejected list)
Fyp list batch-2009 (project approval -rejected list)Mr SMAK
 
Assigments2009
Assigments2009Assigments2009
Assigments2009Mr SMAK
 
Evaluation of cellular network
Evaluation of cellular networkEvaluation of cellular network
Evaluation of cellular networkMr SMAK
 
Common protocols
Common protocolsCommon protocols
Common protocolsMr SMAK
 
Cellular network
Cellular networkCellular network
Cellular networkMr SMAK
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1Mr SMAK
 
Lecture 6
Lecture  6Lecture  6
Lecture 6Mr SMAK
 
Parallel architecture
Parallel architectureParallel architecture
Parallel architectureMr SMAK
 
Lecture 3
Lecture 3Lecture 3
Lecture 3Mr SMAK
 
Lecture 2
Lecture 2Lecture 2
Lecture 2Mr SMAK
 
Lecture 1
Lecture 1Lecture 1
Lecture 1Mr SMAK
 
Lecture 6
Lecture  6Lecture  6
Lecture 6Mr SMAK
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1Mr SMAK
 
Chapter 2 ASE
Chapter 2 ASEChapter 2 ASE
Chapter 2 ASEMr SMAK
 
Structure of project plan and schedule
Structure of project plan and scheduleStructure of project plan and schedule
Structure of project plan and scheduleMr SMAK
 
Proposal format
Proposal formatProposal format
Proposal formatMr SMAK
 
Proposal announcement batch2009
Proposal announcement batch2009Proposal announcement batch2009
Proposal announcement batch2009Mr SMAK
 
List ofsuparco projectsforuniversities
List ofsuparco projectsforuniversitiesList ofsuparco projectsforuniversities
List ofsuparco projectsforuniversitiesMr SMAK
 
Fyp timeline & assessment policy batch 2009
Fyp timeline & assessment policy batch 2009Fyp timeline & assessment policy batch 2009
Fyp timeline & assessment policy batch 2009Mr SMAK
 

Plus de Mr SMAK (20)

Fyp list batch-2009 (project approval -rejected list)
Fyp list batch-2009 (project approval -rejected list)Fyp list batch-2009 (project approval -rejected list)
Fyp list batch-2009 (project approval -rejected list)
 
Assigments2009
Assigments2009Assigments2009
Assigments2009
 
Week1
Week1Week1
Week1
 
Evaluation of cellular network
Evaluation of cellular networkEvaluation of cellular network
Evaluation of cellular network
 
Common protocols
Common protocolsCommon protocols
Common protocols
 
Cellular network
Cellular networkCellular network
Cellular network
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1
 
Lecture 6
Lecture  6Lecture  6
Lecture 6
 
Parallel architecture
Parallel architectureParallel architecture
Parallel architecture
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Lecture 6
Lecture  6Lecture  6
Lecture 6
 
Lecture 6.1
Lecture  6.1Lecture  6.1
Lecture 6.1
 
Chapter 2 ASE
Chapter 2 ASEChapter 2 ASE
Chapter 2 ASE
 
Structure of project plan and schedule
Structure of project plan and scheduleStructure of project plan and schedule
Structure of project plan and schedule
 
Proposal format
Proposal formatProposal format
Proposal format
 
Proposal announcement batch2009
Proposal announcement batch2009Proposal announcement batch2009
Proposal announcement batch2009
 
List ofsuparco projectsforuniversities
List ofsuparco projectsforuniversitiesList ofsuparco projectsforuniversities
List ofsuparco projectsforuniversities
 
Fyp timeline & assessment policy batch 2009
Fyp timeline & assessment policy batch 2009Fyp timeline & assessment policy batch 2009
Fyp timeline & assessment policy batch 2009
 

Dernier

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Dernier (20)

Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Lab # 06

  • 1. Advance Software Engineering LAB # 06 LAB # 06 OBJECTIVE: • Creating Sequence Diagrams. Sequence Diagrams A sequence diagram shows object interactions arranged in time sequence. It depicts the objects and classes involved in the scenario and the sequence of messages exchanged between the objects needed to carry out the functionality of the scenario. Sequence diagrams typically are associated with use case realizations in the Logical View of the system under development. In the UML, an object in a sequence diagram is drawn as a rectangle containing the name of the object, underlined. An object can be named in one of three ways: the object name, the object name and its class, or just the class name (anonymous object). The three ways of naming an object are shown in Figure 5-5. Sequence diagrams show a detailed flow for a specific use case or even just part of a specific use case. They show the calls between the different objects in their sequence And can show, at a detailed level, different calls to different objects. A sequence diagram has two dimensions: • The vertical dimension shows the sequence of messages/calls in the time order that they occur • The horizontal dimension shows the object instances to which the messages are sent. Start at the top left corner with the "driver" class instance that starts the sequence, and then follow each message down the diagram. 1
  • 2. Advance Software Engineering LAB # 06 The UML notation for objects and messages in a sequence diagram is shown in Figure 5.6. 1. Right-click to select the use case realization in the Logical View of the browser and make the shortcut menu visible. 2. Select the New: Sequence Diagram menu choice. An unnamed sequence diagram is added to the browser. 3. Double-click on the sequence diagram in the browser to open the diagram. 2. Click to select the actor in the browser. 3. Drag the actor onto the sequence diagram. 4. Click to select the Object icon from the toolbar. 5. Click on the sequence diagram window to place the object. 6. While the object is still selected, enter the name of the object. 7. Repeat the preceding steps for each object and actor in the scenario. 8. Click to select the Object Message icon from the toolbar. 9. Click on the actor or object sending the message and drag the message line to the actor or object receiving the message. 10. While the message line is still selected, enter the name of the message. 11. Repeat steps 7 through 9 for each message in the scenario. 2
  • 3. Advance Software Engineering LAB # 06 Sequence Diagrams And Boundary Classes Boundary classes are added to sequence diagrams to show the interaction with the user or another system. In the early analysis phases, the purpose of showing boundary classes on a sequence diagram is to capture and document the interface requirements, not to show how the interface will be implemented. Complexity And Sequence Diagrams Every time I teach a class, the question "How complex can a sequence diagram be?" is always asked. The answer I always give is "Keep them simple." The beauty of these diagrams is their simplicity—it is very easy to see the objects, the object interactions, the messages between the objects, and the functionality captured by the scenario. The next question is usually "What do I do about conditional logic?" (all the if, then, else logic that exists in the real world). Here, you again have a very subjective answer. If the logic is simple, involving only a few messages, I usually add the logic to one diagram and use notes and scripts to communicate the choices to be made. On the other hand, if the if, then, else logic involves many complicated messages, I typically draw a separate diagram—one for the if case, one for the then case, and one for the else case. This is done to keep the diagrams simple. If you desire, diagrams may be linked to one another. This allows the user to navigate through a set of diagrams. 3
  • 4. Advance Software Engineering LAB # 06 NOTE 1. Select the Note icon from the toolbar. 2. Click on the diagram to place the note. 3. Select the diagram that you wish to link in the browser and drag the diagram onto the note. 4. To navigate to the linked diagram, double-click on the note. Call Message Definition A message defines a particular communication between Lifelines of an Interaction. Call message is a kind of message that represents an invocation of operation of target lifeline. Properties Name The name of message. Action Type Type action type of the message. Return Value The information to return to caller. Sequence No. The number of message indicates the order of message within an interaction. Documentation Description of message. Asynchronous Determines whether the message is an asynchronous or a synchronous message. Recursive Message Definition A message defines a particular communication between Lifelines of an Interaction. Recursive message is a kind of message that represents the invocation of message of the same lifeline. It's target points to an activation on top of the activation where the message was invoked from. 4
  • 5. Advance Software Engineering LAB # 06 Delete Message Delete message (called stop in previous versions of UML) is sent to terminate another lifeline. The lifeline usually ends with a cross in the form of an X at the bottom denoting destruction occurrence. UML 2.4 specification provides neither specific notation for delete message nor a stereotype. Until they provide some notation, we can use custom «destroy» stereotype. Online Bookshop terminates Account Lifeline Each object appearing on a sequence diagram contains a dashed, vertical line, called a lifeline, which represents the location of an object at a particular point in time. The lifeline also serves as a place for messages to start and stop and a place for the focus of control to reside. Lifelines usually represent an object or its class. 5
  • 6. Advance Software Engineering LAB # 06 TASK TO BE PERFORMED Task # 01 : Create sequence diagram for the scenarios given below. Scenario # 01 The ESU course registration problem will be used as an example throughout this book. The process of assigning professors to courses and the registration of students is a frustrating and time-consuming experience. After the professors of ESU have decided which courses they are going to teach for the semester, the Registrar's office enters the information into the computer system. A batch report is printed for the professors indicating which courses they will teach. A course catalog is printed and distributed to the students. The students currently fill out (mulit part, multicolor) registration forms that indicate their choice in courses, and return the completed forms to the Registrar's office. The typical student load is four courses. The staff of the Registrar's office then enters the students’ forms into the mainframe computer system. Once the students' curriculum for the semester has been entered, a batch job is run overnight to assign students to courses. Most of the time the students get their first choice; however, in those cases where there is a conflict, the Registrar's office talks with each student to get additional choices. Once all the students have been successfully assigned to courses, a hard copy of the students' schedule is sent to the students for their verification. Most student registrations are processed within a week, but some exceptional cases take up to two weeks to solve. Once the initial registration period is completed, professors receive a student roster for each course they are scheduled to teach. Scenario # 02 You're short on cash, so you walk over to the automated teller machine (ATM), insert your card into the card reader, respond to the prompts on the screen, and within a minute you walk away with your money and a receipt. These machines can now be found at most supermarkets, convenience stores and travel centers. 6
  • 7. Advance Software Engineering LAB # 06 Scenario # 03: Create an sequence diagram for email account creation. Scenario # 03: Create an sequence diagram Online Bookshop Scenario # 03: Below an activity diagram is shown. Give an interpretation of the diagram. 7