尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
Use Case Diagram
What is Use Case Diagram?
• Use Case Diagram captures the system’s functionality and
requirements by using actors and use cases.
• Use Cases model the services, tasks, function that a system needs to
perform.
• Use cases represent high-level functionalities and how a user will
handle the system.
• Use-cases are the core concepts of Unified Modelling language
modeling.
Use Case Diagrams
• Use Case Diagrams provide a visual way to document user goals and explore possible
functionality
• Three primary modeling components:
• Actors
• Use Cases
• Relationships between use cases
Authorized
Staff Worker
Teacher
Student
Record class
grades
Review
Transcripts
Why Use-Case Diagram?
• A Use Case consists of use cases, persons, or various things that are
invoking the features called as actors and the elements that are
responsible for implementing the use cases.
• Use case diagrams capture the dynamic behaviour of a live system.
• It models how an external entity interacts with the system to make it
work.
• Use case diagrams are responsible for visualizing the external things
that interact with the part of the system.
When to use a use-case diagram?
In general use case diagrams are used for:
• Analyzing the requirements of a system
• High-level visual software designing
• Capturing the functionalities of a system
• Modeling the basic idea behind the system
• Forward and reverse engineering of a system using various test cases.
Use-case diagram notations
Use-case:
Use cases are used to represent high-level functionalities and how the
user will handle the system. A use case represents a distinct
functionality of a system, a component, a package, or a class. It is
denoted by an oval shape with the name of a use case written inside
the oval shape. The notation of a use case in UML is given below:
Use-case diagram notations
• Actor:
Actors can be a human user, some internal applications, or
may be some external applications
The actor is an entity that interacts with the system. A user
is the best example of an actor.
An actor is an entity that initiates the use case from outside
the scope of a use case.
One actor can be associated with multiple use cases in the
system. The actor notation in UML is given below.
How to draw a use-case diagram?
• Following rules must be followed while drawing use-case for any
system:
• The name of an actor or a use case must be meaningful and relevant to the
system.
• Interaction of an actor with the use case must be defined clearly and in an
understandable way.
• Annotations must be used wherever they are required.
• If a use case or an actor has multiple relationships, then only significant
interactions must be displayed.
Example Use Case Diagram
Coming up: Use Case Diagrams
Relationships Between Actors
• Actors can be related by generalization/specialization
• Generalization of an actor means that one actor can inherit the role
of the other actor. The descendant inherits all the use cases of the
ancestor. The descendant has one or more use cases that are
specific to that role
Use Case Relationships
Includes
Extends
Generalization
After a while you realize extends and generalization are not too
different. Just know generalization and includes… forget about
extends (the difference is only in intent)
<<Include>> Relationship
In UML modeling, an include relationship is a relationship in which one use case (the
base use case) includes the functionality of another use case (the inclusion use case).
The include relationship supports the reuse of functionality in a use-case model.
Includes Dependency: Defines how one use case can invoke behavior defined by
another use case
Few things to consider when using the <<include>> relationship.
• The base use case is incomplete without the included use case.
• The included use case is mandatory and not optional.
.
<<Include>> Relationship
For example – both withdraw money and deposit
money use case require the customer to login
The <<include>> association specifies that to
accomplish the use-case withdraw money the user
must login to the account
<<Include>> Relationship
<<include>> Relationships
• In an online retail system if Make a Purchase is a use case what could
be the included use case?
Make a
Purchase
Verify Credit
Cards
<<include>>
<<include> Relationship
• In an ATM system, what common use case can be included for both
withdraw cash and transfer funds use case?
Withdraw
cash
Transfer
Fund
Verify
Balance
<<include>>
<<include>>
<<extend>> Relationships
• Extends dependency: defines a use-case that is a variation of another,
usually for handling an abnormal situation
• You can add extend relationships to a model to show the following
situations:
• A part of a use case that is optional system behavior
• A subflow is executed only under certain conditions
• A set of behavior segments that may be inserted in a base use case
<<extend>> Relationships
Use-Case Relations
• Generalization: Defines one use case as a generalization of another.
Replaces generic functionality with alternate implementation
Teacher
Alter Student
Grade
Alter Student Grade for
a Graduate Course
20
Coming up: Documenting Use Cases
Use Case Diagram.pptx
Use Case Diagram.pptx

