Lecture 2
Lecture 2
Lecture 2
[These slides are adapted from Software Engineering: A Practitioner’s Approach, Roger S.
Pressman © 2015 & Software Engineering, Ian Somerville © 2015 ]
INTRODUCTION TO UML USE CASE DIAGRAMS
Unified Modeling Language (UML)
The Unified Modeling Language (UML) is a widely used method of visualizing and documenting software systems design or
information system design. During requirement modelling, a system analyst can utilize the UML to represent the information system
from a user’s view point.
Why UML for Modeling
• Use graphical notation to communicate more clearly than natural language (imprecise)
and code(too detailed).
Class Diagram
Sequence Diagram
Collaboration Diagram
• Use Case Diagrams are defined as diagrams that capture the system’s
functionality and requirement.
✓ Systems
✓ Actors
✓ Use Cases
✓ Relationships
Use Case Diagram
Systems
Website
Software Design
Application
Business Process
Etc.
Use Case Diagram
Actors
An actor is a person, organization, or external system that plays a role in one
or more interactions with your system
Use Case
Represents an action that accomplishes some sort of task
within the system.
Example:
Banking application is going to allow a Customer to log in, check their balances,
transfer funds between accounts, and make payments towards bills.
Use Case Diagram
Use Case Diagram
Relationships
(Association)
Relationships
Extend Include
Someone can:
- Withdraw the
amount
- Check balance
- Reset Pin
- Maintenance
Use Case Diagram
Use Case Diagram
Include: a dotted line labeled <<include>> beginning at base use case and ending with an arrows
pointing to the include use case. An “Include” relationship is used to indicate that a particular Use Case
must include another use case to perform its function.
<<include>>
Extend: a dotted line labeled <<extend>> with an arrow toward the base case. The extending use case
may add behavior to the base use case. The base class declares “extension points”.
<<extend>>
BANK ATM USE CASE
ATM Technician maintains or repairs Bank ATM. Maintenance use case
includes Replenishing ATM with cash, ink or printer paper, Upgrades of hardware,
firmware or software, and remote or on-site Diagnostics. Diagnostics is also
included in (shared with) Repair use case.
BANK ATM USE CASE
Draw a use case diagram for the following problem: