SlideShare a Scribd company logo
Presentation On
Sequence Diagram
Course Code : CSE-325
Course Title : System Analysis And Design.
1
Presentation Outline
Introduction
 What is UML?
 Types of UML.
What is Sequence Diagram
Significance Of Sequence
Diagram
Use Of Sequence Diagram
Sequence Diagram Notation
 Lifeline Notation
 Activation Burs
 Message Arrows
 Comment
Types of Message
Message Example
Sequence Fragments
Sequence Fragments
Example
Steps for building sequence
diagram
Example
Open Problem
Conclusion
Reference
2
Introduction
What is UML?
• UML , short for Unified Modeling Language, is a standardized
modeling language consisting of an integrated set of diagrams,
developed to help system and software developers for specifying,
visualizing, constructing, and documenting the artifacts of software
systems, as well as for business modeling and other non-software
systems.
Types of UML Diagrams –
• Use case Diagram
• Class Diagram
• Activity Diagram
• Sequence Diagram
• State Diagram
• Deployment Diagram
•
3
What Is Sequence Diagram ?
• Sequence diagrams describe interactions among classes in terms of an
exchange of messages over time.[1]
• They're also called event diagrams.
• A sequence diagram is a good way to visualize and validate various
runtime scenarios.
• They illustrate how the different parts of a system interact with each
other to carry out a function, and the order in which the interactions
occur when a particular use case is executed.[2]
• In simpler words, a sequence diagram shows different parts of a
system work in a ‘sequence’ to get something done.[2]
4
Significance Of Sequence Diagram
• An organization's technical staff can find sequence diagrams useful in
documenting how a future system should behave.[4]
• During the design phase, architects and developers can use the diagram to
force out the system's object interactions, thus fleshing out overall
system design.[4]
5
Use Of Sequence Diagram
• One of the primary uses of sequence diagrams is in the transition from
requirements expressed as use cases to the next level of refinement.
[4]
• Use cases are often refined into one or more sequence diagrams.
• In addition to their use in designing new systems, sequence diagrams
can be used to document how objects in an existing system currently
interact.[4]
• This documentation is very useful when transitioning a system to
another person or organization.
6
Sequence Diagram Notation
• A sequence diagram is structured in such a way that it represents a
timeline which begins at the top and descends gradually to mark the
sequence of interactions.[2]
• Each object has a column and the messages exchanged between them
are represented by arrows.[2]
• Lifeline Notation
• Activation Burs
• Message Arrows
• Comment
7
Lifeline Notation
• A sequence diagram is made up of several of these lifeline
notations that should be arranged horizontally across the top
of the diagram.[2]
• No two lifeline notations should overlap each other.[2]
• They represent the different objects or parts that interact
with each other in the system during the sequence.[2]
8
Lifeline Notation
oActor
• A lifeline notation with an actor element symbol is used when
the particular sequence diagram is owned by a use case.[2]
• Represent roles played by human user, external hardware ,or
other subject.
9
Lifeline Notation
o Entity
• A lifeline with an entity element represents system data.
• In a customer service application, the Customer entity
would manage all data related to a customer.[2]
10
Lifeline Notation
oBoundary
• A lifeline with a boundary element indicates a software element in a system.
• user interface screens, database gateways or menus that users interact with, are
boundaries.[2]
11
Activation Bars
• Activation boxes represent the time an object needs to complete a task.[1]
• When an object is busy executing a process or waiting for a reply message, use a
thin gray rectangle placed vertically on its lifeline.[1]
12
Message
• Messages are arrows that represent communication between objects.
• A message can flow in any direction; from left to right, right to left or
back to the Message Caller itself.[2]
• The message arrow comes with a description, which is known as a
message signature, on it. The format for this message signature is
below.[2]
• attribute = message_name (arguments): return_type .
13
Types Of Message
14
Types Of Message
Call Message
• Call message is a kind of message that
represents an invocation of operation of
target lifeline.[3]
Return Message
• Return message is a kind of message
that represents the pass of information
back to the caller of a corresponded
former message.[3]
15
Types Of Message
Self Message
• Self message is a kind of message that
represents the invocation of message of
the same lifeline.[3]
Recursive Message
• 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.[3]
16
Types Of Message
Create Message
• Create message is a kind of message that
represents the instantiation of (target)
lifeline.[3]
Destroy Message
• Destroy message is a kind of message
that represents the request of
destroying the lifecycle of target
lifeline.[3]
17
Types Of Message
Duration Message
• Duration message shows the distance
between two time instants for a message
invocation.[3]
18
Message Example
19
Comment
• The comment object is a rectangle with a folded-over corner as shown below.
• The comment can be linked to the related object with a dashed line.[2]
• A comment (note) gives the ability to attach various remarks to elements.[3]
20
Sequence Fragments
21
Sequence Fragments
• Sequence fragments make it
easier to create and maintain
accurate sequence diagrams.
• A sequence fragment is
represented as a box, called
a combined fragment, which
encloses a portion of the
interactions within a
sequence diagram.[4]
o The fragments available are[4]:
• alt- Alternative fragment
models if…then…else
constructs. Only one
sequence occurs on any
occasion.
22
Sequence Fragments
• opt- Optional. Encloses a
sequence that might or might not
happen. You can specify, in the
guard, the condition under which
it occurs.[4]
• loop - Loop fragment encloses a
series of messages which are
repeated.[4]
• Loop combined fragments have
the properties Min and Max,
which indicate the minimum and
maximum number of times that
the fragment can be repeated.
23
Sequence Fragments
• ignore - Ignore fragment declares a message or message to
be of no interest if it appears in the current context.[4]
• Par- Parallel fragment denotes concurrent processing.[4]
24
Sequence Fragments
25
• break- If this fragment is executed, the rest of the sequence is
abandoned.
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.
26
Example Of Sequence Diagram
ATM system :
27
Example Of Sequence Diagram
Balance Lookup
28
Example Of Sequence Diagram
Railway reservation system[6] :
29
Example Of Sequence Diagram
Online examination system[6] :
30
Example Of Sequence Diagram
Online Bookshop
31
Open Problem -1
Draw a sequence diagram that can detect the user's emotion by
his/her face and show the music playlist on based his/her emotion.
32
Open Problem - 2
• Technology has completely transformed the field of medicine, as it has with most
industries. A hospital information system, also known as a hospital information
system, helps doctors, administrators, and hospital staff managing all of the
activities and information collected at a hospital, including checkups, prescriptions,
appointments, and information on the patients and their caretakers.
• Draw the Sequence diagram on a Hospital Management System.
33
Open problem-3
34
Conclusion
The sequence diagram is a good diagram to use to document a system’s requirements
and to flush out a system’s design. The reason the sequence diagram is so useful is
because it shows the interaction logic between the objects in the system in the time
order that the interactions take place.
35
References
1. https://www.smartdraw.com/sequence-diagram/ [29-05-21]
2. https://creately.com/blog/diagrams/sequence-diagram-tutorial/[29-05-21]
3. https://www.visual-paradigm.com/guide/uml-unified-modeling-
language/what-is-sequence-diagram/ [29-05-21]
4. https://www.slideshare.net/ramakantsoni/lecture-5-sequence-diagram
[29-05-21]
5. https://www.diagrams.net [29-5-21]
6. https://creately.com/ [29-5-21]
7. https://www.javatpoint.com/uml-sequence-diagram [slide no-22] [21-6-
21]
36
Thanks!
37
Any question ?
38

