SlideShare a Scribd company logo
1 of 26
Download to read offline
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

UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxNwabueze Obioma
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsAmr E. Mohamed
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpageAishwarya Pallai
 
JavaScript Objects
JavaScript ObjectsJavaScript Objects
JavaScript ObjectsReem Alattas
 
Uml Diagrams for Web Developers
Uml Diagrams for Web DevelopersUml Diagrams for Web Developers
Uml Diagrams for Web DevelopersDave Kelleher
 
Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netmekhap
 
Activity Diagram
Activity DiagramActivity Diagram
Activity DiagramAshesh R
 
11 ooad uml-14
11 ooad uml-1411 ooad uml-14
11 ooad uml-14Niit Care
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringMeghaj Mallick
 
Multi Tier Architecture
Multi Tier ArchitectureMulti Tier Architecture
Multi Tier Architecturegatigno
 
Design Patterns Presentation - Chetan Gole
Design Patterns Presentation -  Chetan GoleDesign Patterns Presentation -  Chetan Gole
Design Patterns Presentation - Chetan GoleChetan Gole
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentationSayedFarhan110
 

What's hot (20)

UML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptxUML and Software Modeling Tools.pptx
UML and Software Modeling Tools.pptx
 
SE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour DiagramsSE_Lec 09_ UML Behaviour Diagrams
SE_Lec 09_ UML Behaviour Diagrams
 
Uml class Diagram
Uml class DiagramUml class Diagram
Uml class Diagram
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpage
 
JavaScript Objects
JavaScript ObjectsJavaScript Objects
JavaScript Objects
 
Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
 
Uml Diagrams for Web Developers
Uml Diagrams for Web DevelopersUml Diagrams for Web Developers
Uml Diagrams for Web Developers
 
Uml
UmlUml
Uml
 
Jsp element
Jsp elementJsp element
Jsp element
 
Html frames
Html framesHtml frames
Html frames
 
Uml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot netUml class diagram and packages ppt for dot net
Uml class diagram and packages ppt for dot net
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
11 ooad uml-14
11 ooad uml-1411 ooad uml-14
11 ooad uml-14
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software Engineering
 
Multi Tier Architecture
Multi Tier ArchitectureMulti Tier Architecture
Multi Tier Architecture
 
Oomd unit1
Oomd unit1Oomd unit1
Oomd unit1
 
Design Patterns Presentation - Chetan Gole
Design Patterns Presentation -  Chetan GoleDesign Patterns Presentation -  Chetan Gole
Design Patterns Presentation - Chetan Gole
 
Class diagram presentation
Class diagram presentationClass diagram presentation
Class diagram presentation
 
Activity diagrams
Activity diagramsActivity diagrams
Activity diagrams
 

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 digramktuonlinenotes
 
A Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office CommunicationA Model of Local Area Network Based Application for Inter-office Communication
A Model of Local Area Network Based Application for Inter-office Communicationtheijes
 
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.docxrandymartin91030
 
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 PatternsIJRES Journal
 
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 bcsandit
 
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
 
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 DemystifiedElizabeth 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 SYSTEMSIAEME Publication
 
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 designhimanshu_airon
 
Software architecture
Software architectureSoftware architecture
Software architecturenazn
 
Software_Archi-1.ppt
Software_Archi-1.pptSoftware_Archi-1.ppt
Software_Archi-1.pptFaizaZulkifal
 
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
 
Efficient and linear static approach for finding the memory leak in C
Efficient and linear static approach for finding the memory leak in C Efficient and linear static approach for finding the memory leak in C
Efficient and linear static approach for finding the memory leak in C IJECEIAES
 

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
 
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 bModeling 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-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)
 
Efficient and linear static approach for finding the memory leak in C
Efficient and linear static approach for finding the memory leak in C Efficient and linear static approach for finding the memory leak in C
Efficient and linear static approach for finding the memory leak in C
 

More from 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

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 

Recently uploaded (20)

Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 

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