More Related Content

What's hot

Use case of course registration system using LaTex
Use case of course registration system using LaTexUse case of course registration system using LaTex
Use case of course registration system using LaTex
Daffodil International University
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
Preeti Mishra
 
UML
UMLUML
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
Asraa Batool
 
Software Engineering - chp3- design
Software Engineering - chp3- designSoftware Engineering - chp3- design
Software Engineering - chp3- design
Lilia Sfaxi
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
Baskarkncet
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
Farah Ahmed
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
Vaidik Trivedi
 
System Analysis Methods
System Analysis Methods System Analysis Methods
System Analysis Methods
Hemant Raj
 
State Diagram
State DiagramState Diagram
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
Shahzad
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
dgdotson
 
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)
Bilal Amjad
 
UML Diagrams
UML  DiagramsUML  Diagrams
UML Diagrams
Rahul Pola
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
Raval Chirag
 
Object Oriented Paradigm
Object Oriented ParadigmObject Oriented Paradigm
Object Oriented Paradigm
Hüseyin Ergin
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
mohamed tahoon
 
Object diagram
Object diagramObject diagram
Object diagram
Preeti Mishra
 
Component diagram
Component diagramComponent diagram
Component diagram
Abdul Manan
 

What's hot (20)

Use case of course registration system using LaTex
Use case of course registration system using LaTexUse case of course registration system using LaTex
Use case of course registration system using LaTex
 
Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
UML
UMLUML
UML
 
Uml deployment diagram
Uml deployment diagramUml deployment diagram
Uml deployment diagram
 
Software Engineering - chp3- design
Software Engineering - chp3- designSoftware Engineering - chp3- design
Software Engineering - chp3- design
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
System Analysis Methods
System Analysis Methods System Analysis Methods
System Analysis Methods
 
State Diagram
State DiagramState Diagram
State Diagram
 
UML- Unified Modeling Language
UML- Unified Modeling LanguageUML- Unified Modeling Language
UML- Unified Modeling Language
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
 
Graphical User Interface (Gui)
Graphical User Interface (Gui)Graphical User Interface (Gui)
Graphical User Interface (Gui)
 
UML Diagrams
UML  DiagramsUML  Diagrams
UML Diagrams
 
UNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGEUNIFIED MODELING LANGUAGE
UNIFIED MODELING LANGUAGE
 
Object Oriented Paradigm
Object Oriented ParadigmObject Oriented Paradigm
Object Oriented Paradigm
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Object diagram
Object diagramObject diagram
Object diagram
 
Component diagram
Component diagramComponent diagram
Component diagram
 

Similar to Use Case Diagram.pptx

Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
SandhyaTatekalva
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
Nadir438180
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
AZKANAAZ1
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
Wajahat Hasnain
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
City University
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
azida3
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
Fajar Baskoro
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
Marwa Ali Eissa
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
JIGAR MAKHIJA
 
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
naveed428
 
Uml intro
Uml introUml intro
Uml intro
Preeti Mishra
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
azida3
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
Kumar
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
Ornella Dunn
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
NouraBaccar1
 
Uml
UmlUml
Uml
Havi K
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
sabin kafle
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)
03028335403
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
AqeelAbbas94
 
05 use case
05 use case05 use case
05 use case
Baskarkncet
 

Similar to Use Case Diagram.pptx (20)

Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
 
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
 
Uml intro
Uml introUml intro
Uml intro
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Uml
UmlUml
Uml
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
 
05 use case
05 use case05 use case
05 use case
 

Recently uploaded

Real-Time Persisted Events at Supercell
Real-Time Persisted Events at  SupercellReal-Time Persisted Events at  Supercell
Real-Time Persisted Events at Supercell
ScyllaDB
 
Fuxnet [EN] .pdf
Fuxnet [EN]                                   .pdfFuxnet [EN]                                   .pdf
Fuxnet [EN] .pdf
Overkill Security
 
ScyllaDB Real-Time Event Processing with CDC
ScyllaDB Real-Time Event Processing with CDCScyllaDB Real-Time Event Processing with CDC
ScyllaDB Real-Time Event Processing with CDC
ScyllaDB
 
Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2
DianaGray10
 
