Chapter 05
Chapter 05
1
Systems Analysis and Design in a Changing World, 7th Edition - Chapter 1
©2016. Cengage Learning. All rights reserved.
Chapter.5 Use Case Modeling
Chapter 5 Outline
• Use Case Descriptions
©201
Systems Analysis and Design in a Changing World, 7th e
• Activity Diagrams for Use Cases
• The System Sequence Diagram—Identifying Inputs and Outputs
• SSD Notation
dition – Chapter 5
3
Learning Objectives
©201
Systems Analysis and Design in a Changing World, 7th e
• Develop system sequence diagrams
• Use the CRUD technique to validate use cases
dition – Chapter 5
4
Overview
• Chapters 3 and 4 identified and modeled the two primary
aspects of functional requirements: use cases and domain
classes
©201
Systems Analysis and Design in a Changing World, 7th e
• This chapter focuses on detail modelling for use cases to
document the internal steps within a use case
dition – Chapter 5
• Activity diagrams (first shown in Chapter 2) can also be
used to show the flow of activities for a use case
5
Overview (continued)
©201
Systems Analysis and Design in a Changing World, 7th e
• CRUD analysis, which correlates problem domain
classes and use cases, is an effective technique
dition – Chapter 5
detail. Only model when there is complexity and
a need to communicate details
6
• Write
Use Case Descriptions
©201
Systems Analysis and Design in a Changing World, 7th e
• Typical use case description templates include:
dition – Chapter 5
Stakeholders
Preconditions
Postconditions
Flow of activities
Exception conditions
8
n
Fully
Create
account
customer
Use case:
Use Case
Descriptio
Developed
©201
Systems Analysis and Design in a Changing World, 7th e
• Scenario (if needed)
A use case can have more than one scenario (special case or
• Triggering event
Based on event decomposition technique
dition – Chapter 5
• Brief description
Written previously when use case was identified
• Actors
One or more users from use case diagrams 12
Use Case Description
Details
• Related use cases <<includes>>
If one use case invokes or includes another
©201
Systems Analysis and Design in a Changing World, 7th e
• Stakeholders
Anyone with an interest in the use case
• Preconditions
What must be true before the use case begins
dition – Chapter 5
The activities that go on between actor and the system
• Exception conditions
Where and what can go wrong
13
Use case
Ship items
Example
Use Case
Developed
Description
Another Fully
only
Case
Account
UML Activity
Create Customer
flow of activities
Diagram for Use
Note:
Case
Synchronization
Decision diamond
relationship
Use Case
©201
Systems Analysis and Design in a Changing World, 7th e
• Special case for a sequence diagram
Only shows actor and one object
The one object represents the complete system
dition – Chapter 5
• Messages
20
System Sequence Diagram (SSD) Notation
©201
Systems Analysis and Design in a Changing World, 7th e
An asterisk (*) indicates repeating or looping of the message
Brackets [ ] indicate a true/false condition. This is a test for that message only.
dition – Chapter 5
parentheses on return messages) shows the data that are passed with the
message.
Return-value on the same line as the message (requires :=) is used to describe
data being returned from the destination object to the source object in
response to the message.
23
•
•
(if-else)
Alt Frame
SSD Message Examples
©201
Systems Analysis and Design in a Changing World, 7th e
2.
system using the message notation
Name it verb-noun: what the system is asked to do
Consider parameters the system will need
dition – Chapter 5
4. Identify and add output return values
On message itself: aValue:= getValue(valueID)
As explicit return on separate dashed line
25
account Use case
SSD for Create customer
©201
Systems Analysis and Design in a Changing World, 7th e
Update
Delete
dition – Chapter 5
• Not for primary identification of use cases
28
Verifying use cases for Customer
©201
Systems Analysis and Design in a Changing World, 7th e
Create a new instance
Update existing instances
Reads or reports on information in the class
dition – Chapter 5
4. Identify which application has responsibility for each
action: which to create, which to update, which to use
30
Sample CRUD Matrix
• Use cases
Use case diagram
Use case description
Activity diagram
System sequence diagram (SSD)
• Domain Classes
Domain model class diagram
State machine diagram
©201
Systems Analysis and Design in a Changing World, 7th e
and domain classes
• This chapter focuses on models to provide details of
use cases
dition – Chapter 5
• Activity diagrams (first shown in Chapter 2) can also be
used to show the flow of activities for a use case
34
Summary (continued)
• System sequence diagrams (SSDs) show the inputs
and outputs for each use case as messages
©201
Systems Analysis and Design in a Changing World, 7th e
• CRUD analysis serves to verify that all domain
classes are fully supported by the new system, i.e.
have use cases to fully process all required actions
dition – Chapter 5
• All of the models must be consistent and integrate
together to provide a complete picture of the
requirements and specification.
35
RTGM System Use Cases