More Related Content

What's hot

Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction DiagramNiloy Rocker
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
Preeti Mishra
 
Sequence Diagram
Sequence DiagramSequence Diagram
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
Nikhil Pandit
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
Mukesh Tekwani
 
Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
Harsh Jegadeesan
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity DiagramNiloy Rocker
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagramsAPU
 
Lecture#08 sequence diagrams
Lecture#08 sequence diagramsLecture#08 sequence diagrams
Lecture#08 sequence diagramsbabak danyal
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
Amith Tiwari
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
barney92
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
Satyamevjayte Haxor
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
Preeti Mishra
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)
Hirra Sultan
 

What's hot (20)

Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
 
Lecture#08 sequence diagrams
Lecture#08 sequence diagramsLecture#08 sequence diagrams
Lecture#08 sequence diagrams
 
object oriented methodologies
object oriented methodologiesobject oriented methodologies
object oriented methodologies
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Gof design patterns
Gof design patternsGof design patterns
Gof design patterns
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)
 

Similar to Sequence diagrame

Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML
6020 peaks
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
Mahesh Bhalerao
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
Creately
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software engg
SukhmanSingh91
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
RAJESH S
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
sabin kafle
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
Eliza Wright
 
Chap5 oodm-uml-part11
Chap5 oodm-uml-part11Chap5 oodm-uml-part11
Chap5 oodm-uml-part11
SJC
 
