Lecture 04 Use Case Modeling
Lecture 04 Use Case Modeling
• Use Case
• Actors
• System Boundary
• Relationships
Actor
• Actors is one the which interact with the system.
• Actor can be human and automated system.
• Actors are not part of system.
• Actor carryout the use cases and a single actor may
perform more than one use cases.
• Following notations are used to represent actor:
Types of Actor
• Active Actor:
Initiate the execution of use case.
• Passive Actor:
Providing functionality/Response in
execution of use case.
Types of Actor
• Primary Actor:
Act on system.
Initiate the interaction with system.
Use the system to fulfill his needs.
It get actual benefit from the execution of use
case.
• Secondary Actor:
Is acted on/invoked by system.
Help the system to fulfill his goals.
It receives no direct benefit from execution of
system.
Primary and Supporting
Actors
NextGen
«actor»
Process Sale Payment
Authorization
Service
Cashier
...
• It is shown as rectangle.
• It helps to identify the responsibilities of system and what is
external versus internal.
• The external environment is represented only by actor.
Relationships
• Relationship is an association between use case and actor.
• There are several use case relationship.
Association
Include ------ ---
Extend ----
Generalization
Association
• It express that the actor communicates
with the system and uses a certain
functionality.
• Every actor must communicate with at
least one use case.
• Every use case must be in a relationship
with at least one actor.
• An association is always binary,
meaning that it is always specified
between one use case and one actor.
• Multiplicities may be specified for the
association ends.
• This means that more than one instance
of an actor is involved in the execution
of the use case.
Generalization
• Generalization is a relationship between a general use
case and a more specific use case that inherit and extend
features of it.
• Use cases are specialized version of other use cases.
• It is shown as solid line with hollow arrow point.
Generalization(Relationship between
Actors)
Transac
tion
Saving
Busines
accoun
s
t
Account
Relationship between Use cases
• Association
• Include
• Extend
• Generalization
Include Relationship
• Include relationship insert additional behavior into base use
case.
• Use cases that are included as a parts of other use cases.
• The base use case incorporates the behavior of another use
case at a location specified in the base.
• They are shown as dotted line with an open arrow and
keyword <<include>>.
Extend Relationship
• Extend relationship is used to indicate that use cases
conditionally adds behavior of another use case behavior at
one time.
• The base use case incorporates the behavior of another use
case at a certain points called extension point.
• They are shown as dotted line with an open arrow and
keyword <<extend>>.
Library Management
System
Use Class
Requirement diagram
Case
document
Activity
diagram