4.1 & 4.2 Use Case Modeling & Relationships
Use Case Diagram: Visualizes system functional requirements from the perspective of external users (Actors).
Core Elements:
- Actor (Stick Figure): An external entity (human, hardware device, external software) that interacts with the system.
- Use Case (Horizontal Ellipse): A specific business capability or service provided by the system.
- System Boundary (Rectangle): Encloses use cases, separating internal system features from external actors.
- Relationships:
- Association (Solid Line): Links Actor to Use Case.
- «include» (Dashed Arrow $\dashrightarrow$): Mandatory dependency where the base use case unconditionally includes the behavior of the included use case (e.g., Withdraw Cash $\dashrightarrow$
«include»Validate PIN). - «extend» (Dashed Arrow $\dashrightarrow$): Optional extension executed only under specific extension points / conditions (e.g., Calculate Premium $\leftarrow$
«extend»Apply Festive Discount). - Generalization: Actor-to-Actor or Use Case-to-Use Case inheritance.