An Introduction to Object-Oriented Systems Analysis and Design with UML and the Unified Process McGraw-Hill, 2004 Stephen R. Schach [email protected] 5 — Unit CSlide 3Refining the Revised Requirements: MSGPartially Duplicated Use CaseSixth Iteration of the Revised Use-Case DiagramSlide 7Refining the Revised Requirements: MSG (contd)Reorganizing Two Use CasesReorganizing Two Use Cases (contd)Modified Description—Estimate Funds for WeekModified Description—Produce a ReportSlide 13Slide 14Seventh Iteration of Revised Use-Case DiagramRevised Description of Estimate Funds for WeekSlide 17Slide 5D.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] 5D.2Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. CHAPTER 5 — Unit CTHE REQUIREMENTS WORKFLOW IISlide 5D.3Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Continued from Unit 5CSlide 5D.4Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Revised Requirements: MSGRechecking the revised requirements uncovers two new problems–A use case has been partially duplicated–Two of the use cases need to be reorganizedSlide 5D.5Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Partially Duplicated Use CaseUse case Manage a Mortgage –One action is to modify a mortgageUse case Update Borrowers’ Weekly Income–Its only action is to update the borrowers’ weekly incomeThe borrowers’ weekly income is an attribute of the mortgage–Use case Manage a Mortgage already includes use case Update Borrowers’ Weekly IncomeAccordingly, use case Update Borrowers’ Weekly Income is superfluous, and must be deletedSlide 5D.6Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Sixth Iteration of the Revised Use-Case DiagramThe modified use case is shadedSlide 5D.7Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Revised Requirements: MSGThis iteration resulted in a decrement, not an incrementIn fact, deletion occurs often–Whenever we make a mistakeSometimes we can fix an incorrect artifact–More frequently we have to delete an artifactSlide 5D.8Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Revised Requirements: MSG (contd)However, when we discover a fault, we do not have to start the whole process from scratchFirst we try to fix the current iterationIf the mistake is too serious for this to work, we backtrack to the previous iteration, and try to find a better way to go forward from thereSlide 5D.9Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Reorganizing Two Use CasesDetermine the funds available for the current week –Use case Estimate Funds Available for Week models performing the calculation –Step 1.3 of use case Produce a Report models printing out the result of the computationThere is no point in estimating the funds available unless the results are printed outSlide 5D.10Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Reorganizing Two Use Cases (contd)The descriptions of the use cases –Estimate Funds Available for Week, and–Produce a Reporthave to be modified (the use cases do not change)Slide 5D.11Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Modified Description—Estimate Funds for WeekSlide 5D.12Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Modified Description—Produce a ReportSlide 5D.13Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Revised Requirements: MSGThe usual reason for an «include» relationship is where one use case is part of two or more other use cases –Example: U.S. tax forms—avoiding triplicationSlide 5D.14Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. For the MSG Foundation case study–All of the included use cases are part of only one use case, Estimate Funds Available for Week–Incorporate those three «include» use cases into use case Estimate Funds Available for WeekEstimate Funds Available for Week (contd)Slide 5D.15Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Seventh Iteration of Revised Use-Case DiagramSlide 5D.16Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Revised Description of Estimate Funds for WeekSlide 5D.17Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Refining the Revised Requirements: MSGNow the requirements appear to be correct–They correspond to what the client has requested–They appear to satisfy the client’s needs –There do not seem to be any more faultsFor now, everything seems to be
View Full Document