ЁЯУК

Use Case Diagram Basics and Components

Jul 30, 2024

Use Case Diagram Lecture Notes

Introduction

  • рдЖрдЬ рд╣рдо рджреЗрдЦреЗрдВрдЧреЗ Use Case Diagram
  • рдЗрд╕рдХреЗ components рдФрд░ рдмрдирд╛рдиреЗ рдХреА рд╡рд┐рдзрд┐

Use Case Diagram рдХреЗ Components

  1. Actor

    • Represented by a stick figure symbol in the diagram.
    • Role played by a user in the system.
    • Can be a real person, a system, or a group of people.
  2. Use Case

    • Represented by an ellipse shape.
    • Describes a capability or function of the system.
  3. Connector

    • A simple straight line indicating interaction between users and use cases.
  4. Generalization

    • One-sided arrow indicating inheritance among actors.
    • Useful for categorizing users into specific types.
  5. Stereotype

    • Depicted with a dotted line.
    • Used in relationships to indicate specific characteristics.

Types of Relationships in Use Case Diagrams

  1. Include Relationship

    • An implicit function that is necessary for accessing another function or capability.
    • Example: Login is required to access online banking features such as deposit or withdrawal.
  2. Extend Relationship

    • An optional function that may or may not occur.
    • Example: The ability to add a call when making a telephone call.

Best Practices for Creating Use Case Diagrams

  • Generalize actors for clarity.
  • Use meaningful, short names for use cases.
  • Include a minimum of two actors.
  • Create system boundaries before adding complexity.
  • Avoid clutter; maintain neatness in your design.

Example: Shopping Application

  • Actors:
    • Customer (generalized into Regular User and Non-member)
    • Seller
  • Use Cases: Order, Cancel, Return, Check Status
  • Relationships: Include login in all use cases, extend offers for first-time users.

Conclusion

  • No two diagrams need to be identical.
  • Ensure all main components and relationships (Include, Extend) are represented to gain marks from examiners.
  • For further learning, check www.lastwoman2science.com for courses.

Final Reminder

  • Like and share the video if it was helpful.
  • Subscribe for more educational content!

These notes summarize the key components, relationships, and best practices for creating effective Use Case Diagrams. They can serve as a guide for your study and preparation.