Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Slide 4.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with."— Presentation transcript:

1 Slide 4.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 srs@vuse.vanderbilt.edu

2 Slide 4.2 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. CHAPTER 4 THE REQUIREMENTS WORKFLOW I

3 Slide 4.3 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter Overview l Determining What the Client Needs l Overview of the Requirements Workflow l Understanding the Domain l Initial Understanding of the Domain: Osbert Oglesby Case Study l Business Model l Interviewing l Other techniques

4 Slide 4.4 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter Overview (contd) l Use Cases l Initial Business Model: Osbert Oglesby Case Study l Initial Requirements l Initial Requirements: Osbert Oglesby Case Study l Continuing the Requirements Workflow: Osbert Oglesby Case Study l It Ain’t Over Till it’s Over

5 Slide 4.5 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Determining the Client’s Needs l Consider the requirements workflow l The primary task of the systems analyst is to determine what the client needs –This may not be what the client says that he or she wants l Information systems are complex –Clients therefore often ask for the wrong information system

6 Slide 4.6 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Determining the Client’s Needs (contd) l It is hard for a systems analyst to visualize an information system and its functionality –The problem is far worse for the client l A skilled systems analyst is needed to elicit the appropriate information from the client l The client is the only source of this information

7 Slide 4.7 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Determining the Client’s Needs (contd) l The solution: –Obtain initial information from the client –Use this initial information as input to the Unified Process –Follow the steps of the Unified Process to determine the client’s real needs

8 Slide 4.8 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Overview of the Requirements Workflow l First, gain an understanding of the application domain (domain, for short) –(The specific business environment in which the information system is to operate) l Second, build a business model –Use UML to describe the client’s business processes l Third, use the business model to determine the client’s requirements l Then iterate (“repeat”) the above steps

9 Slide 4.9 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Flowchart of the Requirements Workflow

10 Slide 4.10 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Definitions l Discovering the client’s requirements –Requirements elicitation (or requirements capture) –Methods include interviews and surveys l Refining and extending the initial requirements –Requirements analysis

11 Slide 4.11 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding the Domain l Every member of the development team must become fully familiar application domain –Correct terminology is essential l We must build a glossary –That is, a list of technical words used in the domain, and their meaning

12 Slide 4.12 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Understanding: Osbert Oglesby Case Study l Osbert Oglesby, Art Dealer, needs an information system to assist him in buying and selling paintings l Obtaining domain knowledge is the first step l Osbert is interviewed to obtain the relevant information l This information is put into a glossary (see next slide)

13 Slide 4.13 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Glossary: Osbert Oglesby Case Study

14 Slide 4.14 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Business Model l A business model is a description of the business processes of an organization l The business model gives an understanding of the client’s business as a whole –This knowledge is essential for advising the client regarding computerization l The systems analyst needs to obtain a detailed understanding of the various business processes – Different techniques are used, primarily interviewing

15 Slide 4.15 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Interviewing l The requirements team meet with the client and users to extract all relevant information

16 Slide 4.16 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Interviewing (contd) l There are two types of questions –Close-ended questions requires a specific answer –Open-ended questions are asked to encourage the person being interviewed to speak out l There are two types of interviews –In a structured interview, specific preplanned questions are asked, frequently close-ended –In an unstructured interview, questions are posed in response to the answers received, frequently open-ended

17 Slide 4.17 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Interviewing (contd) l Interviewing is not easy –An interview that is too unstructured will not yield much relevant information –The interviewer must be fully familiar with the application domain –The interviewer must remain open-minded at all times l After the interview, the interviewer must prepare a written report –It is strongly advisable to give a copy of the report to the person who was interviewed

18 Slide 4.18 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Other Information Gathering Techniques l Interviewing is the primary technique l A questionnaire is useful when the opinions of hundreds of individuals need to be determined l Examination of business forms shows how the client currently does business

19 Slide 4.19 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Other Information Gathering Techniques (contd) l Direct observation of the employees while they perform their duties can be useful –Videotape cameras are modern version of this technique –But, it can take a long time to analyze the tapes –Employees may view the cameras as an unwarranted invasion of privacy

20 Slide 4.20 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases l A use case models an interaction between the information system itself and the users of that information system (actors) l Example:

21 Slide 4.21 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l A use case shows the interaction between –The information system and –The environment in which the information system operates l Each use case models one type of interaction –There can be just a few use cases for an information system, or there can be hundreds l The rectangle in the use case represents the information system itself

22 Slide 4.22 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l An actor is a member of the world outside the information system l It is usually easy to identify an actor –An actor is frequently a user of the information system l In general, an actor plays a role with regard to the information system. This role is –As a user; or –As an initiator; or –As someone who plays a critical part in the use case

