Professional Documents
Culture Documents
Week 16
1
Agendas
Various UML diagrams are drawn during Object Oriented Analysis and Design.
Generally, Use Cases are drawn during analysis and interaction diagrams/class diagrams are
drawn during design
Use Case Diagram
What does a Use Case diagram show?
• Functionality of a system from the user’s
perspective.
• Each Use case name is usually an active verb.
• Visualize a system from the end user’s perspective.
4
Use Case Diagrams - Notations
XYZ System
Use Case Diagrams - Notations
● Use Case
○ System Functions/Processes
○ Verb + Noun
Use Case Diagrams - Notations
● Actor
○ Interact with use case
○ Named by Noun
○ Plays a role in the business
Use Case Diagrams - Notations
● Communication Link
○ Use to connect actors to use cases
○ Indicating that the actor and the use case communicate
with one another using messages
Use Case Diagrams - Notations
● Boundary
○ Entire System as defined in the
required document
○ Use to enclose all the use cases
Name of System should be mentioned at topmost section of system
boundary
XYZ System
Use Case Diagrams - Relationships
● Association
● Generalization
● Extends
● Includes
Use Case Diagrams - Relationships
● Association
● Generalization
○ Parent-child relationship
○ Child is an enhancement of parent
○ Identified as a directed arrow with a triangle arrowhead
○ Can be further divided into
● Generalization of an actor
● Generalization of a use case
Use Case Diagrams - Relationships
● Generalization of an Actor
Use Case Diagrams - Relationships
● Extends
● Extends
Use Case Diagrams - Relationships
● Includes
● Includes
Case Study – College Student Records System
You have been asked to look into developing a new system for a
College.
Currently the Student Records System is entirely manual.
•When a new student enrolls, he/she completes an enrollment
form, pays fees and the registrar places the form in a filing
cabinet.
•When a student leaves, he/she completes a withdrawal form
and the registrar files this with the enrollment form.
•If the student's details change, the registrar will record this on
the form.
•When a student passes a course, the lecturer records this on a
form which he/she gives to the registrar – this result form is
stored with the enrollment form.
2
1
Possibilities for a New System
The college wants a new system – but has not yet
decided precisely what it wants. It may consider a
better manual system, a computer system which office
staff may use , or perhaps even a web based system.
2
2
College Student Records System - Current
Student Enrollment System
Enroll
Student
Student Registrar
Withdraw
student
Change Student
Details
Record
student
Lecturer
result
➢ After discussion the College Management are clearer about the type of
system they want. They decide that they would like students to be able to
enroll directly on-line without dealing with college staff.
➢ The College would also like a facility for students to be able to view their
results directly.
➢ However the management have not as yet considered the precise details of
any of the interactions.
9
College Student Records System - Required
Student Enrollment System
Enroll
Student
Withdraw
Change Personal
Details
View Results
Example:
Use Case: Enroll Student
Actors: New Student (initiator)
Description:A new student provides personal
details and his/her choice of course to the
system. He/she pays fees and receives
confirmation of enrollment.
26
Expanded Use Case Description
Example:
Use Case: Enroll Student
Actors: New Student (initiator)
Description: A new student provides personal details and his/her choice of course
to the system. He/she pays fees and receives confirmation of enrollment.
28
Again, draw the high level and expanded description(with
Alternative Course of Action) based upon discussed requirements.
High Level Description
Expanded Description
Alternative Courses of Action
• An expanded Use Case concentrates on showing the Typical course of
events
30
Use Case: Enroll Student
Actors: New Student (initiator)
Description: A new student provides personal details and his/her choice of course to the system. He/she
pays fees and receives confirmation of enrollment.
31
Documenting <<include>> and
<<extend>> relationships
These will be listed in the relevant expanded Use Case descriptions
– with cross references to the other Use Case(s). Avoid premature
use, overuse, and misuse of the <<include>> and
<extend>> relationships.
32
Examples Generalization
Task
Model a use case diagram for the Islington Library incorporating
following features.
The library needs to have an admin who is responsible for adding co-admins. The co-admin
can add books in the system and the one responsible to manage book details as well as manage
other users(students/staffs). Students can reserve the book before being there physically. The
co-admin issues the book after checking certain condition. Borrowing books is free of cost
but if students have to pay certain fine if they fail to be return the books in the expected date.
Payment can also be done online.
(Showcase at least one include, extend and generalization relation in your use case diagram).