Chap5 oodm-uml-part1
Chap5 oodm-uml-part1Chap5 oodm-uml-part1
Chap5 oodm-uml-part1
SJC
 
A Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office CommunicationA Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office Communication
theijes
 
Structure chart
Structure chartStructure chart
Structure chart
Roy Antony Arnold G
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
devika g
 
LMS
LMSLMS
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptx
raghavanp4
 
StructureCharts (1).pdf
StructureCharts (1).pdfStructureCharts (1).pdf
StructureCharts (1).pdf
PranayPampana
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering
arvind pandey
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
RAJESH S
 

Similar to Sequence diagrame (20)

Uml examples
Uml examplesUml examples
Uml examples
 
Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
8.Unified Process Modelling.ppt of software engg
8.Unified Process Modelling.ppt  of software engg8.Unified Process Modelling.ppt  of software engg
8.Unified Process Modelling.ppt of software engg
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
 
Chap5 oodm-uml-part11
Chap5 oodm-uml-part11Chap5 oodm-uml-part11
Chap5 oodm-uml-part11
 
Chap5 oodm-uml-part1
Chap5 oodm-uml-part1Chap5 oodm-uml-part1
Chap5 oodm-uml-part1
 
A Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office CommunicationA Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office Communication
 
Structure chart
Structure chartStructure chart
Structure chart
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural design
 
LMS
LMSLMS
LMS
 
UML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptxUML Design Document Training Learn UML .pptx
UML Design Document Training Learn UML .pptx
 
StructureCharts (1).pdf
StructureCharts (1).pdfStructureCharts (1).pdf
StructureCharts (1).pdf
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 

More from City University

Blood bank mange project presentation
Blood bank mange project presentationBlood bank mange project presentation
Blood bank mange project presentation
City University
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
City University
 
Project proposal
Project proposalProject proposal
Project proposal
City University
 
Flood and rainfall predction final
Flood and rainfall predction finalFlood and rainfall predction final
Flood and rainfall predction final
City University
 
Smart (3 files merged)
Smart (3 files merged)Smart (3 files merged)
Smart (3 files merged)
City University
 
Project report
Project reportProject report
Project report
City University
 
All in one_config
All in one_configAll in one_config
All in one_config
City University
 
Ftp
FtpFtp
Dns server
Dns serverDns server
Dns server
City University
 
Mail server
Mail serverMail server
Mail server
City University
 
Smart home
Smart homeSmart home
Smart home
City University
 
Allinone topology
Allinone topologyAllinone topology
Allinone topology
City University
 

More from City University (12)

Blood bank mange project presentation
Blood bank mange project presentationBlood bank mange project presentation
Blood bank mange project presentation
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Project proposal
Project proposalProject proposal
Project proposal
 
Flood and rainfall predction final
Flood and rainfall predction finalFlood and rainfall predction final
Flood and rainfall predction final
 
