csc 340 week 10 tutorial uml use cases and sequence
play

CSC 340 Week 10 Tutorial UML Use Cases and Sequence Diagrams 1. - PDF document

CSC 340 Week 10 Tutorial UML Use Cases and Sequence Diagrams 1. Case study: Online Shopping Paragraphs Corporation sells books and CDs using through online shopping. The customer adds items to her shopping cart. She may remove items or go


  1. CSC 340 – Week 10 Tutorial UML Use Cases and Sequence Diagrams 1. Case study: Online Shopping Paragraphs Corporation sells books and CDs using through online shopping. The customer adds items to her shopping cart. She may remove items or go to the check-out to make her purchases at any time. The customer reviews her purchases, chooses a payment method and pays. A sales employee at Paragraphs Corporation gets the order and purchase confirmation from the system, and sends the electronic order to the warehouse. The warehouse employee updates the order status. The customer may check the order status. 2. UML Use Case Diagram Each Use Case is: • a pattern of behavior that the new system is required to exhibit • a sequence of related actions performed by an actor and the system via a dialogue. An actor is: • anything that needs to interact with the system: o a person o a role that different people may play o another (external) system. A Use Case Diagram is a visual representation of actors together with use cases.

  2. Customer Salesperson Warehouse Employee * * Online Shopping System Add item to cart * Update order status Notify warehouse about order Remove item from «uses» cart Purchase contents Receive order of cart * Review contents of cart Verify payment

  3. 3. UML Sequence Charts Sequence diagrams show step-by-step what’s involved in a use case • Which objects are relevant to the use case • How those objects participate in the function Online System Credit Card Company Customer Salesperson Warehouse Employee *Add item [cartContents > 0] *Remove item Display cart [cartContents > 0] Purchase items in cart Receive order Verify payment [payment received] Notify about order Update order Get order status

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend