SlideShare a Scribd company logo
CST 205 - Object Oriented Programming Using Java
Prof. Sarju S
20 August 2020
Page 2 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Approaches to Software Design - Functional Oriented Design, Object
Oriented Design, Case Study of Automated Fire Alarm System.
► Object Modeling Using Unified Modeling Language (UML) – Basic Object
Oriented concepts, UML diagrams, Use case model, Class diagram,
Interaction diagram, Activity diagram, State chart diagram.
► Introduction to Java - Java programming Environment and Runtime
Environment, Development Platforms -Standard, Enterprise. Java Virtual
Machine (JVM), Java compiler, Bytecode, Java applet, Java Buzzwords,
Java program structure, Comments, Garbage Collection, Lexical Issues.
Page 3
Page 4 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Interaction diagram are used in UML to establish communication between objects.
► It does not manipulate the data associated with the particular communication path.
► Mostly focus on message passing and how these messages make up one functionality of
a system.
► The critical component in an interaction diagram is lifeline and messages.
Page 5 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Interaction diagram are used in UML to establish communication between objects.
► It does not manipulate the data associated with the particular communication path.
► Mostly focus on message passing and how these messages make up one functionality of
a system.
► The critical component in an interaction diagram is lifeline and messages.
Page 6 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Used to observe the dynamic behavior of a system
► Visualizes the communication and sequence of message passing in the
system
► Structural aspects of various objects in the system
► Ordered sequence of interactions within a system
Page 7 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Lifeline
► A lifeline represents a single participant in an
interaction.
► It describes how an instance of a specific
classifier participates in the interaction.
► Name(optional) - It is used to refer the lifeline
within a specific interaction.
► Type - name of a classifier of which the lifeline
represents an instance.
Source: https://www.geeksforgeeks.org/
Page 8 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► A Sequence Diagram simply depicts interaction between objects in a
sequential order.
► The purpose of a sequence diagram in UML is to visualize the sequence of
a message flow in the system
► Messages – Communication between objects is depicted using messages.
► The messages appear in a sequential order on the lifeline.
Page 9 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
Source: https://www.geeksforgeeks.org/
Page 10 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► A synchronous message waits for a reply
before the interaction can move forward.
► The sender waits until the receiver has
completed the processing of the message.
► The caller continues only when it knows that
the receiver has processed the previous
message.
Source: https://www.geeksforgeeks.org/
Page 11 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► An asynchronous message does not wait for a
reply from the receiver.
► The interaction moves forward irrespective of
the receiver processing the previous message
or not.
Source: https://www.geeksforgeeks.org/
Page 12 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► We use a Create message to instantiate a new
object in the sequence diagram.
► There are situations when a particular
message call requires the creation of an
object.
Source: https://www.geeksforgeeks.org/
Page 13 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► We use a Delete Message to delete an object.
► When an object is deallocated memory or is
destroyed within the system we use the
Delete Message symbol.
► It destroys the occurrence of the object in the
system.
Source: https://www.geeksforgeeks.org/
Page 14 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Certain scenarios might arise where the object
needs to send a message to itself.
Source: https://www.geeksforgeeks.org/
Device wants to access its webcam
Page 15 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Reply messages are used to show the
message being sent from the receiver to the
sender.
Source: https://www.geeksforgeeks.org/
A scenario where a reply message is used
Page 16 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► A Found message is used to represent a
scenario where an unknown source sends the
message.
Source: https://www.geeksforgeeks.org/
A scenario where a found message is used
Page 17 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► A Lost message is used to represent a
scenario where the recipient is not known to
the system.
Source: https://www.geeksforgeeks.org/
A scenario where a lost message is used
Page 18 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
Source: https://www.geeksforgeeks.org/
Page 19 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Used to explore any real application or a system.
► Used to represent message flow from one object to another object.
► Easier to maintain and generate
► Can be easily updated according to the changes within a system.
► Allows reverse as well as forward engineering.
Page 20 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Collaboration represents the
relationships and interactions
among software objects.
► They are used to understand the
object architecture within a system
rather than the flow of a message
as in a sequence diagram.
Source: https://www.geeksforgeeks.org/
Page 21 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► It is also called as a communication diagram.
► It emphasizes the structural aspects of an interaction diagram - how lifeline connects.
► Its syntax is similar to that of sequence diagram except that lifeline don't have tails.
► Messages passed over sequencing is indicated by numbering each message hierarchically.
► Compared to the sequence diagram communication diagram is semantically weak.
► Object diagrams are special case of communication diagram.
► It allows you to focus on the elements rather than focusing on the message flow as
described in the sequence diagram.
► Sequence diagrams can be easily converted into a collaboration diagram as collaboration
diagrams are not very expressive.
► While modeling collaboration diagrams w.r.t sequence diagrams, some information may
be lost.
Page 22 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► The flow of communication in the
diagram is given by,
► A student requests a login through the login
system.
► An authentication mechanism of software
checks the request.
► If a student entry exists in the database, then
the access is allowed; otherwise, an error is
returned
Source: https://www.geeksforgeeks.org/
Page 23 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
► Timing diagram is a waveform or a graph that is
used to describe the state of a lifeline at any
instance of time.
► It is used to denote the transformation of an
object from one form into another form.
► Timing diagram does not contain notations as
required in the sequence and collaboration
diagram.
► The flow between the software program at
various instances of time is represented using a
waveform.
Source: https://d2slcw3kip6qmk.cloudfront.net
Water cycle timing diagram example
Page 24 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
Source: https://www.geeksforgeeks.org/
Sequence diagram
Collaboration diagram
Page 25 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai
Source: https://www.geeksforgeeks.org/
Sequence diagram
Collaboration diagram
Sequence Diagrams Collaboration Diagrams
The sequence diagram represents the UML,
which is used to visualize the sequence of
calls in a system that is used to perform a
specific functionality.
The collaboration diagram also comes under
the UML representation which is used to
visualize the organization of the objects and
their interaction.
The sequence diagram are used to
represent the sequence of messages that
are flowing from one object to another.
The collaboration diagram are used to
represent the structural organization of the
system and the messages that are sent and
received.
The sequence diagram is used when time
sequence is main focus.
The collaboration dagram is used when
object organization is main focus.
The sequence diagrams are better suited of
analysis activities.
The collaboration diagrams are better suited
for depicting simpler interactions of the
smaller number of objects.
Page 26
Thank You
Prof. Sarju S
Department of Computer Science and Engineering
St. Joseph’s College of Engineering and Technology, Palai
sarju.s@sjcetpalai.ac.in

