lecture 3 use case description. use cases grouped into system modules note: same actor interacts...

18
LECTURE 3 USE CASE DES CRIPTION

Upload: may-snow

Post on 28-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

LECTURE 3

US

E C

AS

E D

ES

CR

I PT

I ON

Page 2: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

Use Cases grouped into system modules

Note: Same actor interacts with different modules

USE CASE DIAGRAM OF THE CUSTOMER SUPPORT SYSTEM

2

Page 3: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

USE CASE DESCRIPTION

• Complements Use Case Diagram

• A breakdown of a single use case (e.g., sequence of steps included in the function “Look up item availability”); process logic included

• In contrast to Use Case Diagram, Use Case Description captures variations of a Use Case

Example: “Create new order” can be done via phone+clerk and via Internet ordering – 2 scenarios

3

Page 4: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

LEVEL OF USE CASE DESCRIPTION

Three levels of details:

UC* Brief description

Summary of what system does in response to actor’s actions

UC Intermediate description

Shows steps in use case, if-then

UC Full description

Includes Brief description, expands intermediate description, shows scenarios

* UC=Use Case 4

Page 5: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

BRIEF DESCRIPTION OF USE CASE

6

• Same description that is usually captured in initial Use Case Diagrams

Page 6: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

INTERMEDIATE USE CASE DESCRIPTION

7

Telephone Order Scenario for Create New Order Use Case

Page 7: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

FULL USE CASE DESCRIPTION

Shows steps (“Flow of Events”) broken down to the actor and the system side – useful!

8

Page 8: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

8

Telephone Order Scenario for Create New Order Use Case

FULL USE CASE DESCRIPTION

Page 9: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

9

Telephone Order Scenario for Create New Order Use Case

FULL USE CASE DESCRIPTION

Page 10: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

10

Telephone Order Scenario for Create New Order Use Case

FULL USE CASE DESCRIPTION

Page 11: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

USE-CASES – COMMON MISTAKES

• Complex diagram

• No system

• No actor

• Too many user interface details “User types ID and password, clicks OK or hits Enter”

• Very low goal details User provides name User provides address User provides telephone number …

11

Page 12: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

WRITING USE CASE DESCRIPTIONS

1. Select a use case

2. Write abbreviated full description (Use case name, Scenario (if any), Business Event, Actors, Flow of steps, Exception conditions)

3. For figuring Flow of steps, - Keep in mind general system model: Input-Processing-Output- Steps should be at nearly the same level of abstraction (each

makes nearly same progress toward use case completion)

4. For figuring exception conditions, focus on if-then logic.

12

Page 13: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

COMBINING PROCESSES

Number Limit: The diagram should have between 3 to 10 base use-case. No more than 15

use cases (base + included + extending).

Abstraction: All use-cases should be in similar abstraction levels.

Size: Use cases should be described in half a page or more.

Interaction: Use-cases which are carried out as part of the same interaction.

13

Page 14: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

DIVIDING PROCESSES

Size: If a use-cases takes more than a page, consider include/extend

Weak dependency: If the dependency between two parts of a use-case is weak, they should be

divided.

14

Page 15: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

MORE GUIDELINES

Factor out common usages that are required by multiple use cases If the usage is required use <<include>> If the base use case is complete and the usage may be optional, consider use

<<extend>>

A use case diagram should: contain only use cases at the same level of abstraction include only actors who are required

15

Page 16: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

EXAMPLE 1 BUY PRODUCT

16

Page 17: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

EXAMPLE 2

Use Case Name: Release a Vehicle (to a Customer)

Summary:

A customer arrives to acquire the vehicle and depart for desired destination. The vehicle reservation contract is signed and the vehicle is released to the customer.

Actors: Front-Desk Clerk, Customer

17

Page 18: LECTURE 3 USE CASE DESCRIPTION. Use Cases grouped into system modules Note: Same actor interacts with different modules USE CASE DIAGRAM OF THE CUSTOMER

EXAMPLE 2

18