SlideShare a Scribd company logo
1 of 25
Download to read offline
Use Case Diagrams
Use Cases
• What is a Use Case
 A formal way of representing how a
business system interacts with its
environment
 Illustrates the activities that are performed
by the users of the system
 A scenario-based technique in the UML
 A sequence of actions a system performs that
yields a valuable result for a particular actor.
Use Case Analysis
• What is an Actor?
– A user or outside system that interacts
with the system being designed in order
to obtain some value from that interaction
• Use Cases describe scenarios that describe
the interaction between users of the system
(the actor) and the system itself.
Use Cases
• Use case diagrams describe what a
system does from the standpoint of an
external observer. The emphasis is on
what a system does rather than how.
• Use case diagrams are closely
connected to scenarios. A scenario is
an example of what happens when
someone interacts with the system.
Use Cases
• Here is a scenario for a medical clinic.
• A patient calls the clinic to make an appointment
for a yearly checkup. The receptionist finds the
nearest empty time slot in the appointment book
and schedules the appointment for that time slot. "
• We want to write a use case for this scenario.
• Remember: A use case is a summary of
scenarios for a single task or goal.
Use Cases
• Step 1 Identify the actors
• As we read the scenario, define those
people or systems that are going to
interact with the scenario.
• A patient calls the clinic to make an appointment for a yearly checkup.
The receptionist finds the nearest empty time slot in the appointment
book and schedules the appointment for that time slot. "
Actors
• An Actor is outside or external the system.
• It can be a:
– Human
– Peripheral device (hardware)
– External system or subsystem
– Time or time-based event
• Represented by stick figure
Use Cases
• So as we read our scenario, what or
who is the actor????
• A patient calls the clinic to make an appointment for a yearly
checkup. The receptionist finds the nearest empty time slot in the
appointment book and schedules the appointment for that time slot.
"
• The actor is a Patient.
Use Cases
• The use case is a summary of
scenarios for a single task or goal.
• So What is the Use Case????
• The Use Case is Make Appointment.
• It is a use case for the medical clinic.
Use Cases
• The picture below is a Make Appointment use case for the medical
clinic.
• The actor is a Patient. The connection between actor and use case
is a communication association (or communication for short).
Actors are stick figures. Use cases are ovals. Communications are lines that link actors to use cases.
Actors are stick figures. Use cases are ovals. Communications are
lines that link actors to use cases.
Use Case Components
• The use case has three components.
• The use case task referred to as the use case
that represents a feature needed in a software
system.
• The actor(s) who trigger the use case to activate.
• The communication line to show how the actors
communicate with the use case.
Use Case Diagram - Use Case
• A major process performed by the system
that benefits an actor(s) in some way
• Models a dialogue between an actor and
the system
• Represents the functionality provided by
the system
Use Case
• Each use case in a use case diagram
describes one and only one function in
which users interact with the system
– May contain several “paths” that a user can
take while interacting with the system
– Each path is referred to as a scenario
Use Case
• Labelled using a descriptive verb-noun
phrase
• Represented by an oval
Make
Appointment
Use Case - Actor
• Labelled using a descriptive noun or
phrase
• Represented by a stick character
Use Case - Relationships
• Relationships
– Represent communication between actor and
use case
– Depicted by line or double-headed arrow line
– Also called association relationship
Make
Appointment
Use Case - Relationships
• Boundary
– A boundary rectangle is placed around the
perimeter of the system to show how the actors
communicate with the system.
Make
Appointment
Use-Case Diagram
A use case diagram is a collection of actors, use cases, and their
communications.
Use Case Diagram
• Other Types of Relationships for Use
Cases
– Generalization
– Include
– Extend
Components of Use Case Diagram
• Generalization Relationship
– Represented by a line and a hollow arrow
• From child to parent
Child use case Parent use case
Example of Relationships
Use Case Diagram
• Include Relationship
– Represents the inclusion of the functionality of
one use case within another
– Arrow is drawn from the base use case to the
used use case
– Write << include >> above arrowhead line
Use Case Diagram
• Extend relationship
– Represents the extension of the use case to
include optional functionality
– Arrow is drawn from the extension use case
to the base use case
– Write << extend >> above arrowhead line
Example of Relationships
Use Case Relationships
• Pro:
– Reduces redundancy in use cases
– Reduces complexity within a use case
• Con
– May introduce complexity to use case
diagram

More Related Content

Similar to UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw

Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1JIGAR MAKHIJA
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfAZKANAAZ1
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)03028335403
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsnaveed428
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagramsbabak danyal
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptxAqeelAbbas94
 
