Professional Documents
Culture Documents
Content
1. UML Overview
UNIFIED MODELING LANGUAGE (UML) 2. Requirement modeling with use-case
02-1. UML & USE CASE DIAGRAM
3. Use case diagrams
1 2
3 4
3 4
Page 1
1
5 6
5 6
7 8
7 8
Page 2
2
9 10
9 10
11 12
Meyer Fusion
Before and after Operation descriptions, UML UML 1.1
conditions message numbering Partners’ (Sept. ‘97)
Expertise
UML 1.0
Harel Embley (Jan. ‘97)
11 12
Page 3
3
13 14
13 14
15 16
The UML Is a Language for Specifying The UML Is a Language for Constructing
• The UML builds models that are precise, unambiguous, • UML models can be directly connected to a
and complete. variety of programming languages.
• Maps to Java, C++, Visual Basic, and so on
• Tables in a RDBMS or persistent store in an OODBMS
• Permits forward engineering
• Permits reverse engineering
15 16
Page 4
4
17 18
Use Case 1
3. Use case diagrams
Actor A Actor B
Use Case 2
Use Case 3
17 18
19 20
19 20
Page 5
5
21 22
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
21 22
23 24
23 24
Page 6
6
25 26
25 26
27 28
27 28
Page 7
7
29 30
29 30
31 32
Student
Login
31 32
Page 8
8
33
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
33 34
35 36
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
35 36
Page 9
9
37
Question?
37
Page 10
10