Lect 07 Use Case Diagram
Lect 07 Use Case Diagram
Language)
Use Cases
• What is a Use Case
A formal way of representing how a
business system interacts with its
environment
Illustrates the activities that are performed
by the users of the system
A scenario-based technique in the UML
A sequence of actions a system performs that
yields a valuable result for a particular actor.
Use Cases
• A use case is a summary of scenarios for a
single task or goal.
4
Types of Use-case
1.Including Use Cases:
• Although each use case instance is independent, but a use
case can simply incorporate the behavior of other use cases
as fragments of its own behavior. This is called an include
relationship.
• In general it is assumed that any included use case will be
called every time the basic path is run.
• An example of this is to have the execution of the use case
<Card Identification> to be run as part of a use case
<Withdraw>.
5
2. Extending Use Cases
• A use case can also be defined as an incremental extension
to a base use case. This is called an extend relationship.
6
2. Extending Use Cases
• For example, if before modifying a particular type of
customer order, a user must get approval from some higher
authority, then the <Get Approval> use case may
optionally extend the regular <Modify Order> use case.
7
Example:
8
9
10
Use Case Diagram Example UseCase
viewCourseSchedule
«uses»
courseAvailability
Actor
Student «uses»
makeClassSelection checkConflicts
«uses»
verifyPrereqs
confirmEnrollment
Registrar
11
Use Case Diagram Practice
13
14