SlideShare a Scribd company logo
UNIT I UML DIAGRAMS
Introduction to OOAD – Unified Process –
UML diagrams – Use Case – Class Diagrams–
Interaction Diagrams – State Diagrams –
Activity Diagrams –
Package, component and Deployment Diagrams.
Interaction Diagram
Describe how groups of objects
collaborate in some behavior
Introduction
• Interaction diagrams model the behavior of use cases
– By describing the way groups of objects interact to complete the task.
• The diagram shows
1. Objects involved in the use case
2. Messages that are passed b/w these objects within the use case.
• Purpose of Interaction Diagram
– To capture dynamic behaviour of a system.
– To describe the message flow in the system.
– To describe structural organization of the objects.
– To describe interaction among objects.
Types of Interaction Diagrams
• Two major kinds of interaction diagrams
1. Sequence Diagram  Show the sequence of events that occur.
2. Collaboration Diagram  Demonstrate how objects are statically connected
• Sequence diagram emphasizes on
– Time sequence of messages
• Collaboration diagram emphasizes on
– Structural organization of the objects that send and receive messages.
Sequence Vs Collaboration
• Main differences :
– Sequence diagrams show time-based object interaction
– Collaboration diagrams show how objects associate with each other.
• If the time sequence is important then sequence diagram is used
• If organization is required then collaboration diagram is used.
When to Use: Interaction Diagrams
• Interaction diagrams
– Used when you want to model the behavior of several objects in a use case.
– Demonstrate how the objects collaborate for the behavior.
– Do not give in depth representation of the behavior
• Things to be identified before drawing the interaction diagram:
– Objects taking part in the interaction.
– Message flows among the objects.
– Sequence in which the messages are flowing.
– Object organization.
Usage of Interaction Diagrams
• To model flow of control by time sequence.
• To model flow of control by structural organizations.
• For forward engineering.
• For reverse engineering.
Sequence Diagram
• Sequence Diagram models the collaboration of objects based on a time sequence.
• It shows how the objects interact with others in a particular scenario of a use case.
• This SD shows a simple scenario for the use of an automatic teller machine.
A constraint specifies 10
seconds as the max.
acceptable time interval
for the transaction.
• Sequence diagram
having 4 objects
1. Customer
2. Order
3. SpecialOrder
4. NormalOrder
Sequence Diagram – Example
Time sequence of message flows :
First call is sendOrder()
Next call is confirm ()
Last call is Dispatch ()
This diagram has shown the message sequence for SpecialOrder object
Same can be used in case ofNormalOrder object.
Consider a Use Case
• Order Entry window sends a "prepare" message to an Order.
• Order then sends "prepare" to each Order Line on the Order.
• Each Order Line checks the given Stock Item.
– If this check returns "true"
• Order Line removes the appropriate quantity of Stock Item from stock, and
• Creates a delivery item.
– If the Stock Item has fallen below the reorder level,
• That stock Item requests a reorder.
Consider a Use Case
vertical rectangles
show the objects activation
vertical dashed lines
represent the life of the object.
Message is shown by an arrow
b/w the lifelines of 2 objects
Message is
labeled
with the
message name
One can include the arguments &
control information in message
Self-call  Message that an
object sends to itself
Condition Marker show that
The message is sent
only if the condition is true
Iteration marker shows that a message is
sent many times to multiple receiver objects
Return indicates
a return from a message
Returns differ from the
regular messages in that the
line is dashed
On sequence diagram,
Arrows indicate the
messages sent
within the given use case
Consider a Use Case
X represents when the object is destroyed.
Asynchronous Message
• An asynchronous message
– Does not block the caller, so it can carry on with its own processing.
• An asynchronous message can do one of three things
1. Create a new thread, in which case it links to the top of an activation
2. Create a new object
3. Communicate with a thread that is already running
Transaction Coordinator
coordinate the checking
of the Transaction
Each Transaction Checker object is
responsible for a particular check.
Coordinator creates a number of
Transaction Checker objects
Each checker is called asynchronously
and proceeds in parallel.
When a Transaction is created,
it creates a Transaction Coordinator
When a Transaction Checker
completes, it notifies the
Transaction Coordinator.
Consider a Use Case
Textual descriptions
of what's happening
is given along the left
side of the sequence
diagram.
Objects can self-destruct
(last fig),
or
They can be destroyed
by another message
(This figure)
Collaboration Diagram
• Collaboration diagrams
– Shows the objects and their association with other objects in the system apart
from how they interact with each other.
– i.e., show the message flow between objects in an OO application
• Association between objects is not represented in a Sequence diagram.
Notations
• Objects are shown as icons
• Interaction between the objects is denoted by arrows.
• Message sequence is indicated by some numbering technique
– Number indicates how the methods are called one after another.
Example of Collaboration Diagram
Example of Collaboration Diagram
Collaboration
Diagram
Collaboration
Diagram with
Decimal Numbering
UML uses the decimal
scheme
Because it makes it
clear which operation is
calling which other
operation
07 interaction diagrams

