Slide 6B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.

Slides:



Advertisements
Similar presentations
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Advertisements

Systems Analysis and Design in a Changing World, Fourth Edition
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.
Slide 4.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
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 11C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 11D.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 10A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 7D.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Slide 10B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 8B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 7B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 5A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 8A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 7C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 5D.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 7A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 5C.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 6A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 19.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 11B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
Slide 17.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Slide 5B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 7E.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 12C.50 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005.
Case Study: Class Extraction.
Slide 10C.52 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Slide 12E.121 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Unified Modeling Language
TK2023 Object-Oriented Software Engineering CHAPTER 6 SYSTEM SEQUENCE DIAGRAMS.
Chapter 7: The Object-Oriented Approach to Requirements
Objects What are Objects Observations
Slide 16A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
Slide 11.1 Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Object-Oriented Software Engineering WCB/McGraw-Hill, 2008 Stephen.
Slide 16B.51 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering.
Slide 10A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005.
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 Analysis Extracting from Use Cases to Create Diagrams.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
CSC 395 – Software Engineering Lecture 13: Object-Oriented Analysis –or– Let the Pain Begin (At Least I’m Honest!)
An Introduction to the Unified Modeling Language
Slide 20.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 12A.1 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Slide 12.1 Object-Oriented and Classical Software Engineering Chapter 12 Object Oriented Analysis.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
Slide 10A.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
THE ANALYSIS WORKFLOW  The specification document  Informal specifications  The analysis workflow  Extracting the entity classes  Functional modeling:
Slide 12.1 © The McGraw-Hill Companies, 2007 Object-Oriented and Classical Software Engineering Seventh Edition, WCB/McGraw-Hill, 2007 Stephen R. Schach.
CHAPTER 13 OBJECT-ORIENTED ANALYSIS. Overview l The analysis workflow l Extracting the entity classes l The elevator problem case study l The test workflow:
Slide 6D.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with.
Slide 12D.88 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 10: Statecharts.
Slide 12F.135 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
CHAPTER 12 OBJECT-ORIENTED ANALYSIS. Overview Extracting the entity classes Object-oriented analysis: The elevator problem case study Functional modeling.
McGraw-Hill/Irwin© 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 17 Object-Oriented Design and Modeling Using the UML.
Slide 11.1 Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved. Object-Oriented Software Engineering WCB/McGraw-Hill, 2008 Stephen.
Implementation workflow Implementation workflow
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Unified Modeling Language
Figure 6.1 Entity Class Boundary Class Control Class.
Week 12: Activity & Sequence Diagrams
CIS 375 Bruce R. Maxim UM-Dearborn
Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach
CIS 375 Bruce R. Maxim UM-Dearborn
Presentation transcript:

Slide 6B.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with UML and the Unified Process McGraw-Hill, 2004 Stephen R. Schach

Slide 6B.2 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. CHAPTER 6 — Unit B THE ANALYSIS WORKFLOW I

Slide 6B.3 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Continued from Unit 6A

Slide 6B.4 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Fifth Iteration of the Initial Class Diagram (contd)

Slide 6B.5 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Modeling l Dynamic modeling is the third step in object-oriented analysis l A statechart is constructed that reflects all the operations performed by or to the information system l The operations are determined from the scenarios

Slide 6B.6 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. The Concept of State l The state of an information system is a particular set of values of the attributes of that system –The state is often represented by a specific screen l Each event causes the system to move from state to state, that is, it causes a transition between states l Example: Microsoft Word –The state is the current screen –An event is to select (say) Font from the Format Menu –The Font screen is then the new state

Slide 6B.7 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby l Initial statechart

Slide 6B.8 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby (contd) l The solid circle (top left) represents the initial state l The white circle with the small black circle inside (top right) represents the final state l States other than the initial and final states are represented by rectangles with rounded corners l The arrows represent transitions from state to state –Example: The arrow from the initial state to the state labeled Osbert Oglesby Information System Loop

Slide 6B.9 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby (contd) l In state Osbert Oglesby Information System Loop, one of five events can occur: –Osbert can choose one of five options: buy a painting, sell a painting, print a report, update a fashionability coefficient, or quit l These possibilities are indicated by the five events: –buy painting selected –sell painting selected –print report selected –update fashionability selected –quit selected

Slide 6B.10 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby l The initial main menu in the target Osbert Oglesby information system

Slide 6B.11 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby (contd) l Suppose that Osbert clicks on Buy a painting in the menu –The event buy painting selected has now occurred –The system moves from its current state, Osbert Oglesby Information System Loop, to the state Buying a Painting l In Buying a Painting state, Osbert can –Buy a masterpiece, masterwork, or other painting

Slide 6B.12 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Dynamic Model: Osbert Oglesby (contd) l The Osbert Oglesby information system moves from state to state when an event occurs –In each state, Osbert performs one of the operations supported by that state l This continues until Osbert clicks on option Quit while the system is in state Oglesby Information System Loop –At this time the information system enters the final state (represented by the white circle containing the small black circle) –This terminates execution of the statechart

Slide 6B.13 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Modeling (contd) l Traditionally there is a dynamic model for each class, rather than for the system as a whole, as in this case study –However, objects in information systems rarely move from one class to another class l Accordingly, a dynamic model for the information system as a whole is appropriate

