0% found this document useful (0 votes)
11 views15 pages

SE InteractiveDiagram Module 4

Uploaded by

Snehargha Saha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views15 pages

SE InteractiveDiagram Module 4

Uploaded by

Snehargha Saha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Software Engineering

(PCC-CS504)
Module - 4_Part 2

Piyali Chandra
Assistant Professor
UEMK
Interactive Diagram
• An interaction diagram is a type of UML diagram that's used to
capture the interactive behavior of a system. Interaction diagrams
focus on describing the flow of messages within a system, providing
context for one or more lifelines within a system.
• Interaction diagrams can be used to represent the ordered sequences
within a system.
• This interactive behavior is represented in UML by two diagrams
known as Sequence diagram and Collaboration diagram.
Types of interaction diagrams in UML

Interaction diagrams are divided into four main types of diagrams:


• Communication diagram (collaboration diagram)
• Sequence diagram
• Timing diagram
• Interaction overview diagram
Sequence Diagram
Sequence Diagram
• A sequence diagram is a type of interaction diagram because it
describes how—and in what order—a group of objects works
together.
• Sequence diagrams are sometimes known as event diagrams or event
scenarios.
• It also emphasizes the time-ordering the massages.
Component of Sequence diagram
• Object: Represents a class or object in UML.
• Activation bar: Represents the time needed for an object to complete
a task. The longer the task will take, the longer the activation box
becomes.
• Actor Symbol: Shows entities that interact with or are external to the
system.
• Lifeline : Represents the passage of time as it extends downward.
Lifelines may begin with a labeled rectangle shape or an actor symbol.
Common message symbols
• Synchronous message symbol: Represented by a solid line with a
solid arrowhead. This symbol is used when a sender must wait for a
response to a message before it continues.
• Asynchronous message symbol: Represented by a solid line with a
lined arrowhead. Asynchronous messages don't require a response
before the sender continues.
• Reply message symbol : Represented by a dashed line with a lined
arrowhead, these messages are replies to calls.
Example of Sequence Diagram
Collaboration
Diagram
Communication or Collaboration diagram

• A communication diagram is an extension of object diagram that


shows the objects along with the messages that travel from one to
another.
• A communication diagram offers the same information as a sequence
diagram, but while a sequence diagram emphasizes the time and
order of events, a communication diagram emphasizes the messages
exchanged between objects in an application.
• It emphasizes the structural organization of the object that send and
receive massages.
Symbols and notations of communication diagrams

The symbols and notations used in communication diagrams are the


same notation for sequence diagram.
• Rectangles represent objects that make up the application.
• Lines between class instances represent the relationships between
different parts of the application.
• Arrows represent the messages that are sent between objects.
• Numbering lets you know in what order the messages are sent and
how many messages are required to finish a process.
Example of Collaboration diagram
Similarities Between Sequence and
Collaboration Diagram
• Like the sequence diagram collaboration diagram also is an
isomorphic that means at a time you can take a massage and transfer
to another.
• Both are related to behavioural aspects of the system.
Difference Between Sequence and
Collaboration Diagram
Sequence diagram Collaboration Diagram
• Used when time sequence is • Used when object organization is
main focus. main focus.
• To represent the sequence of • To represent the structural
messages that are flowing from organization of the system and the
one object to another. messages that are sent and
received.
• Visualize the sequence of calls in • Visualize the organization of the
a system. objects and their interaction.
• Better suited of analysis • Better suited for depicting simpler
activities. interactions of the smaller number
of objects.
Thank you and
Happy learning

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy