SlideShare a Scribd company logo
1 of 61
Object Oriented Software Modeling and Design  CE 350 Abdel-Karim Al-Tamimi, Ph.D. [email_address] http://faculty.yu.edu.jo/altamimi Al-Tamimi 2011 ©
Overview ,[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Interaction Diagrams ,[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Interaction Diagrams ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Interaction in UML ,[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Sequence Diagram ,[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Sequence Diagram: Example Al-Tamimi 2011 ©
Sequence Diagram: Example Al-Tamimi 2011 ©
Interaction Diagrams Notation in UML Al-Tamimi 2011 © Naming Format Notation An object of an unspecified class. A named object of a specified class. An unnamed object of a specified class.
Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category  Description Graphical Notations  Actor Object An external entity that interacts with the system Entity Object   An object that models the data in the system.  It often represents an object in the problem domain
Interaction Diagrams Notations in UML Al-Tamimi 2011 © Object Category  Description Graphical Notations  Boundary Object An object that handles the communication between actor objects and the system.  Control Object    An object that models the flow of control and functionality that do not naturally belong to entity objects or boundary objects.
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Procedure call  or other nested flow of control The message sender waits for the completion of the procedure call of the message receiver (waits for a reply) Asynchronous communication The sender dispatches a message and immediately continues with the next step of execution (there are no reply arrows)
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Return message  Message returned from the procedure call Message with travel delay  The message will take a significant amount of time to arrive at the receiving object. (This is only used in sequence diagrams.)
UML Notations - Messages Al-Tamimi 2011 © Message Description Notation Lost Message The sender is known, the receiver is not Found Message The sender is unknown, and the receiver is known Create Message A message creates a new  instance
Messages Notations Summary Al-Tamimi 2011 ©
Sequence Diagram: Lifeline and Activation Al-Tamimi 2011 © Object with Lifeline Object with Activation Activation:  show the duration of the execution of a method in response to a message
Sequence Diagram: Branching Al-Tamimi 2011 © Conditional Message Transmission
Sequence Diagram: Iteration Al-Tamimi 2011 ©
Sequence Diagram: Alternate Message Reception Al-Tamimi 2011 ©
Sequence Diagram: Recursion Al-Tamimi 2011 ©
Example Al-Tamimi 2011 © Life line Creation Deletion
Example Al-Tamimi 2011 © Life line Activation iteration
Example Al-Tamimi 2011 © Life line collective iteration
Example Al-Tamimi 2011 © Concurrent Branch
Example Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Tips and Tricks: Return Type ,[object Object],Al-Tamimi 2011 ©
Tips and Tricks: Object Destruction Al-Tamimi 2011 ©
Tips and Tricks: Iteration (looping) with A Condition Al-Tamimi 2011 ©
Tips and Tricks: Optional/Conditional Messages Al-Tamimi 2011 ©
Tips and Tricks: Conditional Messages (Mutual Exclusive) Al-Tamimi 2011 ©
Tips and Tricks: Looping Using Explicit Notations Al-Tamimi 2011 ©
Tips and Tricks: Looping Using Implicit Notations Al-Tamimi 2011 ©
Tips and Tricks: Nesting of Frames Al-Tamimi 2011 ©
Tips and Tricks: Relating Interaction Diagrams (Using Ref) / Interaction Occurrence Al-Tamimi 2011 ©
Tips and  Tricks: Polymorphic Message Al-Tamimi 2011 ©
Tips and Tricks: State Invariant Al-Tamimi 2011 ©
Tips and Tricks: State Invariant  Al-Tamimi 2011 ©
Tips and Tricks: Parallel Al-Tamimi 2011 ©
Tips and Tricks: Negative Operator/Invalid Operation Al-Tamimi 2011 ©
Tips and Tricks: Critical Region/Atomic Al-Tamimi 2011 ©
Tips and Tricks: Decomposition Al-Tamimi 2011 ©
Tips and Tricks: Continuations Al-Tamimi 2011 ©
Tips and Tricks: Continuations Al-Tamimi 2011 ©
Tips and Tricks: Hard Timing Requirements Al-Tamimi 2011 ©
Tips and Tricks: Break Fragment Al-Tamimi 2011 ©
Collaboration Diagram ,[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Example: Telephone System Al-Tamimi 2011 ©
Example: Message with Durations Al-Tamimi 2011 ©
Example: Printing Transcripts Al-Tamimi 2011 ©
Example: Printing Transcripts Al-Tamimi 2011 ©
Example: from Java IO API Al-Tamimi 2011 ©
Example: ATM Machine ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
Example: ATM Machine ,[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©
ATM Machine: Part1 Al-Tamimi 2011 ©
ATM Machine-Part2 Al-Tamimi 2011 ©
Soft-Drink Vending Machine Sequence Diagram Al-Tamimi 2011 ©
Soft-Drink Vending Machine Collaboration Diagram Al-Tamimi 2011 ©
Example Al-Tamimi 2011 ©
Resources ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Al-Tamimi 2011 ©

More Related Content

What's hot

Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
jsm1979
 
Uml Omg Fundamental Certification 1
Uml Omg Fundamental Certification 1Uml Omg Fundamental Certification 1
Uml Omg Fundamental Certification 1
Ricardo Quintero
 

What's hot (19)

UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Usecase Presentation
Usecase PresentationUsecase Presentation
Usecase Presentation
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
Use case model
Use case modelUse case model
Use case model
 
Introducing Uml And Development Process
Introducing Uml And Development ProcessIntroducing Uml And Development Process
Introducing Uml And Development Process
 
Domain model
Domain modelDomain model
Domain model
 
UML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language IntroductionUML Diagrams- Unified Modeling Language Introduction
UML Diagrams- Unified Modeling Language Introduction
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Unified modelling language (UML)
Unified modelling language (UML)Unified modelling language (UML)
Unified modelling language (UML)
 
Uml Omg Fundamental Certification 1
Uml Omg Fundamental Certification 1Uml Omg Fundamental Certification 1
Uml Omg Fundamental Certification 1
 
Uml
UmlUml
Uml
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
Object Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UMLObject Oriented Modeling and Design with UML
Object Oriented Modeling and Design with UML
 
UML Diagrams
UML  DiagramsUML  Diagrams
UML Diagrams
 
Lecture02
Lecture02Lecture02
Lecture02
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
UML diagrams and symbols
UML diagrams and symbolsUML diagrams and symbols
UML diagrams and symbols
 

Similar to Lecture07

Similar to Lecture07 (20)

Lecture09
Lecture09Lecture09
Lecture09
 
Lecture09
Lecture09Lecture09
Lecture09
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
uml.ppt
uml.pptuml.ppt
uml.ppt
 
Lecture10
Lecture10Lecture10
Lecture10
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Lecture05
Lecture05Lecture05
Lecture05
 
Jar chapter 4, part 1
Jar chapter 4, part 1Jar chapter 4, part 1
Jar chapter 4, part 1
 
UML.pptx
UML.pptxUML.pptx
UML.pptx
 
Extending UML for Agents
Extending UML for AgentsExtending UML for Agents
Extending UML for Agents
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Transaction handling in com, ejb and .net
Transaction handling in com, ejb and .netTransaction handling in com, ejb and .net
Transaction handling in com, ejb and .net
 
Lecture 13 requirements modeling - flow & behavior (2)
Lecture 13   requirements modeling - flow &  behavior (2)Lecture 13   requirements modeling - flow &  behavior (2)
Lecture 13 requirements modeling - flow & behavior (2)
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Lecture 4.pdf
Lecture 4.pdfLecture 4.pdf
Lecture 4.pdf
 
18540PhDreport.pdf
18540PhDreport.pdf18540PhDreport.pdf
18540PhDreport.pdf
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Atm Simulator
Atm SimulatorAtm Simulator
Atm Simulator
 
Ch 2.1
Ch 2.1Ch 2.1
Ch 2.1
 

More from artgreen (7)

Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5Ce350 class project_spring2011_v1.5
Ce350 class project_spring2011_v1.5
 
Lecture10.5
Lecture10.5Lecture10.5
Lecture10.5
 
Lecture08 examples
Lecture08 examplesLecture08 examples
Lecture08 examples
 
Lecture08
Lecture08Lecture08
Lecture08
 
Lecture07 examples
Lecture07 examplesLecture07 examples
Lecture07 examples
 
Lecture06
Lecture06Lecture06
Lecture06
 
Lecture01
Lecture01Lecture01
Lecture01
 

Recently uploaded

Recently uploaded (20)

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Lecture07