SlideShare uma empresa Scribd logo
1 de 38
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

Mais conteúdo relacionado

Mais procurados (20)

Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Interaction Modeling
Interaction ModelingInteraction Modeling
Interaction Modeling
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Collaboration diagram- UML diagram
Collaboration diagram- UML diagram Collaboration diagram- UML diagram
Collaboration diagram- UML diagram
 
SE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context ModelSE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context Model
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
SAD11 - Sequence Diagrams
SAD11 - Sequence DiagramsSAD11 - Sequence Diagrams
SAD11 - Sequence Diagrams
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Object diagram
Object diagramObject diagram
Object diagram
 
Uml
UmlUml
Uml
 
Unit 2
Unit 2Unit 2
Unit 2
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
 

Semelhante a Sequence diagrame

Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML6020 peaks
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialCreately
 
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 enggSukhmanSingh91
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with umlsabin kafle
 
Chap5 oodm-uml-part1
Chap5 oodm-uml-part1Chap5 oodm-uml-part1
Chap5 oodm-uml-part1SJC
 
Chap5 oodm-uml-part11
Chap5 oodm-uml-part11Chap5 oodm-uml-part11
Chap5 oodm-uml-part11SJC
 
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 Communicationtheijes
 
unit 5 Architectural design
 unit 5 Architectural design unit 5 Architectural design
unit 5 Architectural designdevika g
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramNikhil Pandit
 
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 .pptxraghavanp4
 
StructureCharts (1).pdf
StructureCharts (1).pdfStructureCharts (1).pdf
StructureCharts (1).pdfPranayPampana
 
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
 

Semelhante a 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-part1
Chap5 oodm-uml-part1Chap5 oodm-uml-part1
Chap5 oodm-uml-part1
 
Chap5 oodm-uml-part11
Chap5 oodm-uml-part11Chap5 oodm-uml-part11
Chap5 oodm-uml-part11
 
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
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
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
 

Mais de City University (11)

Blood bank mange project presentation
Blood bank mange project presentationBlood bank mange project presentation
Blood bank mange project presentation
 
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
 

Último

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Último (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

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