 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 5 Outline 5.1 Introduction 5.2 Collaborations 5.3 Creating Collaborations.

Slides:



Advertisements
Similar presentations
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Advertisements

Chapter 12 ATM Case Study, Part 1: Object-Oriented Design with the UML
Design. Overview Design and abstraction Action-oriented design Data flow analysis Transaction analysis Data-oriented design Object-oriented design Challenges.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 5: Restaurant.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 14 – Student Grades Application: Introducing.
Slide 6C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 6B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
Slide 10B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
(C) 2010 Pearson Education, Inc. All rights reserved. Java How to Program, 8/e.
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
Object Collaborations. Objectives: Object Interaction (cont.) You will be able to:  Use sequence diagrams to detail object interactions.
9-1 © Prentice Hall, 2004 Chapter 9, Part II: System Behavior - Interactions (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh.
State Change Modelling. Aim: To introduce the concept and techniques for describing the changes in state that may occur to an object in its lifetime.
Slide 7A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
7M822 UML Interaction Diagrams 25 November 2010.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
7M822 UML Sequence Diagrams 5 October 2009.
 2003 Prentice Hall, Inc. All rights reserved. 1 Outline 4.1 Introduction 4.2 Algorithms 4.3 Pseudocode 4.4 Control Structures 4.5 if Single-Selection.
Unified Modeling Language
*Object-Oriented Design (Schach Chap 14)
Chapter 2 (Horstmann’s Book) – Part 2 The Object-Oriented Design Process Hwajung Lee.
1 Object Oriented Analysis and Design. 2 Object-Oriented Analysis  Statement of what our client wants Object-Oriented Design  How to provide it using.
Object-Oriented Design & Patterns Cay S
An Object-Oriented Approach to Programming Logic and Design
Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
Software Life Cycle Requirements and problem analysis. –What exactly is this system supposed to do? Design –How will the system solve the problem? Coding.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 7 Outline 7.1 Introduction 7.2 Overview of Simulation Implementation.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 4 Outline 4.1 Introduction 4.2 Class Operations 4.3 Creating Class.
1 Analysis Extracting from Use Cases to Create Diagrams.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 3 Outline 3.1 Introduction 3.2 Class Attributes 3.3 Statechart Diagrams.
CSC 395 – Software Engineering Lecture 13: Object-Oriented Analysis –or– Let the Pain Begin (At Least I’m Honest!)
CSC 213 – Large Scale Programming. Today’s Goal  Improve design skills to make usable designs  Noun extraction & UML class diagram reviewed  Connections.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Behavioral Modeling Chapter 8.
Systems Analysis & Design 7 th Edition Chapter 5.
Chapter 12: Design Phase n 12.1 Design and Abstraction n 12.2 Action-Oriented Design n 12.3 Data Flow Analysis n Data Flow Analysis Example n
ANALYSIS - II REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
9-1 © Prentice Hall, 2004 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
Slide 12A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 2 Outline 2.1 Introduction 2.2 Thinking About Objects: Identifying.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
Behavioral Modeling Chapter 8
Software Engineering Zhang Shuang
Slide 13.1 © The McGraw-Hill Companies, 2002 Object-Oriented and Classical Software Engineering Fifth Edition, WCB/McGraw-Hill, 2002 Stephen R. Schach.
 2006 Doan Van Ban, IOIT. All rights reserved. 1 Case Study: E levator System Simulation Program Goal –Software simulator application –N-floor elevator.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Essentials of Counter-Controlled Repetition Counter-controlled repetition requires: Control variable (loop counter) Initial value of the control variable.
Object-Oriented Analysis and Design Use cases Finding classes Collaboration and Sequence diagrams Associations between classes.
Java How to Program, 9/e © by Pearson Education, Inc. All Rights Reserved.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
OOD OO Design. OOD-2 OO Development Requirements Use case analysis OO Analysis –Models from the domain and application OO Design –Mapping of model.
McGraw-Hill/Irwin© 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 17 Object-Oriented Design and Modeling Using the UML.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 6: Restaurant.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Chapter 7 Part II Structuring System Process Requirements MIS 215 System Analysis and Design.
 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 6 Outline 6.1 Introduction 6.2 Implementation: Visibility 6.3 Implementation:
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
ATM OO Design and Implementation Case Study
Unified Modeling Language (UML)
Object-Oriented Systems Analysis and Design Using UML
Optional Case Study - Chapter 4
CS251 – Software Engineering Lectures 11 State Diagrams
UML dynamic Modeling (Behavior Diagram)
Review CSE116 2/21/2019 B.Ramamurthy.
Chapter 4 - Control Structures: Part 1
Presentation transcript:

 2000 Deitel & Associates, Inc. All rights reserved. Optional Case Study - Chapter 5 Outline 5.1 Introduction 5.2 Collaborations 5.3 Creating Collaborations 5.4 Collaboration Diagrams 5.5 Summary

 2000 Deitel & Associates, Inc. All rights reserved. 5.1 Introduction This chapter –Last OOD assignment before we begin study of OOP in Chapter 6 –Focus on object collaboration End of section –List of Internet and WWW UML resources (look in text) –Bibliography of UML resources (look in text) Chapter 6 –Begin coding simulator Chapters 7, 9 –Required to complete simulator

 2000 Deitel & Associates, Inc. All rights reserved. 5.2 Collaborations Collaboration - interaction between objects 1. Object of one class 2. Sends message 3. Received by object of another class –Message invokes operation of second class –In Chapter 4, we determined many operations Now, we focus on the messages that invoke them Next slide –List of verb phrases that correspond to operations Some phrases removed from complete list of all verbs –Remaining phrases are collaborations

 2000 Deitel & Associates, Inc. All rights reserved. 5.2 Collaborations (II)

 2000 Deitel & Associates, Inc. All rights reserved. 5.3 Creating Collaborations Creating Collaborations –Examine list of verbs –"resets elevator button" in class Elevator –To do this: Elevator object sends resetButton message to ElevatorButton object This invokes resetButton operation Next slide –List of all collaborations that can be taken from our table of verb phrases

 2000 Deitel & Associates, Inc. All rights reserved. 5.3 Creating Collaborations (II)

 2000 Deitel & Associates, Inc. All rights reserved. 5.4 Collaboration Diagrams Collaboration diagrams –Model interaction of objects –Focus on which objects participate in interactions –Sequence diagrams focus on when interactions occur Format –Rectangle - represents object, has name inside –Solid lines - connect collaborating objects Message passed along direction shown by arrows Name of message by arrow –Sequence of messages - numerical ordering of messages

 2000 Deitel & Associates, Inc. All rights reserved. 5.4 Collaboration Diagrams : FloorButton : Floor passenger : Person 3.1: resetButton( )3.2: turnOn( ) 3: elevatorArrived( ) 4.1.1: passengerExits( )4.2.1: passengerEnters( ) 1: resetButton( )2: ringBell( ) 4: openDoor( ) 4.1: exitElevator( )4.2: enterElevator( ) : Light : Elevator waitingPassenger : Person : Bell : ElevatorButton : Door 1: Elevator resets button 2: Elevator rings bell 3: Elevator notifies floor of arrival 3.1: Floor resets its button 3.2: Floor turns on its light 4: Elevator opens door 4.1: Door sends exitElevator message to passenger passengerExits 4.2: Door sends enterElevator message to waitingperson passengerEnters (This sequence ensures that a person exits before another enters)

 2000 Deitel & Associates, Inc. All rights reserved. 5.5 Summary Reasonably complete listing of classes –Chapter 6 - implement large portion of simulator –Chapter 7 - implement complete, working simulator –Chapter 9 - discuss inheritance Summary of object-oriented design process 0. Analysis phase - meet with clients, gather information Create use cases to describe how users interact with system In this example, began with problem statement (no analysis phase) 1. Classes - locate classes by listing nouns in problem statement Eliminate nouns that are attributes of classes, and nouns that are not part of the system Create a diagram that models classes and associations

 2000 Deitel & Associates, Inc. All rights reserved. 5.5 Summary Summary of OOD process (continued) 2. Attributes - extract attributes by listing words that describe classes 3. Dynamic Nature - create statechart diagrams to learn how classes change over time 4. Operations - examine verbs associated with each class Extract operations Use activity diagrams to model details of operations 5. Collaborations - examine interactions between objects Use sequence and collaboration diagrams Add attributes and operations as needed Design –We are probably missing a few pieces –This will become apparent as we implement the simulator in Chapter 6