More Related Content

What's hot

3D Display Method
3D Display Method3D Display Method
3D Display Method
Khaled Sany
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
Sadhana28
 
Sequence Diagram
Sequence DiagramSequence Diagram
weak slot and filler
weak slot and fillerweak slot and filler
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
Kartik Raghuvanshi
 
State Diagram
State DiagramState Diagram
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
SanthiNivas
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
Shami Al Rahad
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
mewaseem
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
Rajani Thite
 
Component diagram
Component diagramComponent diagram
Component diagram
Abdul Manan
 
3.2 The design model & Architectural design.ppt
3.2 The design model & Architectural design.ppt3.2 The design model & Architectural design.ppt
3.2 The design model & Architectural design.ppt
THARUNS44
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
Baskarkncet
 
Character attributes
Character attributesCharacter attributes
Character attributes
shalinikarunakaran1
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
Kamal Acharya
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
Ankit Garg
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
Baskarkncet
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
bhupendra kumar
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
KALESHWAR KUMAR
 

What's hot (20)

3D Display Method
3D Display Method3D Display Method
3D Display Method
 
Class and object_diagram
Class  and object_diagramClass  and object_diagram
Class and object_diagram
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 
weak slot and filler
weak slot and fillerweak slot and filler
weak slot and filler
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
State Diagram
State DiagramState Diagram
State Diagram
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
Uml Presentation
Uml PresentationUml Presentation
Uml Presentation
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
 
Component diagram
Component diagramComponent diagram
Component diagram
 
3.2 The design model & Architectural design.ppt
3.2 The design model & Architectural design.ppt3.2 The design model & Architectural design.ppt
3.2 The design model & Architectural design.ppt
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
Character attributes
Character attributesCharacter attributes
Character attributes
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Concept of basic illumination model
Concept of basic illumination modelConcept of basic illumination model
Concept of basic illumination model
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 

Similar to Module 1 uml - interaction diagram

Module 1 uml - usecase digram
Module 1   uml - usecase digramModule 1   uml - usecase digram
Module 1 uml - usecase digram
ktuonlinenotes
 
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
 
Uml
UmlUml
Uml
parag
 
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
randymartin91030
 
A novel methodology for test scenario generation based on control flow analys...
A novel methodology for test scenario generation based on control flow analys...A novel methodology for test scenario generation based on control flow analys...
A novel methodology for test scenario generation based on control flow analys...
eSAT Publishing House
 
