SlideShare uma empresa Scribd logo
1 de 14
Communication Diagrams
Introduction
Introduction
A communication diagram, formerly called a collaboration diagram, is an interaction
diagram that shows similar information to sequence diagrams but its primary focus
is on object relationships.
Communication Diagram is also used to model the dynamic behavior of the use case.
It is more focused on showing the collaboration of objects rather than the time
sequence.
Purpose
Very useful for visualizing the relationship between objects collaborating to perform
a particular task.
Model flow control
Illustrate coordination of object structure and control.
notations
Return Message
Collaborations
Actor
Life Line
Actors
● Each Actor is named
and has a role
● One actor will be the
initiator of the use
case
Objects
● Each object in the
collaboration is
named and has its
class specified
● Not all classes need
to appear
● There may be more
than one object of a
class
Links
● Links connect
objects and actors
and are instances of
associations
● Each link
corresponds to an
association in the
class diagram
On communication
diagrams, objects are
shown with association
connectors between them.
Messages are added to the
associations and show as
short arrows pointing in
the direction of the
message flow. The
sequence of messages is
shown through a
numbering scheme.
Messages In order to maintain the ordering
of messages in a free-form
diagram, messages are labeled
with a chronological number and
placed near the link that message
is sent over. Reading involves
starting at message 1.0, and
following the messages from
object to object.
[sequenceNumber:] methodName(param) [: returnValue]
1.2 :getName(string) :firstName
Communication Diagram for Online Bookshop
Communication diagram For Online Shopping System
Scenario: Customer login to his/her account and order the
items/products that he/her wants and finally do the
payments.
Analyzing functional requirements and Identifying the main
flow
1. Customer login-Using customer ID & Password
2. Order the items and get the prices
3. Do payments
Requirement 1:Customer login
Objects/Classes : Customer, account
Message: login(id,pwd)
Requirement 2:Order the items and get the prices
Objects/Classes : Item,Price
Message: order item,get price
Requirement 3:Do payments
Objects/Classes : Item
Message: do payment
account:Customer Item
1:order item()
Price
2:get price()
Payment
3:do
payment()
pay:Master
3.1[if master]
pay by Master()
pay:Visa
3.2[if visa]
pay by visa()
Customer
:login(id,pwd)
Communication Diagrams.. Furthermore…..
Automatically generated test cases based on communication diagrams…!!!
Represent messages passed between objects and their sequences.
Can provide data flow and control flow information.
Data flow and control flow info have significant bearing on test case generation
With communication diagrams it’s possible to generate cluster level test cases
Communication
Diagram
Make tree Select
predicate
Transform
predicate
Generate
test data
Test cases
Thank You !

Mais conteúdo relacionado

Mais procurados

Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
Niloy Rocker
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
Inge Powell
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
Niloy Rocker
 

Mais procurados (20)

Diagrams
DiagramsDiagrams
Diagrams
 
Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
 
Unit 1( modelling concepts & class modeling)
Unit  1( modelling concepts & class modeling)Unit  1( modelling concepts & class modeling)
Unit 1( modelling concepts & class modeling)
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
09 package diagram
09 package diagram09 package diagram
09 package diagram
 
Activity diagram-UML diagram
Activity diagram-UML diagramActivity diagram-UML diagram
Activity diagram-UML diagram
 
Domain model Refinement
Domain model RefinementDomain model Refinement
Domain model Refinement
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 
Use case diagrams 2014
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
 
Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
Class diagram, use case and sequence diagram
Class diagram, use case and sequence diagramClass diagram, use case and sequence diagram
Class diagram, use case and sequence diagram
 
Chapter 8 ooad
Chapter  8 ooadChapter  8 ooad
Chapter 8 ooad
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 

Destaque (6)

Communication Diagram
Communication DiagramCommunication Diagram
Communication Diagram
 
Behaviourism/ The Behavioural Model. By Theresa Lowry-Lehnen. Lecturer of Psy...
Behaviourism/ The Behavioural Model. By Theresa Lowry-Lehnen. Lecturer of Psy...Behaviourism/ The Behavioural Model. By Theresa Lowry-Lehnen. Lecturer of Psy...
Behaviourism/ The Behavioural Model. By Theresa Lowry-Lehnen. Lecturer of Psy...
 
Lecture#08 sequence diagrams
Lecture#08 sequence diagramsLecture#08 sequence diagrams
Lecture#08 sequence diagrams
 