More Related Content

What's hot

Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
Rahul Pola
 
Sequence Diagram
Sequence DiagramSequence Diagram
Cocomo model
Cocomo modelCocomo model
Cocomo model
Baskarkncet
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
Baskarkncet
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
LOKENDRA PRAJAPATI
 
UML
UMLUML
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
Sudarsun Santhiappan
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine DiagramNiloy Rocker
 
Introduction to UML
Introduction to UMLIntroduction to UML
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT II
pkaviya
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
Manoj Reddy
 
Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-designOliver Cheng
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
Swathy T
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Kumar
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
Dr Chetan Shelke
 

What's hot (20)

Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
UML
UMLUML
UML
 
Object Oriented Design
Object Oriented DesignObject Oriented Design
Object Oriented Design
 
State Machine Diagram
State Machine DiagramState Machine Diagram
State Machine Diagram
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
CS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT IICS8592 Object Oriented Analysis & Design - UNIT II
CS8592 Object Oriented Analysis & Design - UNIT II
 
Distributed deadlock
Distributed deadlockDistributed deadlock
Distributed deadlock
 
Ooad
OoadOoad
Ooad
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
 
Pressman ch-11-component-level-design
Pressman ch-11-component-level-designPressman ch-11-component-level-design
Pressman ch-11-component-level-design
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
 

Similar to 07 interaction diagrams

Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
Preeti Mishra
 
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
Amr E. Mohamed
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
Mukesh Tekwani
 
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGNOOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
KalyaniLokhande5
 
Uml
UmlUml
UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
CherryBerry2
 
Ooad sequence diagram_collaboration diagram
Ooad sequence diagram_collaboration diagramOoad sequence diagram_collaboration diagram
Ooad sequence diagram_collaboration diagram
RimshaLiaqat5
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
AMITJain879
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
Creately
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagramsbabak danyal
 
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسةملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
جامعة القدس المفتوحة
 
R1x g13 4 diagrams i
R1x g13 4 diagrams iR1x g13 4 diagrams i
R1x g13 4 diagrams i
cairo university
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
Minal Maniar
 
sequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdfsequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdf
mounikanarra3
 
Sequence diagrame
Sequence diagrameSequence diagrame
Sequence diagrame
City University
 
MID2 UML (1).pptx
MID2 UML (1).pptxMID2 UML (1).pptx
MID2 UML (1).pptx
mounikanarra3
 
Sequence Diagram
Sequence Diagram Sequence Diagram
Sequence Diagram
KamruzzamanKnok
 
Sequence Diagram
Sequence Diagram Sequence Diagram
Sequence Diagram
KamruzzamanKnok
 
Ooad 3
Ooad 3Ooad 3

Similar to 07 interaction diagrams (20)

Sequence diagrams
Sequence diagramsSequence diagrams
Sequence 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
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGNOOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
OOAD-Unit-3.ppt UML and ANALYSISI AND DESIGN
 
Uml
UmlUml
Uml
 
UML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussionUML Diagram @ Software engineering discussion
UML Diagram @ Software engineering discussion
 