Research on Stability of Software Structure Based On Design Patterns
Research on Stability of Software Structure Based On Design PatternsResearch on Stability of Software Structure Based On Design Patterns
Research on Stability of Software Structure Based On Design Patterns
IJRES Journal
 
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
cscpconf
 
Modeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event bModeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event b
csandit
 
UML Design Class Diagrams (2014)
UML Design Class Diagrams (2014)UML Design Class Diagrams (2014)
UML Design Class Diagrams (2014)
Miriam Ruiz
 
Model-Based Systems Engineering Demystified
Model-Based Systems Engineering DemystifiedModel-Based Systems Engineering Demystified
Model-Based Systems Engineering Demystified
Elizabeth Steiner
 
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMSHYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
IAEME Publication
 
Object oriented analysis and design unit- iv
Object oriented analysis and design unit- ivObject oriented analysis and design unit- iv
Object oriented analysis and design unit- iv
Shri Shankaracharya College, Bhilai,Junwani
 
Sequence diagrams in UML
Sequence diagrams in UMLSequence diagrams in UML
Sequence diagrams in UML
Paxcel Technologies
 
LANSim
LANSimLANSim
SOFTWARE ENGINEERING FILE IN SLIDESHARE
SOFTWARE ENGINEERING FILE IN SLIDESHARE SOFTWARE ENGINEERING FILE IN SLIDESHARE
SOFTWARE ENGINEERING FILE IN SLIDESHARE
Khushboo Pal
 
Architecture and design
Architecture and designArchitecture and design
Architecture and design
himanshu_airon
 
Software architecture
Software architectureSoftware architecture
Software architecture
nazn
 
Jar chapter 4_part_ii
Jar chapter 4_part_iiJar chapter 4_part_ii
Jar chapter 4_part_ii
Reham Maher El-Safarini
 
Software_Archi-1.ppt
Software_Archi-1.pptSoftware_Archi-1.ppt
Software_Archi-1.ppt
FaizaZulkifal
 
Software Development Methodologies Library Management System (Part-2)
Software Development Methodologies Library Management System (Part-2)Software Development Methodologies Library Management System (Part-2)
Software Development Methodologies Library Management System (Part-2)
Totan Banik
 

Similar to Module 1 uml - interaction diagram (20)

Module 1 uml - usecase digram
Module 1   uml - usecase digramModule 1   uml - usecase digram
Module 1 uml - usecase digram
 
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
 
Uml
UmlUml
Uml
 
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docxPhase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
Phase 2 - Task 1Task TypeDiscussion BoardDeliverable Length.docx
 
A novel methodology for test scenario generation based on control flow analys...
A novel methodology for test scenario generation based on control flow analys...A novel methodology for test scenario generation based on control flow analys...
A novel methodology for test scenario generation based on control flow analys...
 
Research on Stability of Software Structure Based On Design Patterns
Research on Stability of Software Structure Based On Design PatternsResearch on Stability of Software Structure Based On Design Patterns
Research on Stability of Software Structure Based On Design Patterns
 
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
MODELING OF DISTRIBUTED MUTUAL EXCLUSION SYSTEM USING EVENT-B
 
Modeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event bModeling of distributed mutual exclusion system using event b
Modeling of distributed mutual exclusion system using event b
 
UML Design Class Diagrams (2014)
UML Design Class Diagrams (2014)UML Design Class Diagrams (2014)
UML Design Class Diagrams (2014)
 
Model-Based Systems Engineering Demystified
Model-Based Systems Engineering DemystifiedModel-Based Systems Engineering Demystified
Model-Based Systems Engineering Demystified
 
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMSHYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
HYBRID APPROACH TO DESIGN OF STORAGE ATTACHED NETWORK SIMULATION SYSTEMS
 
Object oriented analysis and design unit- iv
Object oriented analysis and design unit- ivObject oriented analysis and design unit- iv
Object oriented analysis and design unit- iv
 
Sequence diagrams in UML
Sequence diagrams in UMLSequence diagrams in UML
Sequence diagrams in UML
 
LANSim
LANSimLANSim
LANSim
 
SOFTWARE ENGINEERING FILE IN SLIDESHARE
SOFTWARE ENGINEERING FILE IN SLIDESHARE SOFTWARE ENGINEERING FILE IN SLIDESHARE
SOFTWARE ENGINEERING FILE IN SLIDESHARE
 
Architecture and design
Architecture and designArchitecture and design
Architecture and design
 
Software architecture
Software architectureSoftware architecture
Software architecture
 
Jar chapter 4_part_ii
Jar chapter 4_part_iiJar chapter 4_part_ii
Jar chapter 4_part_ii
 
