1 On To Object Design Chapter 14 Applying UML and Patterns -Craig Larman.

Slides:



Advertisements
Similar presentations
Chapter 15 UML Interaction Diagrams 1CS6359 Fall 2012 John Cole.
Advertisements

Object-Oriented Analysis and Design CHAPTERS 15: UML INTERACTION DIAGRAMS 1.
System Sequence Diagrams
Interaction Diagram Notation From Chapter 15 of Craig Larman, Applying UML and Patterns John Dalesandro.
Chapter 1 Object Oriented Analysis and Design. UML, Patterns, and Object-Oriented Analysis and Design  The essential skills for the creation of well-designed,
Object-Oriented Analysis and Design CHAPTERS 12-14: INTRODUCTION TO DESIGN 1.
Use Case - Example University library system requirements
Chapter 15 Interaction Diagrams. Most Common Sequence Diagram Communication Diagram Sequence Diagrams illustrate interactions between classes of a program.
NJIT 1 On to Object Design Chapter 14 Applying UML and Patterns.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
Sequence Diagrams By Zvika Gutterman Adam Carmi. Sequence Diagrams2 Agenda Interaction Diagrams A First Look at Sequence Diagrams Objects Messages Control.
SE-565 Software System Requirements More UML Diagrams.
Designing with Interaction and Design Class Diagrams Chapters 15 & 16 Applying UML and Patterns Craig Larman With some ideas from students in George Blank’s.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Object-Oriented Analysis and Design Feb 9, 2009.
CSSE 374: Interaction Diagrams Steve Chenoweth Office: Moench Room F220 Phone: (812) These slides and others derived.
Systems Analysis and Design in a Changing World, Fifth Edition
IntellAgile Copyright © 2002 Craig Larman. All rights reserved. Visualizing Concepts with a Domain Model.
Software Engineering 1 Object-oriented Analysis and Design Applying UML and Patterns An Introduction to Object-oriented Analysis and Design and Iterative.
BTS430 Systems Analysis and Design using UML Domain Model Part 1—Finding Conceptual Classes.
12 Systems Analysis and Design in a Changing World, Fifth Edition.
Requirements To Design--Iteratively Chapter 12 Applying UML and Patterns Craig Larman.
1 On to Object Design Chapter 14 Applying UML and Patterns.
Object-Oriented Analysis and Design An Introduction.
1 ITEC 3010 “Systems Analysis and Design, I” LECTURE 10: Use Case Realizations [Prof. Peter Khaiter]
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 9: Interaction.
1 Interaction diagrams and activity diagrams Speaker: 陳 奕 全 Real-time and Embedded System Lab 15 August 2002.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 UML Sequence Diagrams.
Systems Analysis and Design in a Changing World, 3rd Edition
BTS430 Systems Analysis and Design using UML Interaction Diagrams.
Starting Object Design
Chapter 4: UML Interaction Diagrams. Objective Provide a reference for frequently used UML interaction diagram notation- sequence and communication diagrams.
Design Class Diagrams (DCDs)
1 COMP 350: Object Oriented Analysis and Design Lecture 1Introduction References: Craig Larman Chapter 1.
Copyright © Craig Larman All Rights Reserved The Domain Model.
♦ Use Case Model  Detailled use case - Important  Use case diagram- Refactoring Use case diagram  > 1 Last Lectures.
M Taimoor Khan Sequence Diagrams Illustrates how objects interacts with each other. Emphasizes time ordering of messages.
SWE © Solomon Seifu Models Communication Use caseActivity ObjectDeployment StateSequence Component Class Package Behavior diagram InteractionTiming.
What to remember from Chap 13 (Logical architecture)
Object Oriented Design Jerry KotubaSYST Object Oriented Methodologies1.
Drawing System Sequence Diagrams
Interaction Diagram Notation
Object-Oriented Analysis and Design Feb 11, 2009.
Object-Oriented Analysis and Design 1 Mira Balaban & Arnon Sturm Object-Oriented Analysis and Design Session 3a: Behavioral Modeling - Interactions.
Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
TK2023 Object-Oriented Software Engineering CHAPTER 9 INTRODUCTION TO OBJECT DESIGN.
Chapter 3: Introducing the UML
Summary from previous lectures
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
Dr. Kivanc DincerCS319 Week 6 - Oct.17,20051 Chapter 14 Onto Object Design Objectives Understand dynamic and static object design modeling. Try agile modeling,
Object Oriented Analysis & Design By Rashid Mahmood.
Logical Architecture and UML Package Diagrams. The logical architecture is the large-scale organization of the software classes into packages, subsystems,
Systems Analysis and Design in a Changing World, Fourth Edition
UML Interaction Diagrams
Sequence Diagrams Mimi Opkins CECS 493 Fall2016
Chapter 11: Collaboration Diagram - PART1
Sequence Diagram.
Chapter 13 Logical Architecture.
Requirements To Design In This Iteration
System Sequence Diagrams
Sequence Diagrams.
Unified Modelling Language
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
Chapter 13 Logical Architecture.
Interaction Diagrams A Lot of UML!
Sequence Diagrams.
Chapter 9: Sequence Diagrams Chapter 5 in Software Engineering Book
On to Object Design c. 14.
Presentation transcript:

1 On To Object Design Chapter 14 Applying UML and Patterns -Craig Larman

2 Connection between SSDs, System Operations and Layers In a well-designed layered architecture that supports high cohesion and a separation of concerns, the UI layer objects will then forward the request from the UI layer onto the domain layer for handling.

How design objects? Code : Design while coding Draw, then code : UML on a whiteboard, then switch to code Only draw: tools generate everything from diagrams. 3

WSEP 06 Designing Objects Static and dynamic modeling. Two kinds of object models: Static models : Class diagrams / Package diagram / Deployment diagram Helps design definition of packages, class name, attributtes and method signature Dynamic models : Interaction Diagrams/ (Sequence / comunication). State machine diagrams/activity diagram Illustrate how objects collaborate via messages and methdos. They help design the logic and method bodies

5 Agile modeling practice  Create Models in parallel! ( interaction diagram and class diagram)  Modeling with others

6 UML INTERACTION DIAGRAMS Chapter 15 Applying UML and Patterns -Craig Larman

Sequence Diagrams 7 A First Look at interaction Diagrams Illustrate how objects interacts with each other. Emphasizes time ordering of messages. Can model simple sequential flow, branching, iteration (loop), …etc Sequence / communication

sequence diagram Each new object is added to the right Method of Object A Class A has an attribute of type B to be able to call doTwo and doThree. Methods of Object B

Code public class A { private B myB= new B(); Public void doOne() { myB.doTwo(); myB.doThree(); } Class A has an attribute of type B. Class A has a method named doOne Class B has methods named doTwo and doThree

Communication diagram

Interaction Diagram notation

Common UML Interraction diagram notation lifeline

Basic Sequence diagram n o tation

How to illustrate a return result ? Is equivalent to

Messages sent to itself

Creation of Instances Dashed line Sale class will invoke the new operator and call the constructor.

Object destruction

Conditional message : OPT frame is placed around one or more messages. opt : Optional fragment that execute if guard [color=red] is true

Conditional message : UML1.x notation

which notation do you prefer?

Loops (iteration over a collection)

Code page

Loops (iteration over a collection)

Which notation do you prefer

Nesting of frames 25

How relate Interaction diagram? 26

Invoke static (class)methods 27

Polymorphism in interaction diagrams? 28

UP artifacts influencing OO design

Questions? 30

aMember: BookBorrower theLibraryMember: LibraryMember theCopy: CopytheBook: Book borrow (theCopy) 1: okToBorrow 2: borrow 2.1:borrowed Can you guess the scenario from this interaction diagram ?

Collaboration diagram: Library System