Week 6
Week 6
Teacher
Authorized Student
Staff Worker
Coming up: Actors
4
Relationships Between Actors
• Actors can be related by
generalization/specialization
• Actors are classifiers (not individual
users)
Student i se
erw
ot h
us ..
bvio
y o t
Graduate ve kip i
r
Student hen s
s w
thi
Do
Extends
Generalization
After a while you realize extends (from basic to the derived) and
generalization (from specialized to the general) are not too different.
Just know generalization and includes… forget about extends (the
difference is only in intent) Coming up: Use-Case6
Relationships
Use-Case Relationships
• Includes Dependency: Defines how one
use case can invoke behavior defined by
another use case
Alter Student Grade
<<includes>>
<<extends>>
Coming up:
9
Documenting Use
Documenting
List Actors
Use Cases
What is system response
List Actors
to external event? What
is the user’s goal?
List External Events Determine expected
behavior
Show Actors
outside boundary
Use extend,
include, Typically one
generalization/spe diagram for your
cialization where project is sufficient
appropriate
Coming up: Use cases
11
for CS421
Define Use Cases
Player Die
1 Rolls 2
name faceValue
1 2
Plays
1
DiceGame
1 Includes
14
Sequence Diagrams - Notation
15
Sequence Diagrams – Example 1 of 2
Concurrent Processes
Activations - show when a method
is active – either executing or waiting
for a subroutine to return
Asynchronous Message – (half
arrow) a message which does not
block the caller, allowing the caller to
carry on with its own processing;
asynchronous messages can:
Create a new thread
Create a new object
Communicate with a thread
that is already running
Deletion – an object deletes itself
Synchronous Message – (full
arrow) a message that blocks the
caller
16
Sequence Diagrams – Example 2 of 2
17
SSD for Process Sale
scenario
18
System Sequence Diagrams and Use Cases
• System Sequence Diagram is generated from inspection of a use
case.
• Constructing a systems sequence diagram from a use case-
• 1.Draw a line representing the system as a black box.
• 2.Identify each actor that directly operates on the system. Draw
a line for each such actor.
• 3.From the use case, typical course of events text, identify the
system (external) events that each actor generates. They will
correspond to an entry in the right hand side of the typical use
case. Illustrate them on the diagram.
19
SSDs are derived from use
cases.
20