Software_Archi-1.ppt
Software_Archi-1.pptSoftware_Archi-1.ppt
Software_Archi-1.ppt
 
Software Development Methodologies Library Management System (Part-2)
Software Development Methodologies Library Management System (Part-2)Software Development Methodologies Library Management System (Part-2)
Software Development Methodologies Library Management System (Part-2)
 

More from ktuonlinenotes

Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
ktuonlinenotes
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
ktuonlinenotes
 
Oop r&s may 2019
Oop r&s may 2019Oop r&s may 2019
Oop r&s may 2019
ktuonlinenotes
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
ktuonlinenotes
 
Oop july 2017
Oop july 2017Oop july 2017
Oop july 2017
ktuonlinenotes
 
Oop december 2018
Oop december 2018Oop december 2018
Oop december 2018
ktuonlinenotes
 
Oop april 2018
Oop april 2018Oop april 2018
Oop april 2018
ktuonlinenotes
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagram
ktuonlinenotes
 
Lecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oopLecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oop
ktuonlinenotes
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oop
ktuonlinenotes
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
ktuonlinenotes
 

More from ktuonlinenotes (11)

Oop suplemnertary september 2019
Oop suplemnertary september  2019Oop suplemnertary september  2019
Oop suplemnertary september 2019
 
Oop sample ktu
Oop sample ktuOop sample ktu
Oop sample ktu
 
Oop r&s may 2019
Oop r&s may 2019Oop r&s may 2019
Oop r&s may 2019
 
Oop r&s may 2019 (2)
Oop r&s may 2019 (2)Oop r&s may 2019 (2)
Oop r&s may 2019 (2)
 
Oop july 2017
Oop july 2017Oop july 2017
Oop july 2017
 
Oop december 2018
Oop december 2018Oop december 2018
Oop december 2018
 
Oop april 2018
Oop april 2018Oop april 2018
Oop april 2018
 
Lecture 4-oop class diagram
Lecture 4-oop class diagramLecture 4-oop class diagram
Lecture 4-oop class diagram
 
Lecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oopLecture1 cst205 cst281-oop
Lecture1 cst205 cst281-oop
 
Lecture 2 cst 205-281 oop
Lecture 2   cst 205-281 oopLecture 2   cst 205-281 oop
Lecture 2 cst 205-281 oop
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
 

Recently uploaded

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
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
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
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
 

Recently uploaded (20)

Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.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
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 