23 Slide 4.23 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l A user of the system can play more than one role l Example: A customer of the bank can be –A Borrower or –A Lender

24 Slide 4.24 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l Conversely, one actor can be a participant in multiple use cases l Example: A Borrower may be an actor in –The Borrow Money use case; –The Pay Interest on Loan use case; and –The Repay Loan Principal use case l Also, the actor Borrower may stand for many thousands of bank customers

25 Slide 4.25 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l An actor need not be a human being l Example: The Cardholder Clothing Company information system has to interact with the credit card company information system –The credit card company information system is an actor from the viewpoint of the Cardholder Clothing Company information system –The Cardholder Clothing Company information system is an actor from the viewpoint of the credit card company information system

26 Slide 4.26 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l A potential problem when identifying actors –Overlapping actors l Example: Hospital Information System –One use case has actor Nurse –A different use case has actor Medical Staff –Better: »Actors: Physician and Nurse

27 Slide 4.27 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use Cases (contd) l Alternatively: –Actor Medical Staff with two specializations: Physician and Nurse

28 Slide 4.28 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Osbert wants an information system, running on his laptop computer, that will –Determine the maximum price he should pay for a painting –Detect new trends in the art market as soon as possible l To do this, the information system needs to keep a record of all purchases and all sales l Currently, Osbert produces reports of annual sales and purchases by hand –At only a small additional cost, the information system can also print these two reports on demand

29 Slide 4.29 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Osbert wants an information system that can –Compute the highest price he should pay for a painting; and –Detect new art trends l Osbert needs an information system that can also –Provide reports on purchases and sales l It is vital to determine the client’s needs up front, and not after the information system has been delivered

30 Slide 4.30 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Osbert has three business activities: –He buys paintings –He sells paintings –He produces reports

31 Slide 4.31 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Buy a Painting use case

32 Slide 4.32 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Sell a Painting use case

33 Slide 4.33 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Produce a Report use case

34 Slide 4.34 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l For conciseness, all three use cases are combined into a use-case diagram

35 Slide 4.35 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l The only person who uses the current (manual) information system is Osbert –Osbert is therefore an actor in all three use cases l The customer may initiate the Buy a Painting or the Sell a Painting use case l The customer plays a critical part in both use cases by providing data entered into the information system by Osbert –The customer is therefore an actor in both these use cases

36 Slide 4.36 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Next, the use cases have to be annotated l Here are the initial use-case descriptions

37 Slide 4.37 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Buy a Painting use case

38 Slide 4.38 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Sell a Painting use case

39 Slide 4.39 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Init. Business Model: Osbert Oglesby Case Study l Produce a Report use case

40 Slide 4.40 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements l The initial requirements are based on the initial business model l Then they are refined The requirements are dynamic — there are frequent changes –Maintain a list of likely requirements, together with use cases of requirements approved by the client

41 Slide 4.41 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements (contd) l There are two categories of requirements l A functional requirement specifies an action that the information system must be able to perform –Often expressed in terms of inputs and outputs l A nonfunctional requirement specifies properties of the information system itself, such as –Platform constraints –Response times –Reliability

42 Slide 4.42 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements (contd) l Functional requirements are handled as part of the requirements and analysis workflows l Some nonfunctional requirements have to wait until the design workflow –The detailed information for some nonfunctional requirements is not available until the requirements and analysis workflows have been completed

43 Slide 4.43 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements: Osbert Oglesby Case Study l The initial business model (the three use cases) shows how Osbert currently does business l Decide which of these use cases are also requirements of the information system to be built –Clearly, all three are requirements l Refine the resulting initial requirements –The descriptions of the use cases have to be refined

44 Slide 4.44 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements: Osbert Oglesby l Buy a Painting use case

45 Slide 4.45 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements: Osbert Oglesby (contd) l Sell a Painting use case

46 Slide 4.46 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements: Osbert Oglesby (contd) l Produce a Report use case

47 Slide 4.47 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Initial Requirements: Osbert Oglesby (contd) l All three descriptions are still vague –A consequence of the iterative nature of the Unified Process –For example, the algorithm details are irrelevant at this time l Basic principle: Defer all details to as late as possible –This will simplify the inevitable changes of the next iteration

48 Slide 4.48 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Requirements Workflow: Osbert Oglesby l More details of each use case are needed now l First consider use cases –Buy a Painting, and –Sell a Painting l To refine the descriptions, determine what attributes need to be input when a painting is bought and when a painting is sold

49 Slide 4.49 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Attributes: Osbert Oglesby Case Study l Attributes when buying a painting include: –Title of work, name of artist, date of painting, classification, medium, purchase price, name and address of seller –(The complete list of attributes appears in the textbook in Figure 4.15) l Attributes when selling a painting are: –Date of sale, name of buyer, address of buyer, actual selling price