Sequence diagrams in UML
Sequence diagrams in UMLSequence diagrams in UML
Sequence diagrams in UML
 
Introduction state machine
Introduction state machineIntroduction state machine
Introduction state machine
 
Communication ppt
Communication pptCommunication ppt
Communication ppt
 

Semelhante a Communication diagram Introduction

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
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
miftah88
 

Semelhante a Communication diagram Introduction (20)

Ood Post1
Ood Post1Ood Post1
Ood Post1
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)OOAD with UML (Interaction Diagramming)
OOAD with UML (Interaction Diagramming)
 
Cs8592 ooad unit 3
Cs8592 ooad unit 3Cs8592 ooad unit 3
Cs8592 ooad unit 3
 
Cs8592 ooad unit 3
Cs8592 ooad unit 3Cs8592 ooad unit 3
Cs8592 ooad unit 3
 
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
 
07 interaction diagrams
07 interaction diagrams07 interaction diagrams
07 interaction diagrams
 
Object diagram
Object diagramObject diagram
Object diagram
 
Introduction to Rational Rose
Introduction to Rational RoseIntroduction to Rational Rose
Introduction to Rational Rose
 
Composite Structure Diagram
Composite Structure DiagramComposite Structure Diagram
Composite Structure Diagram
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
Online spice selling report1
Online spice selling report1Online spice selling report1
Online spice selling report1
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
The Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram TutorialThe Ultimate Sequence Diagram Tutorial
The Ultimate Sequence Diagram Tutorial
 
Use case model
Use case modelUse case model
Use case model
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
Jar chapter 2
Jar chapter 2Jar chapter 2
Jar chapter 2
 
Data & Databases
Data & Databases Data & Databases
Data & Databases
 
ECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptxECEG 4702-Class7-Entity-Relationship modeling.pptx
ECEG 4702-Class7-Entity-Relationship modeling.pptx
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 

Último

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

Communication diagram Introduction

  • 2. Introduction A communication diagram, formerly called a collaboration diagram, is an interaction diagram that shows similar information to sequence diagrams but its primary focus is on object relationships. Communication Diagram is also used to model the dynamic behavior of the use case. It is more focused on showing the collaboration of objects rather than the time sequence.
  • 3. Purpose Very useful for visualizing the relationship between objects collaborating to perform a particular task. Model flow control Illustrate coordination of object structure and control.
  • 5. Collaborations Actor Life Line Actors ● Each Actor is named and has a role ● One actor will be the initiator of the use case Objects ● Each object in the collaboration is named and has its class specified ● Not all classes need to appear ● There may be more than one object of a class Links ● Links connect objects and actors and are instances of associations ● Each link corresponds to an association in the class diagram
  • 6. On communication diagrams, objects are shown with association connectors between them. Messages are added to the associations and show as short arrows pointing in the direction of the message flow. The sequence of messages is shown through a numbering scheme.
  • 7. Messages In order to maintain the ordering of messages in a free-form diagram, messages are labeled with a chronological number and placed near the link that message is sent over. Reading involves starting at message 1.0, and following the messages from object to object. [sequenceNumber:] methodName(param) [: returnValue] 1.2 :getName(string) :firstName
  • 8. Communication Diagram for Online Bookshop
  • 9. Communication diagram For Online Shopping System Scenario: Customer login to his/her account and order the items/products that he/her wants and finally do the payments. Analyzing functional requirements and Identifying the main flow 1. Customer login-Using customer ID & Password 2. Order the items and get the prices 3. Do payments
  • 10. Requirement 1:Customer login Objects/Classes : Customer, account Message: login(id,pwd) Requirement 2:Order the items and get the prices Objects/Classes : Item,Price Message: order item,get price Requirement 3:Do payments Objects/Classes : Item Message: do payment
  • 11. account:Customer Item 1:order item() Price 2:get price() Payment 3:do payment() pay:Master 3.1[if master] pay by Master() pay:Visa 3.2[if visa] pay by visa() Customer :login(id,pwd)
  • 12. Communication Diagrams.. Furthermore….. Automatically generated test cases based on communication diagrams…!!! Represent messages passed between objects and their sequences. Can provide data flow and control flow information. Data flow and control flow info have significant bearing on test case generation With communication diagrams it’s possible to generate cluster level test cases