1 / 11

Use Cases

Use Cases. CS 124. Depicting System Behavior. Use Cases Use case: typical interaction between a user and the system Use case diagram: depicts all use cases for a system Role of use cases in other UML diagrams Interaction diagram: depicts a use case as a collection of interacting objects

meckert
Download Presentation

Use Cases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Use Cases CS 124

  2. Depicting System Behavior • Use Cases • Use case: typical interaction between a user and the system • Use case diagram: depicts all use cases for a system • Role of use cases in other UML diagrams • Interaction diagram: depicts a use case as a collection of interacting objects • State Diagram: depicts state changes for an object across different use cases

  3. Example:Use Case Diagram LIBRARY SYSTEM Facilitate Checkout Search for Book Borrower Librarian Facilitate Return

  4. Use Case Diagram Notation • Stick Figures – Actors • Could be a human user or a subsystem • Ellipses - Use Cases • Links - between actors and use cases • Links between use cases • <<includes>>: to depict inclusion of a use case • <<extends>>: to depict variations of a general use case

  5. Example: <<includes>> Facilitate Checkout <<includes>> Log-in Librarian <<includes>> Facilitate Return

  6. Example: <<extends>> By Author <<extends>> Search for Book query Borrower <<extends>> By Subject Note: query is called an extension point

  7. Describing a Use Case • Narrative • Library example (Facilitate Checkout): Given a borrower’s ID Card and the book to be borrowed, the librarian enters the borrower’s ID number and the book’s catalogue number. If the borrower is allowed to check out the book, the system displays that the book has been recorded as borrowed • Or, an Interaction Diagram

  8. Interaction Diagram Example 2: checkIfAvailable() Checkout Screen :Book 1: checkIfDelinquent() 3: borrowBook() 4: setBorrower() :Borrower

  9. State Diagram Example start Reserved release New reserve Borrowed borrow activate return Available

  10. State Diagram Example start Use cases Reserved release New reserve Borrowed borrow activate return Available

  11. About use cases • Use cases are most useful during analysis (conceptual perspective) • Narrative and diagram are not too technical • No strict correspondences with code • There are meaningful correspondences with other diagrams • Interaction diagrams • State diagrams

More Related