An Introduction to Object-Oriented Systems Analysis and Design with UML and the Unified Process McGraw-Hill, 2004 Stephen R. Schach [email protected] 7 — Unit AChapter OverviewChapter Overview (contd)Extracting Entity Classes: MSG FoundationSlide 6Initial Functional Model: MSG FoundationManage a Mortgage Use CaseManage a Mortgage Use Case (contd)Estimate Funds Available for Week Use CaseProduce a Report Use CaseProduce a Report Use Case (contd)Class ModelingNoun Extraction: MSG FoundationNoun Extraction: MSG Foundation (contd)Slide 16First Iteration of the Initial Class DiagramSecond Iteration of the Initial Class DiagramSecond Iteration of Initial Class Diagram (contd)Back to the Requirements WorkflowEighth Iteration of the Use-Case DiagramSlide 22Iteration and IncrementationInitial Dynamic Model: MSG FoundationStatechart: MSG Foundation Case StudyStatechart: MSG Foundation Case Study (contd)Slide 27Slide 28Slide 29Slide 30Slide 31Revising the Entity Classes: MSG Case StudyRevising the Entity Classes: MSG (contd)Slide 34Third iteration of the initial class diagram: MSGSlide 36Slide 7A.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] 7A.2Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. CHAPTER 7 — Unit ATHE ANALYSIS WORKFLOW IISlide 7A.3Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter OverviewExtracting Entity Classes: MSG Foundation Case StudyInitial Functional Model: MSG Foundation Case StudyInitial Class Diagram: MSG Foundation Case StudyBack to the Requirements WorkflowInitial Dynamic Model: MSG Foundation Case StudyRevising the Entity Classes: MSG Foundation Case StudyExtracting Boundary Classes: MSG Foundation Case StudySlide 7A.4Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter Overview (contd)Extracting Control Classes: MSG Foundation Case StudyUse-Case Realization: MSG Foundation Case StudyIncrementing the Class DiagramMore on ActorsMore on Use CasesRiskRapid PrototypingScenarios and the Client’s NeedsSlide 7A.5Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Extracting Entity Classes: MSG FoundationEntity class extraction is performed by iterating three steps–Functional modeling–Class modeling–Dynamic modelingSlide 7A.6Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Extracting Entity Classes: MSG FoundationThe first step is to perform functional modelingSlide 7A.7Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Functional Model: MSG FoundationThe seventh iteration of the use-case diagramSlide 7A.8Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Manage a Mortgage Use CaseOne possible extended scenarioSlide 7A.9Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Manage a Mortgage Use Case (contd)A second extended scenarioSlide 7A.10Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Estimate Funds Available for Week Use CaseOne possible scenarioSlide 7A.11Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Produce a Report Use CaseOne possible scenarioSlide 7A.12Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Produce a Report Use Case (contd)Another possible scenarioSlide 7A.13Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Class ModelingThe second step of entity class extraction is class modeling–The two-stage noun extraction method is usedSlide 7A.14Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Noun Extraction: MSG FoundationStage 1: Describe the information system in a single paragraph–Weekly reports are to be printed showing how much money is available for mortgages. In addition, lists of investments and mortgages must be printed on demand.Slide 7A.15Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Noun Extraction: MSG Foundation (contd)Stage 2: Identify the nouns in this paragraph–Weekly reports are to be printed showing how much money is available for mortgages. In addition, lists of investments and mortgages must be printed on demand.The nouns are report, money, mortgage, list, and investmentSlide 7A.16Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Noun Extraction: MSG Foundation (contd)Nouns report and list are not long lived, so they are unlikely to be entity classes (report will surely turn out to be a boundary class), money is an abstract nounThis leaves two candidate entity classes–Mortgage Class and Investment ClassSlide 7A.17Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. First Iteration of the Initial Class DiagramSlide 7A.18Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Second Iteration of the Initial Class DiagramOperations performed on the two entity classes are likely to be very similar–Insertions, deletions, and modifications All members of both entity classes have to be printed on demand–Mortgage Class and Investment Class should be subclasses of a superclass called Asset ClassSlide 7A.19Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Second Iteration of Initial Class Diagram (contd)Slide 7A.20Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Back to the Requirements WorkflowThe current 5 use cases include Manage a Mortgage and Manage an InvestmentThese can now be combined into a single use case, Manage an AssetSlide 7A.21Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Eighth Iteration of the Use-Case DiagramThe new use case is shadedSlide 7A.22Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Second Iteration of Initial Class Diagram (contd)Now the attributes are addedSlide 7A.23Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Iteration and IncrementationThe phrase “iterate and increment” also includes the possibility of having to decrement what has been developed to date–A mistake may have been made, and backtracking is
View Full Document