50 Slide 4.50 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Requirements Workflow: Osbert Oglesby l Now the algorithm for computing the maximum purchase price is considered l Classify the painting as a –Masterpiece –Masterwork, or –Other painting

51 Slide 4.51 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Maximum Price for a Masterpiece l Scan worldwide auction records over the past 25 years for the most similar work by the same artist l Use the auction purchase price of the most similar work as the base price l The maximum purchase price is found by adding 7.5 percent to the base price, compounded annually, for each year since that auction

52 Slide 4.52 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Maximum Price for a Masterwork l Compute the maximum purchase price as if the painting were a masterpiece by the same artist l If the picture was painted in the 21st century, multiply this figure by 0.25 l Otherwise, multiply it by (21 – c) / (22 – c), where c is the century in which the work was painted (12 < c < 21)

53 Slide 4.53 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Maximum Price for an Other Painting l Measure the dimensions of the canvas l The maximum purchase price is then given by the formula F  A, where –F is a constant for that artist (fashionability coefficient), and –A is the area of the canvas in square centimeters l If there is no fashionability coefficient for that artist, Osbert will not buy the painting

54 Slide 4.54 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Coefficient of Similarity: Osbert Oglesby l For a masterpiece or masterwork, the coefficient of similarity between two paintings is computed as follows: –Score 1 for a match on medium, otherwise 0 –Score 1 for a match on subject, otherwise 0 –Add these two numbers, multiply by the area of the smaller painting, and divide by the area of the larger –The resulting number is the coefficient of similarity

55 Slide 4.55 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Coefficient of Similarity: Osbert Oglesby (contd) l If the coefficient of similarity between the painting under consideration and all the paintings in the file of auction data is zero, then Osbert will not buy that masterwork or masterpiece

56 Slide 4.56 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Fashionability Coefficients: Osbert Oglesby l The information system must include a list of artists and their corresponding F values l The value of F can vary from month to month, depending on the current fashionability of an artist l Osbert determines the value of F on the basis of his knowledge and experience –He changes the value if prices for work by an artist increase or decrease

57 Slide 4.57 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Auction Data: Osbert Oglesby Case Study l The information system must utilize information on auction sales of masterpieces over the past 25 years worldwide l Each month Osbert receives a CD with updated worldwide auction prices; these prices are never modified by Osbert

58 Slide 4.58 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Updated Use Cases : Osbert Oglesby Case Study l The use-case descriptions must reflect this information l The resulting description of the Buy a Painting use case is in Figure 4.15

59 Slide 4.59 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Updated Use Cases : Osbert Oglesby Case Study l The description of the Sell a Painting use case:

60 Slide 4.60 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Reports for the Osbert Oglesby Case Study l There are three reports: –Purchases during the past year –Sales during the past year –Detection of new trends l Sample reports show Osbert’s needs are as follows (question marks in the first or last name of artist, or in the title or date of the work are to be included in all reports):

61 Slide 4.61 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Report of Purchases during the Past Year l A report is needed to display all the paintings purchased during the past year –The average ratio of the purchase price to the suggested maximum price is required at the end of the report

62 Slide 4.62 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Report of Sales during the Past Year l A report is needed to display all the paintings sold during the past year –The average ratio of the actual selling price to the target selling price is required at the end of the report

63 Slide 4.63 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Report of Trends during the Past Year l A report showing artists whose works Osbert has sold at a price that has exceeded the target selling price in every instance during the past year –To appear in this report, at least two of the artist’s works must have been sold by Osbert during that period

64 Slide 4.64 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Updated Use-Case Description: Produce a Report l The updated description of the Produce a Report use case, incorporating the details listed above, appears in Figure 4.20

65 Slide 4.65 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. It Ain’t Over Till it’s Over l There is a serious omission –The use case for updating a fashionability coefficient has been overlooked l Missing use case Modify a Fashionability Coefficient

66 Slide 4.66 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Use-Case Modify a Fashionability Coefficient l Use-case description

67 Slide 4.67 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Second Iteration of Use-Case Diagram l Incorporate all four use cases

68 Slide 4.68 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Analysis of Req. Workflow: Osbert Oglesby l A fault was detected –There was a missing use case –The existing artifacts did not need to be changed l Two additional artifacts had to be added –A use case, and –Its description l The Unified Process is iterative and incremental –Systems analysts must always be aware that changes and extensions to the current version of the information system may have to made at any time


Download ppt "Slide 4.1 Copyright © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Introduction to Object-Oriented Systems Analysis and Design with."

Similar presentations


Ads by Google