Cyber Recovery Wargame
Cyber Recovery WargameCyber Recovery Wargame
Cyber Recovery Wargame
Databarracks
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
Tobias Schneck
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
AlexanderRichford
 
Discover the Unseen: Tailored Recommendation of Unwatched Content
Discover the Unseen: Tailored Recommendation of Unwatched ContentDiscover the Unseen: Tailored Recommendation of Unwatched Content
Discover the Unseen: Tailored Recommendation of Unwatched Content
ScyllaDB
 
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdfLee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
leebarnesutopia
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
UiPathCommunity
 
MongoDB to ScyllaDB: Technical Comparison and the Path to Success
MongoDB to ScyllaDB: Technical Comparison and the Path to SuccessMongoDB to ScyllaDB: Technical Comparison and the Path to Success
MongoDB to ScyllaDB: Technical Comparison and the Path to Success
ScyllaDB
 
APJC Introduction to ThousandEyes Webinar
APJC Introduction to ThousandEyes WebinarAPJC Introduction to ThousandEyes Webinar
APJC Introduction to ThousandEyes Webinar
ThousandEyes
 
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
Elasticity vs. State? Exploring Kafka Streams Cassandra State StoreElasticity vs. State? Exploring Kafka Streams Cassandra State Store
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
ScyllaDB
 
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
anilsa9823
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
Mydbops
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
Neeraj Kumar Singh
 
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
TrustArc
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
Ortus Solutions, Corp
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
ThousandEyes
 

Recently uploaded (20)

Real-Time Persisted Events at Supercell
Real-Time Persisted Events at  SupercellReal-Time Persisted Events at  Supercell
Real-Time Persisted Events at Supercell
 
Fuxnet [EN] .pdf
Fuxnet [EN]                                   .pdfFuxnet [EN]                                   .pdf
Fuxnet [EN] .pdf
 
ScyllaDB Real-Time Event Processing with CDC
ScyllaDB Real-Time Event Processing with CDCScyllaDB Real-Time Event Processing with CDC
ScyllaDB Real-Time Event Processing with CDC
 
Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2Communications Mining Series - Zero to Hero - Session 2
Communications Mining Series - Zero to Hero - Session 2
 
Cyber Recovery Wargame
Cyber Recovery WargameCyber Recovery Wargame
Cyber Recovery Wargame
 
Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!Containers & AI - Beauty and the Beast!?!
Containers & AI - Beauty and the Beast!?!
 
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
QR Secure: A Hybrid Approach Using Machine Learning and Security Validation F...
 
Discover the Unseen: Tailored Recommendation of Unwatched Content
Discover the Unseen: Tailored Recommendation of Unwatched ContentDiscover the Unseen: Tailored Recommendation of Unwatched Content
Discover the Unseen: Tailored Recommendation of Unwatched Content
 
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdfLee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
Session 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdfSession 1 - Intro to Robotic Process Automation.pdf
Session 1 - Intro to Robotic Process Automation.pdf
 
MongoDB to ScyllaDB: Technical Comparison and the Path to Success
MongoDB to ScyllaDB: Technical Comparison and the Path to SuccessMongoDB to ScyllaDB: Technical Comparison and the Path to Success
MongoDB to ScyllaDB: Technical Comparison and the Path to Success
 
APJC Introduction to ThousandEyes Webinar
APJC Introduction to ThousandEyes WebinarAPJC Introduction to ThousandEyes Webinar
APJC Introduction to ThousandEyes Webinar
 
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
Elasticity vs. State? Exploring Kafka Streams Cassandra State StoreElasticity vs. State? Exploring Kafka Streams Cassandra State Store
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
 
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
Call Girls Chennai ☎️ +91-7426014248 😍 Chennai Call Girl Beauty Girls Chennai...
 
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - MydbopsMySQL InnoDB Storage Engine: Deep Dive - Mydbops
MySQL InnoDB Storage Engine: Deep Dive - Mydbops
 
Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0Chapter 5 - Managing Test Activities V4.0
Chapter 5 - Managing Test Activities V4.0
 
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
TrustArc Webinar - Your Guide for Smooth Cross-Border Data Transfers and Glob...
 
Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!Introducing BoxLang : A new JVM language for productivity and modularity!
Introducing BoxLang : A new JVM language for productivity and modularity!
 
