1 use-case modeling chapter 6 alan dennis, barbara wixom, and david tegarden john wiley & sons,...

16
1 Use-Case Modeling Use-Case Modeling Chapter 6 Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

Upload: sherman-robertson

Post on 05-Jan-2016

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

1

Use-Case ModelingUse-Case Modeling

Chapter 6Chapter 6

Alan Dennis, Barbara Wixom, and DavidTegarden

John Wiley & Sons, Inc.

Slides by Fred NiedermanEdited by Solomon Negash

Page 2: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

2

Key Ideas

A use case illustrates the activities that are performed by users of a system.

Use cases are logical models -- they describe the activities of a system without specifying how the activities are implemented.

A use case answers the question “What does the entity do?” Without addressing how it should be done. The question: How should it be done will be addressed later in the modeling process when structural and behavioral models are done.

Page 3: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

3

Use-Case Descriptions & Creation

What are use-case descriptions? Describe basic functions of the system

• What the user can do• What the system responses are

Use cases are building blocks for continued design activities.

How are use cases created? Two steps:

• Write text-based case descriptions• Translate descriptions into diagrams

Describes one and only one function, but may have multiple paths.

Developed working with users for content.

Page 4: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

4

Use-Case Types & Guidelines Types of use-cases:

Overview versus detail Essential versus real

Guidelines for creating use-case descriptions: Write each step in “SVDPI” form Clarify initiator and receivers of action Write from independent observer perspective Write at same level of abstraction Ensure a sensible set of steps Apply KISS principle liberally Write repeating instructions after the set of

steps to be repeated.

Page 5: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

5

Elements of a Use-Case Description

Use Case Name: ID: Importance Level:

Primary Actor: Use Case Type:

Stakeholders and Interests:

Brief Description:

Trigger:

Relationships: (Association, Include, Extend, Generalization)

Normal Flow of Events:

Subflows:

Alternate/Exceptional Flows:

Page 6: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

6

Your Turn

How would you make requirements gathering (interviews, questionnaires, observation, and document analysis) more effective by knowing that eventually you will be creating use-case descriptions and diagrams?

Page 7: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

7

Syntax for Use-Case Diagram

Page 8: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

8

The Use-Case Diagram for Appointment System

Page 9: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

9

Use-Case Diagram with Specialized Actor

Page 10: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

10

Extend and Include Relationships

Page 11: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

11

Major Steps in Writing Use-Cases

Major steps in writing use-cases: [I] Identify the major use-cases [II] Expand the major use-case [III] Confirm the major use-cases [IV] Create the use-case diagram

[I] Identifying the major use-cases: (1) Identify the system’s boundaries (2) List the primary actors (3) List the goals of each primary actor (4) Identify and write the major use-cases (5) Carefully review use-cases

Page 12: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

12

Expand the Major Use-Cases [II] Expand the major use-cases:

(6) Choose one major use-case to expand (7) Fill in details on the use-case template (8) Fill in the steps of the normal flow of events (9) Normalize the size of each step (10) Describe alternate or exceptional flows (11) Simplify and organize as necessary

[III] Confirm the major use-cases: (12) Review the current set

• Consider semantics and syntax• Helpful to involve the users

(13) Iterate the entire set of steps until all use cases are defined

Page 13: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

13

Selecting the Appropriate Techniques

Interviews JAD Questionnaires Document Observation Analysis

Type of As-Is As-Is As-Is As-Is As-IsInformation Improve. Improve. Improve. To-Be To-Be

Depth of High High Medium Low LowInformation

Breadth of Low Medium High High LowInformation

Integration Low High Low Low Lowof Info.

User Medium High Low Low LowInvolvement

Cost Medium Low- Low Low Low- Medium Medium

Page 14: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

14

Create the Use-Case Diagram

[IV] Create the use-case diagram: Start with system boundary Place elements in order to be easy to read Place actors on the diagram Conclude by connecting actors to use cases

by lines GOCS—term project

Identify the major use-cases Expand the major use-case Confirm the major use-cases Create the use-case diagram

Page 15: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

15

Your Turn

Create a set of use cases for campus housing. Consider the steps in registering for campus housing, in being assigned to a particular unit, to being matched with roommates, to moving in.

Page 16: 1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash

16

Summary

Use-case descriptions are the basis for further analysis and design. They are created based on 7 guidelines and 13 steps.

Use-case diagrams present a graphical overview of the main functionality of a system.

Additional resources: http://www.omg.org