9
Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Embed Size (px)

Citation preview

Page 1: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Use Case Diagram:Exercise 5 and 6

Yong Choi

BPA

CSUB

Page 2: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Decomposition of the system How many subsystems?

Define participating actors (but no roles..)

Benchmark chapter 7 SoundStage use case diagram

Page 3: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Tips

Apply common sense and think in terms of system’s perspective.

Physical processes is nothing to do with system’s processes. In other words, most of physical processes do not need to be descried. delivery of a can of soda or money by the

system

Page 4: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Description: Vending Machine This use case documents the event of a customer

purchasing a can of soda from a vending machine. The soda machine has a coin slot and also a dollar bill receptacle. The machine accepts nickels, dimes, and quarters, at one coin at a time. The machine only accepts one-dollar bills, placed face up, with the top of the bill on the left. The machine has a coin return lever that can be depressed to cancel the purchase and the money returned via the coin return receptacle. The machine also has a product receptacle in which cans of soda are dispensed to the user. And finally the machine has a digital display that is used to display messages related to product prices, amount of money deposited, product out of stock, using exact change, out of service, plus user-friendly messages such as “Thank You,” etc.

Page 5: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Precondition : Vending Machine

Machine has been stocked with product and currency for change.

Page 6: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Trigger : Vending Machine

This use case is initiated when the customer deposits currency (or prepaid card) into the vending machine.

Page 7: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Description: ATM

This use case documents the event of a customer withdrawing money from an ATM machine. The ATM has a bank card reader, a numeric keypad, a display screen, a money dispenser, and a receipt printer plus user-friendly messages such as “Thank You,” etc.

Page 8: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Precondition: ATM

Machine has been stocked with money. The customer has a bank card

Page 9: Use Case Diagram: Exercise 5 and 6 Yong Choi BPA CSUB

Trigger: ATM

This use case is initiated when the customer inserts the bank card into the ATM.