Session 02 - Overview of Modeling Use Case Diagrams (V2)
Session 02 - Overview of Modeling Use Case Diagrams (V2)
Session 02 - Overview of Modeling Use Case Diagrams (V2)
case diagrams
INTERACTION DIAGRAMS
System Behavior
ACTIVITY DIAGRAMS
• A video library staff member serving at the counter, is a valid actor because
they do directly interact with the software.
Loan Video
• In practice, use case names are short active verb phrases naming
some behavior found in the vocabulary of the system you are
modeling.
• Which functions, services (full functions) does actors require frame from the
system ? What does the actor need to do?
• Does the Actor need to read, create, destroy, modify or store some kind of
information in the system?
• Does the Actor need to get notified when some events occur in the system?
Laon Videos
Shop Attendant
Returns Videos
Pay Fine
Create Membership
• The first scenario is the basic all went well flow of events.
• A use case describes what a system does but it does not specify how does
it.
• When you model it is important that you keep clear the separation of
concerns between this outside and inside view.
• A plain text description used to describe the events which occur in the Use
Case.
• You can specify the behavior of a Use Case by describing the flow of events
in text.
• When you write this flow of events it should include
• How and when the use case starts and ends.
• When the use case interacts with the actors.
• What objects are exchanged.
• The basic flow.
• Alternative flows (exceptional) of the behavior.
ICT1411 – Object Oriented Programming 28
Example
• In the context of an ATM system, you might describe the use case validateUser in
following way.
• Main flow of events
• The use case starts when the system prompts the customer for a PIN number.
• The customer can now enter a PIN number via keypad.
• The customer comments the entry by pressing enter button.
• The system then checks the PIN number to see if it is valid.
• If the PIN number is valid the system acknowledges the entry thus ending the use case.
link
Use case
Actor
<<include>>
Process
Rental
• The base Use Case is a complete Use Case in its own right, which may
have its behavior extended by another Use Case when specific
conditions arise.
• An extend relationship is to model the part of a use case the user may see
optional system behavior.
• In this way, separating optional behavior from mandatory behavior.
<<Extend>>
Rent Video Rent Video
with late fines
<<include>>
Identify member
Check
password
Validate User
Retinal Scan
Visitor
Registered Visitor
• This is important
• You are modeling all tasks the (system under development) SUD can perform
you are modeling what the real users expect.
• If you focus all tasks the SUD can perform you will fall into design space too
quickly.