Professional Documents
Culture Documents
Content
1. Requirement modeling with use-case
UNIFIED MODELING LANGUAGE (UML) 2. Actors
3-1. USE CASE DIAGRAM
3. Use cases
Nguyen Thi Thu Trang 4. Use case diagrams
trangntt@soict.hust.edu.vn
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 3 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 4
Page 1
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 1
2-Requirement modeling with Use-case
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 5 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 6
Identification
Communication Verification
Actor
• A use case describes a sequence of
events, performed by the software, that
yields an observable result of value to a
particular actor. Use Case
End User Domain Expert Users
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 7 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 8
Content 2. Actors
• Actors represent roles a user of the
1. Requirement modeling with use-case software can play
2. Actors • They can represent a human, a machine, or
another software
3. Use cases • They can be a peripheral device or even
database
4. Use case diagrams • They can actively interchange information
with the software
• They can be a giver of information
• They can be a passive recipient of information
Actor
• Actors are not part of the software
• Actors are EXTERNAL
Page 2
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 2
2-Requirement modeling with Use-case
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 9 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 10
Page 3
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 3
2-Requirement modeling with Use-case
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 13 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 14
Use Case
Page 4
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 4
2-Requirement modeling with Use-case
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 17 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 18
Student
Login
Communicates-Association
Association between actor and use case
• Establish the actors that interact with related use cases • A channel of communication between an
• Associations clarify the communication between the actor and use case.
actor and a use case.
• Association indicate that the actor and the use case instance of the
Actor 1
• A line is used to represent a
software communicate with one another, each one able to send and communicates-association.
receive messages. • An arrowhead indicates who initiates each
• The arrow head is optional but it’s commonly used to denote Use Case interaction.
the initiator. • No arrowhead indicates either end can initiate
each interaction.
Association
Actor
Page 5
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 5
2-Requirement modeling with Use-case
@Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 21 @Nguyễn Thị Thu Trang, trangntt@soict.hust.edu.vn 22
Arrowhead Conventions
Exercise: Draw use case diagram
Internet Banking Software
Passive sensor
Monitor
for alarms Active sensor
Supervisor
Hybrid sensor
Passive sensor
Monitor
for alarms Active sensor
Supervisor
Hybrid sensor
Question?
Page 6
NGUYỄN Thị Thu Trang, trangntt@soict.hust.edu.vn 6