Slide 5B.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 [email protected]
Dec 22, 2015
Slide 5B.1
Copyright © 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, 2004
Stephen R. Schach
Slide 5B.2
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
CHAPTER 5 — Unit B
THE REQUIREMENTS WORKFLOW II
Slide 5B.3
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Continued from Unit 5A
Slide 5B.4
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Revising the Requirements: MSG (contd)
(3) Total estimated mortgage payments for the week and
(4) Total estimated grant payments for the week: – Use case Compute Weekly Repayment Amount models
the computation of both the estimated mortgage payment and the estimated grant payment for each mortgage separately
– Summing these separate quantities gives » The total estimated mortgage payments for the week, and» The total estimated grant payments for the week
Slide 5B.5
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Revising the Requirements: MSG (contd)
Now the use cases need to be reorganized– Use case Compute Weekly Repayment Amount also
models borrowers updating their weekly income
Split Compute Weekly Repayment Amount into two separate use cases– Use case Estimate Payments and Grants for Week, and – Use case Update Borrowers’ Weekly Income
Slide 5B.6
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Estimate Payments and Grants for Week
Slide 5B.7
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Estimate Payments and Grants for Week (contd)
Slide 5B.8
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Update Borrowers’ Weekly Income
Slide 5B.9
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Third Iteration of the Revised Use-Case Diagram
The two new use cases are shaded
Slide 5B.10
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Estimate Funds Available for Week
Use case Estimate Funds Available for Week models the computation that uses the data obtained from three other use cases– Estimate Investment Income for Week– Estimate Operating Expenses for Week– Estimate Payments and Grants for Week
Slide 5B.11
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Estimate Funds Available for Week (contd)
Second iteration of use case
Slide 5B.12
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
Estimate Funds Available for Week (contd)
Second iteration of description of use case
Slide 5B.13
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
«include» Relationship
Correct use case (top); incorrect use case (bottom)
Slide 5B.14
Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved.
«include» Relationship (contd)
The bottom diagram models use cases – Estimate Funds Available for Week, and – Estimate Payments and Grants for Week
as two independent use cases– However, a use case models an interaction between the
information system itself and users of the information system (actors)