04 Model-Based Documentation Part 2 - Use Case Diagram and Specification
04 Model-Based Documentation Part 2 - Use Case Diagram and Specification
REQUIREMENTS ENGINEERING
AND SOFTWARE MODELING
TOPIC 4:
MODEL-BASED REQUIREMENTS
DOCUMENTATION
1
Noraini Ibrahim, May 2021
TOPIC 4 OVERVIEW
Definition of models, benefits of using models
Functional perspective:
• Use Case (diagram and specifications)
• Activity diagram
Data perspective:
• Domain class diagram
Behaviour perspective:
• State diagram
PART 2
1. 3 Perspectives of Requirements Models
2. Functional Perspective
a. Use Case Diagram (UCD)
b. Use Case Specifications
1. THREE PERSPECTIVES OF REQUIREMENTS
MODELS
UML use case diagrams
14
Use case diagram syntax/semantics – elements (ebook, page 65)
K. Pohl and C. Rupp, Requirements Engineering Fundamentals,
1st edition. CA, USA: Rocky Nook, 2011.
Example #1 – Use case diagram
Generalization
for Actors
Usage of rectangle
notation with
<actor> stereotype
for external
systems
Example 2– Use case diagram
Usage of
<include>relations
from base use
case(UC003) to target
use cases (UC004 till
UC008) – mandatory
interaction
sequences
* observe the
arrowheads
Usage of <extend>
relation from target
use case (UC010) to
base use case
(UC009) – optional
sequences
* observe the
arrowhead
TOPIC 4 PART 2 ACTIVITY
• Identify errors in Use Case diagram
What is wrong with the Use Case Model
«includes» Enter
Category «includes»
Browse Browse Browse
Catalog
«includes»
Catalog Result
Member Member
Browse «extends»
«extends»
Result
«includes»
View item
«extends» details Add to item
View item Add to item list
details list
Manage Manage
Steering Clutch
Drive Car
Manage
Gears
Manage Car Driver
Brakes
Car Driver
Manage Air
Conditioner
Adjust Seat
Scenario:
Add to Waiting
List Provide
g}
kin
oo
system. The following Figure 1 models the
ll b
: fu
View
ion
Restaurant
documented use case diagram for the planned
>
dit
ds
<extends>
Booking
on
n
xte
{c
restaurant online booking system by the
<e
Restaurant
Manager
developer team after their first-round
workshop and brainstorming activity.
Make
Booking Check Dietary
Requirements
Customer
Question: Update
<i
nc
lu
de
Head Chef
Use Case ID
Use Case Name
Description
Actor(s)
Pre-condition(s)
Normal Flow(s) // Synonym : Main/Primary Scenario
Alternative Flow(s) // Synonym : Alternative Scenario
Exception Flow(s) // Synonym : Error handling Scenario
Post-condition(s)
g}
kin
oo
lb
ful
View
n:
Restaurant
io
>
dit
ds
<extends>
Booking
on
n
xte
{c
Use Case ID
<e
Restaurant
Manager
Use Case Name
Description
Make
Check Dietary
Actor(s) Booking
Requirements
Customer
Pre-condition(s) <i n
clu
Head Chef
Update de
Booking > Cook Booking
Normal Flow(s) // Synonym : Main/Primary Scenario Order
Use Case ID
Description
Actor(s)
Pre-condition(s)
Functional
3 Perspectives of
Data
Requirements Models
Behavioral
68