90 likes | 283 Views
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. Tips. Apply common sense and think in terms of system’s perspective.
E N D
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
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
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.
Precondition : Vending Machine • Machine has been stocked with product and currency for change.
Trigger : Vending Machine • This use case is initiated when the customer deposits currency (or prepaid card) into the vending machine.
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.
Precondition: ATM • Machine has been stocked with money. The customer has a bank card
Trigger: ATM • This use case is initiated when the customer inserts the bank card into the ATM.