FORDHAM CSLU 3598 - chap06c THE ANALYSIS WORKFLOW I

Unformatted text preview:

An Introduction to Object-Oriented Systems Analysis and Design with UML and the Unified Process McGraw-Hill, 2004 Stephen R. Schach [email protected] 6 — Unit CSlide 3Buy a Masterpiece Use Case (contd)Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Slide 15Slide 16Slide 17Slide 18Interaction DiagramsSlide 20Slide 21Buy a Masterwork Use Case (contd)Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Buy Other Painting Use CaseBuy Other Painting Use Case (contd)Modifying the Main MenuModifying the Main Menu (contd)Sell a Painting Use Case (contd)Slide 35Slide 6C.1Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction toObject-Oriented Systems Analysis and Design with UML and the Unified Process McGraw-Hill, 2004Stephen R. [email protected] 6C.2Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. CHAPTER 6 — Unit CTHE ANALYSIS WORKFLOW ISlide 6C.3Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Continued from Unit 6BSlide 6C.4Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 1: –In paragraph 1 of this scenario, Osbert inputs the details of the masterpiece he is considering buying–In the collaboration diagram, this is modeled by message»1: Give masterpiece details –from Osbert to the object :UserInterfaceClassSlide 6C.5Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 2: –In paragraphs 2 and 3 of the scenario, the maximum purchase price is computed by comparing the masterpiece under consideration with masterpieces that have previously been auctioned–This computation is performed by an instance of the control class, namely, object :ComputeMasterpiecePriceClass–To do this, details of the masterpiece under consideration need to be transferred from object :UserInterfaceClassto object :ComputeMasterpiecePriceClass–This is modeled by message»2: Transfer masterpiece detailsSlide 6C.6Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 3:–To do the comparison, object :ComputeM asterpiecePriceClass has to create a masterpiece object–It first creates an instance of MasterpieceClass–This is modeled by message»3: Create new object from :ComputeMasterpiecePriceClass to :  MasterpieceClass–The [new] inside the object indicates that it is created as a consequence of the message–The new object is passed back to :ComputeMasterpiecePriceClass, modeled by message»4: Return new objectSlide 6C.7Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 4:–:ComputeMasterpiecePriceClass compares the masterpiece under consideration with each of the previously auctioned masterpieces–It browses through all the instances of AuctionedPaintingClass–This is modeled by message»5: Browse auctioned paintings from :ComputeMasterpiecePriceClass to :AuctionedPaintingClass and by message»6: Return auctioned paintingin the reverse directionSlide 6C.8Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 5:–Having found the best match, :ComputeMasterpiecePriceClass computes the maximum price to be offered and informs Osbert what that price is–The price is transferred from : ComputeMasterpiecePriceClass to the user interface object :UserInterfaceClass so that the price can be displayed–This is modeled by message»7: Provide price–Next the price is displayed for Osbert by the message»8: Display priceSlide 6C.9Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 6:–Osbert makes an offer for the masterpiece»The comment below paragraph 3 of the scenario states that the offer is accepted–Osbert now enters details provided by the seller–This is modeled by message»9: Give seller detailsfrom Osbert to object :  User I nterf aceClass–The note indicates that the data are provided by the seller to OsbertSlide 6C.10Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 7:–The seller data are passed on to object :ComputeMasterpiecePriceClass–This is modeled by message»10: Transfer seller detailsto update the details of the masterpiece object :MasterpieceClass–This is modeled by message»11: Request updateSlide 6C.11Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Item 8:–:MasterpieceClass then sends an acknowledgment to :  ComputeMasterpiecePriceClass–This is modeled by message»12: Send acknowledgment–This acknowledgment is then passed on to the user interface object :UserInterf aceClass –This is modeled by message»13: Send acknowledgment–:UserInterfaceClass now displays it for Osbert –This is modeled by message»14: Display acknowledgmentSlide 6C.12Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Osbert will not approve the specification document unless he understands itAccordingly, a written description of the collaboration diagram is needed–The flow of eventsSlide 6C.13Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)The flow of events of the collaboration diagram of the realization of the scenario of the use caseSlide 6C.14Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)UML supports two different types of interaction diagram–Collaboration diagram–Sequence diagramBoth contain exactly the same information, but displayed in different waysSlide 6C.15Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)Sequence diagram equivalent to the collaboration diagram (of the realization of the scenario of the use case)Slide 6C.16Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Buy a Masterpiece Use Case (contd)The


View Full Document

FORDHAM CSLU 3598 - chap06c THE ANALYSIS WORKFLOW I

Download chap06c THE ANALYSIS WORKFLOW I
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view chap06c THE ANALYSIS WORKFLOW I and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view chap06c THE ANALYSIS WORKFLOW I 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?