The principles of simulation system design.pptx
The principles of simulation system design.pptxThe principles of simulation system design.pptx
The principles of simulation system design.pptxubaidullah75790
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram Rahul Pola
 
System Modelling and Simulation course for CSE and Allied streams
System Modelling and Simulation course for CSE and Allied streamsSystem Modelling and Simulation course for CSE and Allied streams
System Modelling and Simulation course for CSE and Allied streamsShreenathAcharya1
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramNikhil Pandit
 
سمنار حالة الاستخدام
سمنار حالة الاستخدامسمنار حالة الاستخدام
سمنار حالة الاستخدامzeinabgandour
 
Modeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxModeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxMaiGaafar
 

Similar to UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw (20)

Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)
 
Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagrams
 
Java
Java   Java
Java
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
 
The principles of simulation system design.pptx
The principles of simulation system design.pptxThe principles of simulation system design.pptx
The principles of simulation system design.pptx
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
 
Use Case approach
Use Case approachUse Case approach
Use Case approach
 
System Modelling and Simulation course for CSE and Allied streams
System Modelling and Simulation course for CSE and Allied streamsSystem Modelling and Simulation course for CSE and Allied streams
System Modelling and Simulation course for CSE and Allied streams
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
سمنار حالة الاستخدام
سمنار حالة الاستخدامسمنار حالة الاستخدام
سمنار حالة الاستخدام
 
Modeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptxModeling&Simulation_Ch01_lecture 2.pptx
Modeling&Simulation_Ch01_lecture 2.pptx
 

Recently uploaded

Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...ruksarkahn825
 
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...Sareena Khatun
 
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfUXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfDan Berlin
 
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...vershagrag
 
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...rightmanforbloodline
 
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Service
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts ServiceCall Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Service
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Servicenishakur201
 
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfDMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfReemaKhan31
 
B.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarB.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarDeepak15CivilEngg
 
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
We’re looking for a Technology consultant to join our Team!
We’re looking for a Technology consultant to join our Team!We’re looking for a Technology consultant to join our Team!
We’re looking for a Technology consultant to join our Team!Juli Boned
 
K Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK VENKAT NAVEEN KUMAR
 
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabadgargpaaro
 
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...vershagrag
 
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysore
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime MysoreMysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysore
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysoremeghakumariji156
 
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...yulianti213969
 

Recently uploaded (20)

Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...
Dating Call Girls inTiruvallur { 9332606886 } VVIP NISHA Call Girls Near 5 St...
 
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...
Call Girl Service in Ahmednagar { 9332606886 } VVIP NISHA Call Girls Near 5 S...
 
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdfUXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
UXPA Boston 2024 Maximize the Client Consultant Relationship.pdf
 
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...
Call Girl In Gwalior Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class C...
 
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
TEST BANK For Growth and Development Across the Lifespan, 3rd Edition By Glor...
 