Module 1 uml - interaction diagram

  • 1. CST 205 - Object Oriented Programming Using Java Prof. Sarju S 20 August 2020
  • 2. Page 2 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Approaches to Software Design - Functional Oriented Design, Object Oriented Design, Case Study of Automated Fire Alarm System. ► Object Modeling Using Unified Modeling Language (UML) – Basic Object Oriented concepts, UML diagrams, Use case model, Class diagram, Interaction diagram, Activity diagram, State chart diagram. ► Introduction to Java - Java programming Environment and Runtime Environment, Development Platforms -Standard, Enterprise. Java Virtual Machine (JVM), Java compiler, Bytecode, Java applet, Java Buzzwords, Java program structure, Comments, Garbage Collection, Lexical Issues.
  • 4. Page 4 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Interaction diagram are used in UML to establish communication between objects. ► It does not manipulate the data associated with the particular communication path. ► Mostly focus on message passing and how these messages make up one functionality of a system. ► The critical component in an interaction diagram is lifeline and messages.
  • 5. Page 5 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Interaction diagram are used in UML to establish communication between objects. ► It does not manipulate the data associated with the particular communication path. ► Mostly focus on message passing and how these messages make up one functionality of a system. ► The critical component in an interaction diagram is lifeline and messages.
  • 6. Page 6 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Used to observe the dynamic behavior of a system ► Visualizes the communication and sequence of message passing in the system ► Structural aspects of various objects in the system ► Ordered sequence of interactions within a system
  • 7. Page 7 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Lifeline ► A lifeline represents a single participant in an interaction. ► It describes how an instance of a specific classifier participates in the interaction. ► Name(optional) - It is used to refer the lifeline within a specific interaction. ► Type - name of a classifier of which the lifeline represents an instance. Source: https://www.geeksforgeeks.org/
  • 8. Page 8 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► A Sequence Diagram simply depicts interaction between objects in a sequential order. ► The purpose of a sequence diagram in UML is to visualize the sequence of a message flow in the system ► Messages – Communication between objects is depicted using messages. ► The messages appear in a sequential order on the lifeline.
  • 9. Page 9 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai Source: https://www.geeksforgeeks.org/
  • 10. Page 10 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► A synchronous message waits for a reply before the interaction can move forward. ► The sender waits until the receiver has completed the processing of the message. ► The caller continues only when it knows that the receiver has processed the previous message. Source: https://www.geeksforgeeks.org/
  • 11. Page 11 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► An asynchronous message does not wait for a reply from the receiver. ► The interaction moves forward irrespective of the receiver processing the previous message or not. Source: https://www.geeksforgeeks.org/
  • 12. Page 12 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► We use a Create message to instantiate a new object in the sequence diagram. ► There are situations when a particular message call requires the creation of an object. Source: https://www.geeksforgeeks.org/
  • 13. Page 13 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► We use a Delete Message to delete an object. ► When an object is deallocated memory or is destroyed within the system we use the Delete Message symbol. ► It destroys the occurrence of the object in the system. Source: https://www.geeksforgeeks.org/
  • 14. Page 14 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Certain scenarios might arise where the object needs to send a message to itself. Source: https://www.geeksforgeeks.org/ Device wants to access its webcam
  • 15. Page 15 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Reply messages are used to show the message being sent from the receiver to the sender. Source: https://www.geeksforgeeks.org/ A scenario where a reply message is used
  • 16. Page 16 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► A Found message is used to represent a scenario where an unknown source sends the message. Source: https://www.geeksforgeeks.org/ A scenario where a found message is used
  • 17. Page 17 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► A Lost message is used to represent a scenario where the recipient is not known to the system. Source: https://www.geeksforgeeks.org/ A scenario where a lost message is used
  • 18. Page 18 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai Source: https://www.geeksforgeeks.org/
  • 19. Page 19 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Used to explore any real application or a system. ► Used to represent message flow from one object to another object. ► Easier to maintain and generate ► Can be easily updated according to the changes within a system. ► Allows reverse as well as forward engineering.
  • 20. Page 20 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Collaboration represents the relationships and interactions among software objects. ► They are used to understand the object architecture within a system rather than the flow of a message as in a sequence diagram. Source: https://www.geeksforgeeks.org/
  • 21. Page 21 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► It is also called as a communication diagram. ► It emphasizes the structural aspects of an interaction diagram - how lifeline connects. ► Its syntax is similar to that of sequence diagram except that lifeline don't have tails. ► Messages passed over sequencing is indicated by numbering each message hierarchically. ► Compared to the sequence diagram communication diagram is semantically weak. ► Object diagrams are special case of communication diagram. ► It allows you to focus on the elements rather than focusing on the message flow as described in the sequence diagram. ► Sequence diagrams can be easily converted into a collaboration diagram as collaboration diagrams are not very expressive. ► While modeling collaboration diagrams w.r.t sequence diagrams, some information may be lost.
  • 22. Page 22 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► The flow of communication in the diagram is given by, ► A student requests a login through the login system. ► An authentication mechanism of software checks the request. ► If a student entry exists in the database, then the access is allowed; otherwise, an error is returned Source: https://www.geeksforgeeks.org/
  • 23. Page 23 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai ► Timing diagram is a waveform or a graph that is used to describe the state of a lifeline at any instance of time. ► It is used to denote the transformation of an object from one form into another form. ► Timing diagram does not contain notations as required in the sequence and collaboration diagram. ► The flow between the software program at various instances of time is represented using a waveform. Source: https://d2slcw3kip6qmk.cloudfront.net Water cycle timing diagram example
  • 24. Page 24 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai Source: https://www.geeksforgeeks.org/ Sequence diagram Collaboration diagram
  • 25. Page 25 Prof. Sarju S, Department of Computer Science and Engineering, SJCET Palai Source: https://www.geeksforgeeks.org/ Sequence diagram Collaboration diagram Sequence Diagrams Collaboration Diagrams The sequence diagram represents the UML, which is used to visualize the sequence of calls in a system that is used to perform a specific functionality. The collaboration diagram also comes under the UML representation which is used to visualize the organization of the objects and their interaction. The sequence diagram are used to represent the sequence of messages that are flowing from one object to another. The collaboration diagram are used to represent the structural organization of the system and the messages that are sent and received. The sequence diagram is used when time sequence is main focus. The collaboration dagram is used when object organization is main focus. The sequence diagrams are better suited of analysis activities. The collaboration diagrams are better suited for depicting simpler interactions of the smaller number of objects.
  • 26. Page 26 Thank You Prof. Sarju S Department of Computer Science and Engineering St. Joseph’s College of Engineering and Technology, Palai sarju.s@sjcetpalai.ac.in