Ooad sequence diagram_collaboration diagram
Ooad sequence diagram_collaboration diagramOoad sequence diagram_collaboration diagram
Ooad sequence diagram_collaboration diagram
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسةملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
 
R1x g13 4 diagrams i
R1x g13 4 diagrams iR1x g13 4 diagrams i
R1x g13 4 diagrams i
 
3 interaction and_state_modeling
3 interaction and_state_modeling3 interaction and_state_modeling
3 interaction and_state_modeling
 
Chapter7
Chapter7Chapter7
Chapter7
 
sequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdfsequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdf
 
Sequence diagrame
Sequence diagrameSequence diagrame
Sequence diagrame
 
MID2 UML (1).pptx
MID2 UML (1).pptxMID2 UML (1).pptx
MID2 UML (1).pptx
 
Sequence Diagram
Sequence Diagram Sequence Diagram
Sequence Diagram
 
Sequence Diagram
Sequence Diagram Sequence Diagram
Sequence Diagram
 
Ooad 3
Ooad 3Ooad 3
Ooad 3
 

More from Baskarkncet

Unit_I.pptx
Unit_I.pptxUnit_I.pptx
Unit_I.pptx
Baskarkncet
 
Unit 1
Unit 1Unit 1
Unit 1
Baskarkncet
 
HCI
HCIHCI
03 x files
03 x files03 x files
03 x files
Baskarkncet
 
03 namespace
03 namespace03 namespace
03 namespace
Baskarkncet
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
Baskarkncet
 
02 well formed and valid documents
02 well formed and valid documents02 well formed and valid documents
02 well formed and valid documents
Baskarkncet
 
00 introduction
00 introduction00 introduction
00 introduction
Baskarkncet
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
Baskarkncet
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
Baskarkncet
 
09 package diagram
09 package diagram09 package diagram
09 package diagram
Baskarkncet
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
Baskarkncet
 
06 class diagrams
06 class diagrams06 class diagrams
06 class diagrams
Baskarkncet
 
05 use case
05 use case05 use case
05 use case
Baskarkncet
 
03 unified process
03 unified process03 unified process
03 unified process
Baskarkncet
 
04 uml diagrams
04 uml diagrams04 uml diagrams
04 uml diagrams
Baskarkncet
 
01 introduction
01 introduction01 introduction
01 introduction
Baskarkncet
 

More from Baskarkncet (18)

Unit_I.pptx
Unit_I.pptxUnit_I.pptx
Unit_I.pptx
 
Unit 1
Unit 1Unit 1
Unit 1
 
HCI
HCIHCI
HCI
 
03 x files
03 x files03 x files
03 x files
 
03 namespace
03 namespace03 namespace
03 namespace
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
02 well formed and valid documents
02 well formed and valid documents02 well formed and valid documents
02 well formed and valid documents
 
00 introduction
00 introduction00 introduction
00 introduction
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
09 package diagram
09 package diagram09 package diagram
09 package diagram
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
06 class diagrams
06 class diagrams06 class diagrams
06 class diagrams
 
05 use case
05 use case05 use case
05 use case
 
03 unified process
03 unified process03 unified process
03 unified process
 
02 uml
02 uml02 uml
02 uml
 
04 uml diagrams
04 uml diagrams04 uml diagrams
04 uml diagrams
 
01 introduction
01 introduction01 introduction
01 introduction
 

Recently uploaded

road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 

Recently uploaded (20)

road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 