Girls in Aiims Metro (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Aiims Metro (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Aiims Metro (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Aiims Metro (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Cara Gugurkan Kandungan Awal Kehamilan 1 bulan (087776558899)
Cara Gugurkan Kandungan Awal Kehamilan 1 bulan (087776558899)Cara Gugurkan Kandungan Awal Kehamilan 1 bulan (087776558899)
Cara Gugurkan Kandungan Awal Kehamilan 1 bulan (087776558899)
 
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Service
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts ServiceCall Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Service
Call Girls In GOA North Goa +91-8588052666 Direct Cash Escorts Service
 
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Sagar [ 7014168258 ] Call Me For Genuine Models We ...
 
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdfDMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
DMER-AYUSH-MIMS-Staff-Nurse-_Selection-List-04-05-2024.pdf
 
B.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak KumarB.tech civil major project by Deepak Kumar
B.tech civil major project by Deepak Kumar
 
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hubli [ 7014168258 ] Call Me For Genuine Models We ...
 
We’re looking for a Technology consultant to join our Team!
We’re looking for a Technology consultant to join our Team!We’re looking for a Technology consultant to join our Team!
We’re looking for a Technology consultant to join our Team!
 
K Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CVK Venkat Naveen Kumar | GCP Data Engineer | CV
K Venkat Naveen Kumar | GCP Data Engineer | CV
 
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad
7737669865 Call Girls In Ahmedabad Escort Service Available 24×7 In In Ahmedabad
 
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...
Only Cash On Delivery Call Girls Service In Amritsar 📞6378878445📞 Just📲 Call ...
 
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysore
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime MysoreMysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysore
Mysore Escorts Service Girl ^ 9332606886, WhatsApp Anytime Mysore
 
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Rampur [ 7014168258 ] Call Me For Genuine Models We...
 
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In godhra [ 7014168258 ] Call Me For Genuine Models We...
 
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...
obat aborsi pacitan wa 081336238223 jual obat aborsi cytotec asli di pacitan0...
 

UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw

  • 2. Use Cases • What is a Use Case  A formal way of representing how a business system interacts with its environment  Illustrates the activities that are performed by the users of the system  A scenario-based technique in the UML  A sequence of actions a system performs that yields a valuable result for a particular actor.
  • 3. Use Case Analysis • What is an Actor? – A user or outside system that interacts with the system being designed in order to obtain some value from that interaction • Use Cases describe scenarios that describe the interaction between users of the system (the actor) and the system itself.
  • 4. Use Cases • Use case diagrams describe what a system does from the standpoint of an external observer. The emphasis is on what a system does rather than how. • Use case diagrams are closely connected to scenarios. A scenario is an example of what happens when someone interacts with the system.
  • 5. Use Cases • Here is a scenario for a medical clinic. • A patient calls the clinic to make an appointment for a yearly checkup. The receptionist finds the nearest empty time slot in the appointment book and schedules the appointment for that time slot. " • We want to write a use case for this scenario. • Remember: A use case is a summary of scenarios for a single task or goal.
  • 6. Use Cases • Step 1 Identify the actors • As we read the scenario, define those people or systems that are going to interact with the scenario. • A patient calls the clinic to make an appointment for a yearly checkup. The receptionist finds the nearest empty time slot in the appointment book and schedules the appointment for that time slot. "
  • 7. Actors • An Actor is outside or external the system. • It can be a: – Human – Peripheral device (hardware) – External system or subsystem – Time or time-based event • Represented by stick figure
  • 8. Use Cases • So as we read our scenario, what or who is the actor???? • A patient calls the clinic to make an appointment for a yearly checkup. The receptionist finds the nearest empty time slot in the appointment book and schedules the appointment for that time slot. " • The actor is a Patient.
  • 9. Use Cases • The use case is a summary of scenarios for a single task or goal. • So What is the Use Case???? • The Use Case is Make Appointment. • It is a use case for the medical clinic.
  • 10. Use Cases • The picture below is a Make Appointment use case for the medical clinic. • The actor is a Patient. The connection between actor and use case is a communication association (or communication for short). Actors are stick figures. Use cases are ovals. Communications are lines that link actors to use cases. Actors are stick figures. Use cases are ovals. Communications are lines that link actors to use cases.
  • 11. Use Case Components • The use case has three components. • The use case task referred to as the use case that represents a feature needed in a software system. • The actor(s) who trigger the use case to activate. • The communication line to show how the actors communicate with the use case.
  • 12. Use Case Diagram - Use Case • A major process performed by the system that benefits an actor(s) in some way • Models a dialogue between an actor and the system • Represents the functionality provided by the system
  • 13. Use Case • Each use case in a use case diagram describes one and only one function in which users interact with the system – May contain several “paths” that a user can take while interacting with the system – Each path is referred to as a scenario
  • 14. Use Case • Labelled using a descriptive verb-noun phrase • Represented by an oval Make Appointment
  • 15. Use Case - Actor • Labelled using a descriptive noun or phrase • Represented by a stick character
  • 16. Use Case - Relationships • Relationships – Represent communication between actor and use case – Depicted by line or double-headed arrow line – Also called association relationship Make Appointment
  • 17. Use Case - Relationships • Boundary – A boundary rectangle is placed around the perimeter of the system to show how the actors communicate with the system. Make Appointment
  • 18. Use-Case Diagram A use case diagram is a collection of actors, use cases, and their communications.
  • 19. Use Case Diagram • Other Types of Relationships for Use Cases – Generalization – Include – Extend
  • 20. Components of Use Case Diagram • Generalization Relationship – Represented by a line and a hollow arrow • From child to parent Child use case Parent use case
  • 22. Use Case Diagram • Include Relationship – Represents the inclusion of the functionality of one use case within another – Arrow is drawn from the base use case to the used use case – Write << include >> above arrowhead line
  • 23. Use Case Diagram • Extend relationship – Represents the extension of the use case to include optional functionality – Arrow is drawn from the extension use case to the base use case – Write << extend >> above arrowhead line
  • 25. Use Case Relationships • Pro: – Reduces redundancy in use cases – Reduces complexity within a use case • Con – May introduce complexity to use case diagram