Smart (3 files merged)
Smart (3 files merged)Smart (3 files merged)
Smart (3 files merged)
 
Project report
Project reportProject report
Project report
 
All in one_config
All in one_configAll in one_config
All in one_config
 
Ftp
FtpFtp
Ftp
 
Dns server
Dns serverDns server
Dns server
 
Mail server
Mail serverMail server
Mail server
 
Smart home
Smart homeSmart home
Smart home
 
Allinone topology
Allinone topologyAllinone topology
Allinone topology
 

Recently uploaded

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 

Recently uploaded (20)

Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 

Sequence diagrame

  • 1. Presentation On Sequence Diagram Course Code : CSE-325 Course Title : System Analysis And Design. 1
  • 2. Presentation Outline Introduction  What is UML?  Types of UML. What is Sequence Diagram Significance Of Sequence Diagram Use Of Sequence Diagram Sequence Diagram Notation  Lifeline Notation  Activation Burs  Message Arrows  Comment Types of Message Message Example Sequence Fragments Sequence Fragments Example Steps for building sequence diagram Example Open Problem Conclusion Reference 2
  • 3. Introduction What is UML? • UML , short for Unified Modeling Language, is a standardized modeling language consisting of an integrated set of diagrams, developed to help system and software developers for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling and other non-software systems. Types of UML Diagrams – • Use case Diagram • Class Diagram • Activity Diagram • Sequence Diagram • State Diagram • Deployment Diagram • 3
  • 4. What Is Sequence Diagram ? • Sequence diagrams describe interactions among classes in terms of an exchange of messages over time.[1] • They're also called event diagrams. • A sequence diagram is a good way to visualize and validate various runtime scenarios. • They illustrate how the different parts of a system interact with each other to carry out a function, and the order in which the interactions occur when a particular use case is executed.[2] • In simpler words, a sequence diagram shows different parts of a system work in a ‘sequence’ to get something done.[2] 4
  • 5. Significance Of Sequence Diagram • An organization's technical staff can find sequence diagrams useful in documenting how a future system should behave.[4] • During the design phase, architects and developers can use the diagram to force out the system's object interactions, thus fleshing out overall system design.[4] 5
  • 6. Use Of Sequence Diagram • One of the primary uses of sequence diagrams is in the transition from requirements expressed as use cases to the next level of refinement. [4] • Use cases are often refined into one or more sequence diagrams. • In addition to their use in designing new systems, sequence diagrams can be used to document how objects in an existing system currently interact.[4] • This documentation is very useful when transitioning a system to another person or organization. 6
  • 7. Sequence Diagram Notation • A sequence diagram is structured in such a way that it represents a timeline which begins at the top and descends gradually to mark the sequence of interactions.[2] • Each object has a column and the messages exchanged between them are represented by arrows.[2] • Lifeline Notation • Activation Burs • Message Arrows • Comment 7
  • 8. Lifeline Notation • A sequence diagram is made up of several of these lifeline notations that should be arranged horizontally across the top of the diagram.[2] • No two lifeline notations should overlap each other.[2] • They represent the different objects or parts that interact with each other in the system during the sequence.[2] 8
  • 9. Lifeline Notation oActor • A lifeline notation with an actor element symbol is used when the particular sequence diagram is owned by a use case.[2] • Represent roles played by human user, external hardware ,or other subject. 9
  • 10. Lifeline Notation o Entity • A lifeline with an entity element represents system data. • In a customer service application, the Customer entity would manage all data related to a customer.[2] 10
  • 11. Lifeline Notation oBoundary • A lifeline with a boundary element indicates a software element in a system. • user interface screens, database gateways or menus that users interact with, are boundaries.[2] 11
  • 12. Activation Bars • Activation boxes represent the time an object needs to complete a task.[1] • When an object is busy executing a process or waiting for a reply message, use a thin gray rectangle placed vertically on its lifeline.[1] 12
  • 13. Message • Messages are arrows that represent communication between objects. • A message can flow in any direction; from left to right, right to left or back to the Message Caller itself.[2] • The message arrow comes with a description, which is known as a message signature, on it. The format for this message signature is below.[2] • attribute = message_name (arguments): return_type . 13
  • 15. Types Of Message Call Message • Call message is a kind of message that represents an invocation of operation of target lifeline.[3] Return Message • Return message is a kind of message that represents the pass of information back to the caller of a corresponded former message.[3] 15
  • 16. Types Of Message Self Message • Self message is a kind of message that represents the invocation of message of the same lifeline.[3] Recursive Message • 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.[3] 16
  • 17. Types Of Message Create Message • Create message is a kind of message that represents the instantiation of (target) lifeline.[3] Destroy Message • Destroy message is a kind of message that represents the request of destroying the lifecycle of target lifeline.[3] 17
  • 18. Types Of Message Duration Message • Duration message shows the distance between two time instants for a message invocation.[3] 18
  • 20. Comment • The comment object is a rectangle with a folded-over corner as shown below. • The comment can be linked to the related object with a dashed line.[2] • A comment (note) gives the ability to attach various remarks to elements.[3] 20
  • 22. Sequence Fragments • Sequence fragments make it easier to create and maintain accurate sequence diagrams. • A sequence fragment is represented as a box, called a combined fragment, which encloses a portion of the interactions within a sequence diagram.[4] o The fragments available are[4]: • alt- Alternative fragment models if…then…else constructs. Only one sequence occurs on any occasion. 22
  • 23. Sequence Fragments • opt- Optional. Encloses a sequence that might or might not happen. You can specify, in the guard, the condition under which it occurs.[4] • loop - Loop fragment encloses a series of messages which are repeated.[4] • Loop combined fragments have the properties Min and Max, which indicate the minimum and maximum number of times that the fragment can be repeated. 23
  • 24. Sequence Fragments • ignore - Ignore fragment declares a message or message to be of no interest if it appears in the current context.[4] • Par- Parallel fragment denotes concurrent processing.[4] 24
  • 25. Sequence Fragments 25 • break- If this fragment is executed, the rest of the sequence is abandoned.
  • 26. 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. 26
  • 27. Example Of Sequence Diagram ATM system : 27
  • 28. Example Of Sequence Diagram Balance Lookup 28
  • 29. Example Of Sequence Diagram Railway reservation system[6] : 29
  • 30. Example Of Sequence Diagram Online examination system[6] : 30
  • 31. Example Of Sequence Diagram Online Bookshop 31
  • 32. Open Problem -1 Draw a sequence diagram that can detect the user's emotion by his/her face and show the music playlist on based his/her emotion. 32
  • 33. Open Problem - 2 • Technology has completely transformed the field of medicine, as it has with most industries. A hospital information system, also known as a hospital information system, helps doctors, administrators, and hospital staff managing all of the activities and information collected at a hospital, including checkups, prescriptions, appointments, and information on the patients and their caretakers. • Draw the Sequence diagram on a Hospital Management System. 33
  • 35. Conclusion The sequence diagram is a good diagram to use to document a system’s requirements and to flush out a system’s design. The reason the sequence diagram is so useful is because it shows the interaction logic between the objects in the system in the time order that the interactions take place. 35
  • 36. References 1. https://www.smartdraw.com/sequence-diagram/ [29-05-21] 2. https://creately.com/blog/diagrams/sequence-diagram-tutorial/[29-05-21] 3. https://www.visual-paradigm.com/guide/uml-unified-modeling- language/what-is-sequence-diagram/ [29-05-21] 4. https://www.slideshare.net/ramakantsoni/lecture-5-sequence-diagram [29-05-21] 5. https://www.diagrams.net [29-5-21] 6. https://creately.com/ [29-5-21] 7. https://www.javatpoint.com/uml-sequence-diagram [slide no-22] [21-6- 21] 36