07 interaction diagrams

  • 1. UNIT I UML DIAGRAMS Introduction to OOAD – Unified Process – UML diagrams – Use Case – Class Diagrams– Interaction Diagrams – State Diagrams – Activity Diagrams – Package, component and Deployment Diagrams.
  • 2. Interaction Diagram Describe how groups of objects collaborate in some behavior
  • 3. Introduction • Interaction diagrams model the behavior of use cases – By describing the way groups of objects interact to complete the task. • The diagram shows 1. Objects involved in the use case 2. Messages that are passed b/w these objects within the use case. • Purpose of Interaction Diagram – To capture dynamic behaviour of a system. – To describe the message flow in the system. – To describe structural organization of the objects. – To describe interaction among objects.
  • 4. Types of Interaction Diagrams • Two major kinds of interaction diagrams 1. Sequence Diagram  Show the sequence of events that occur. 2. Collaboration Diagram  Demonstrate how objects are statically connected • Sequence diagram emphasizes on – Time sequence of messages • Collaboration diagram emphasizes on – Structural organization of the objects that send and receive messages.
  • 5. Sequence Vs Collaboration • Main differences : – Sequence diagrams show time-based object interaction – Collaboration diagrams show how objects associate with each other. • If the time sequence is important then sequence diagram is used • If organization is required then collaboration diagram is used.
  • 6. When to Use: Interaction Diagrams • Interaction diagrams – Used when you want to model the behavior of several objects in a use case. – Demonstrate how the objects collaborate for the behavior. – Do not give in depth representation of the behavior • Things to be identified before drawing the interaction diagram: – Objects taking part in the interaction. – Message flows among the objects. – Sequence in which the messages are flowing. – Object organization.
  • 7. Usage of Interaction Diagrams • To model flow of control by time sequence. • To model flow of control by structural organizations. • For forward engineering. • For reverse engineering.
  • 8. Sequence Diagram • Sequence Diagram models the collaboration of objects based on a time sequence. • It shows how the objects interact with others in a particular scenario of a use case. • This SD shows a simple scenario for the use of an automatic teller machine. A constraint specifies 10 seconds as the max. acceptable time interval for the transaction.
  • 9. • Sequence diagram having 4 objects 1. Customer 2. Order 3. SpecialOrder 4. NormalOrder Sequence Diagram – Example Time sequence of message flows : First call is sendOrder() Next call is confirm () Last call is Dispatch () This diagram has shown the message sequence for SpecialOrder object Same can be used in case ofNormalOrder object.
  • 10. Consider a Use Case • Order Entry window sends a "prepare" message to an Order. • Order then sends "prepare" to each Order Line on the Order. • Each Order Line checks the given Stock Item. – If this check returns "true" • Order Line removes the appropriate quantity of Stock Item from stock, and • Creates a delivery item. – If the Stock Item has fallen below the reorder level, • That stock Item requests a reorder.
  • 11. Consider a Use Case vertical rectangles show the objects activation vertical dashed lines represent the life of the object. Message is shown by an arrow b/w the lifelines of 2 objects Message is labeled with the message name One can include the arguments & control information in message Self-call  Message that an object sends to itself Condition Marker show that The message is sent only if the condition is true Iteration marker shows that a message is sent many times to multiple receiver objects
  • 12. Return indicates a return from a message Returns differ from the regular messages in that the line is dashed On sequence diagram, Arrows indicate the messages sent within the given use case Consider a Use Case X represents when the object is destroyed.
  • 13. Asynchronous Message • An asynchronous message – Does not block the caller, so it can carry on with its own processing. • An asynchronous message can do one of three things 1. Create a new thread, in which case it links to the top of an activation 2. Create a new object 3. Communicate with a thread that is already running
  • 14. Transaction Coordinator coordinate the checking of the Transaction Each Transaction Checker object is responsible for a particular check. Coordinator creates a number of Transaction Checker objects Each checker is called asynchronously and proceeds in parallel. When a Transaction is created, it creates a Transaction Coordinator When a Transaction Checker completes, it notifies the Transaction Coordinator. Consider a Use Case
  • 15. Textual descriptions of what's happening is given along the left side of the sequence diagram. Objects can self-destruct (last fig), or They can be destroyed by another message (This figure)
  • 16. Collaboration Diagram • Collaboration diagrams – Shows the objects and their association with other objects in the system apart from how they interact with each other. – i.e., show the message flow between objects in an OO application • Association between objects is not represented in a Sequence diagram.
  • 17. Notations • Objects are shown as icons • Interaction between the objects is denoted by arrows. • Message sequence is indicated by some numbering technique – Number indicates how the methods are called one after another.
  • 21. Collaboration Diagram with Decimal Numbering UML uses the decimal scheme Because it makes it clear which operation is calling which other operation