Slide 6B.14 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Extracting Boundary Classes l It is usually easy to extract boundary classes –Each input screen, output screen, and printed report is generally modeled by a boundary class

Slide 6B.15 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby l One screen should be adequate for all four Osbert Oglesby use cases: –Buy a Painting –Sell a Painting –Print a Report –Modify a Fashionability Coefficient l Thus there is one initial boundary class –User Interface Class

Slide 6B.16 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l Consider again the first iteration of the main menu of the user-interface screen l The five commands correspond precisely to the five events in the statechart

Slide 6B.17 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l This is a graphical interface, which needs special software

Slide 6B.18 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l However, a textual interface runs on all computers

Slide 6B.19 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l There are three reports: –The purchases report –The sales report –The future trends report l Each of these has to be modeled by a separate boundary class because the content of each report is different

Slide 6B.20 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l There are thus three report boundary classes –Purchases Report Class –Sales Report Class –Future Trends Report Class

Slide 6B.21 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Boundary Classes: Osbert Oglesby (contd) l There are therefore four boundary classes

Slide 6B.22 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Extracting Control Classes l It is also usually easy to extract control classes –Each nontrivial computation is generally modeled by a control class

Slide 6B.23 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Control Classes: Osbert Oglesby l In the case study there are four computations –Determining the maximum price that Osbert should offer for a »Masterpiece »Masterwork, or »Other painting –Determining if there is a new trend in art purchases

Slide 6B.24 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Control Classes: Osbert Oglesby l There are thus four initial control classes: –Compute Masterpiece Price Class –Compute Masterwork Price Class –Compute Other Painting Price Class –Compute Future Trends Class

Slide 6B.25 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Control Classes: Osbert Oglesby (contd) l Here are the initial control classes

Slide 6B.26 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Use Cases: Osbert Oglesby l The class diagram reflects that the pricing algorithm treats the three types of paintings differently l Accordingly, use case Buy a Painting needs to be refined into three separate use cases –Buy a Masterpiece –Buy a Masterwork –Buy Other Painting l Therefore, the description of the Buy a Painting use case must be split into three separate descriptions

Slide 6B.27 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. l The Produce a Report use case also needs to be refined –The purchases report and the sales report use simple data extraction — the future trends report involves computation –All three reports use their own boundary classes Refining the Use Cases: Osbert Oglesby (contd)

Slide 6B.28 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. l For both these reasons, the Produce a Report use case must be refined into three use cases –Produce a Purchases Report –Produce a Sales Report –Produce a Future Trends Report l The description of the use case must be split into three separate descriptions Refining the Use Cases: Osbert Oglesby (contd)

Slide 6B.29 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Third Iteration of the Use-Case Diagram

Slide 6B.30 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. l The description of class extraction is complete l We now therefore return to the Unified Process Class Extraction (contd)

Slide 6B.31 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use-Case Realization l The process of extending and refining use cases is called use-case realization

Slide 6B.32 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use-Case Realization (contd) l The verb “realize” is used at least 3 different ways: –Understand (“Harvey slowly began to realize that he was in the wrong classroom”); –Receive (“Ingrid will realize a profit of $45,000 on the stock transaction”); and –Accomplish (“Janet hopes to realize her dream of starting a computer company”) l In the phrase “realize a use case,” the word “realize” is used in this last sense –It means to accomplish (or achieve) the use case

Slide 6B.33 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use-Case Realization (contd) l The realization of a specific scenario of a use case is depicted using an interaction diagram –Either a sequence diagram or collaboration diagram l Various versions of the use case Buy a Masterpiece appear in the following slides

Slide 6B.34 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case l Use case diagram

Slide 6B.35 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l Description of the use case

Slide 6B.36 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l Class diagram (classes that enter into the use case)

Slide 6B.37 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l The four classes that enter into this use case are: –User Interface Class »This class models the user interface –Compute Masterpiece Price Class »This class models the computation of the price Osbert should offer –Masterpiece Class »The computation involves comparing the masterpiece being considered with the masterpieces that have been previously auctioned –Auctioned Painting Class »These masterpieces are all instances of Auctioned Painting Class

Slide 6B.38 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l The Seller does not interact directly with the information system –Instead, the Seller provides data that Osbert enters into the information system l This is indicated in the note (the rectangle with the top right-hand corner turned over) –There is a dashed line from the note to the item to which it refers, the Seller in this case

Slide 6B.39 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l Scenario (one possible instance of the use case)

Slide 6B.40 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l A working information system uses objects, not classes –Example: A specific masterpiece is not represented by Masterpiece Class but rather by an object, a specific instance of Masterpiece Class l Such an object is denoted by : Masterpiece Class

Slide 6B.41 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l A class diagram shows the classes in the use case and their relationships –It does not show the objects nor the sequence of messages as they are sent from object to object l Something more is needed

Slide 6B.42 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l Collaboration diagram (of the realization of the scenario of the use case)

Slide 6B.43 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd) l The collaboration diagram shows the objects as well as the messages, numbered in the order in which they are sent in the specific scenario l The direction of the arrow shows the direction in which the information flows

Slide 6B.44 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Continued in Unit 6C