New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024New ThousandEyes Product Features and Release Highlights: June 2024
New ThousandEyes Product Features and Release Highlights: June 2024
 

Use Case Diagram.pptx

  • 2. What is Use Case Diagram? • Use Case Diagram captures the system’s functionality and requirements by using actors and use cases. • Use Cases model the services, tasks, function that a system needs to perform. • Use cases represent high-level functionalities and how a user will handle the system. • Use-cases are the core concepts of Unified Modelling language modeling.
  • 3. Use Case Diagrams • Use Case Diagrams provide a visual way to document user goals and explore possible functionality • Three primary modeling components: • Actors • Use Cases • Relationships between use cases Authorized Staff Worker Teacher Student Record class grades Review Transcripts
  • 4. Why Use-Case Diagram? • A Use Case consists of use cases, persons, or various things that are invoking the features called as actors and the elements that are responsible for implementing the use cases. • Use case diagrams capture the dynamic behaviour of a live system. • It models how an external entity interacts with the system to make it work. • Use case diagrams are responsible for visualizing the external things that interact with the part of the system.
  • 5. When to use a use-case diagram? In general use case diagrams are used for: • Analyzing the requirements of a system • High-level visual software designing • Capturing the functionalities of a system • Modeling the basic idea behind the system • Forward and reverse engineering of a system using various test cases.
  • 6. Use-case diagram notations Use-case: Use cases are used to represent high-level functionalities and how the user will handle the system. A use case represents a distinct functionality of a system, a component, a package, or a class. It is denoted by an oval shape with the name of a use case written inside the oval shape. The notation of a use case in UML is given below:
  • 7. Use-case diagram notations • Actor: Actors can be a human user, some internal applications, or may be some external applications The actor is an entity that interacts with the system. A user is the best example of an actor. An actor is an entity that initiates the use case from outside the scope of a use case. One actor can be associated with multiple use cases in the system. The actor notation in UML is given below.
  • 8. How to draw a use-case diagram? • Following rules must be followed while drawing use-case for any system: • The name of an actor or a use case must be meaningful and relevant to the system. • Interaction of an actor with the use case must be defined clearly and in an understandable way. • Annotations must be used wherever they are required. • If a use case or an actor has multiple relationships, then only significant interactions must be displayed.
  • 9. Example Use Case Diagram Coming up: Use Case Diagrams
  • 10. Relationships Between Actors • Actors can be related by generalization/specialization • Generalization of an actor means that one actor can inherit the role of the other actor. The descendant inherits all the use cases of the ancestor. The descendant has one or more use cases that are specific to that role
  • 11. Use Case Relationships Includes Extends Generalization After a while you realize extends and generalization are not too different. Just know generalization and includes… forget about extends (the difference is only in intent)
  • 12. <<Include>> Relationship In UML modeling, an include relationship is a relationship in which one use case (the base use case) includes the functionality of another use case (the inclusion use case). The include relationship supports the reuse of functionality in a use-case model. Includes Dependency: Defines how one use case can invoke behavior defined by another use case Few things to consider when using the <<include>> relationship. • The base use case is incomplete without the included use case. • The included use case is mandatory and not optional. .
  • 13. <<Include>> Relationship For example – both withdraw money and deposit money use case require the customer to login The <<include>> association specifies that to accomplish the use-case withdraw money the user must login to the account
  • 15. <<include>> Relationships • In an online retail system if Make a Purchase is a use case what could be the included use case? Make a Purchase Verify Credit Cards <<include>>
  • 16. <<include> Relationship • In an ATM system, what common use case can be included for both withdraw cash and transfer funds use case? Withdraw cash Transfer Fund Verify Balance <<include>> <<include>>
  • 17. <<extend>> Relationships • Extends dependency: defines a use-case that is a variation of another, usually for handling an abnormal situation • You can add extend relationships to a model to show the following situations: • A part of a use case that is optional system behavior • A subflow is executed only under certain conditions • A set of behavior segments that may be inserted in a base use case
  • 19.
  • 20. Use-Case Relations • Generalization: Defines one use case as a generalization of another. Replaces generic functionality with alternate implementation Teacher Alter Student Grade Alter Student Grade for a Graduate Course 20 Coming up: Documenting Use Cases
  翻译: