尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
USE CASE DIAGRAM
ICE 4212
System Analysis and Software Engineering Sessional
Coming up: Introduction
1
Md. Arafat Hossain
Lecturer
Dept. Of ICE
Introduction
 Use Case: “... a typical interaction between a
user and a computer system”, Booch
– Here, “user” is anything that needs or invokes the functionality
of the system
– “Computer system” is the system being modeled
 Use cases capture and document the user-
visible functionality of a system (functional
requirements)
 Use cases capture how the system will benefit
the user
 Each use case represents a discrete goal for
the user
2
Coming up: Example Use Case Diagram
Example Use Case Diagram
Coming up: Use Case Diagrams
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
Authorized
Staff Worker
Teacher
Student
Record class grades
– Relationships between
use cases
Review Transcripts
4
Coming up: Actors
Actors
 Actors are people or external systems that
need to interact with our system
5
Coming up: Relationships Between Actors
 Who or what will use the main functionality of the system?
 Who or what will provide input to this system?
 Who or what will use output from this system?
 Who will need support from the system to do their work?
 Are there any other software systems with which this one
needs to interact
 Are there any hardware devices used or controlled by this
system?
Answer these questions to find actors for an iPod
Finding Actors
Relationships Between Actors
 Actors can be related by
generalization/specialization
 Actors are classifiers (not individual users)
Student
Graduate
Student
6
Coming up: Use Case Relationships
Use Case Relationships
Includes
Extends
Generalization
7
Coming up: Use-Case Relationships
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)
Use-Case Relationships
 Includes Dependency: Defines how one
use case can invoke behavior defined by
another use case
Teacher
Alter Student Grade
Record Grades for a
Section
<<includes>>
8
Coming up: Use-Case Relationships
Use-Case Relationships
 Extends dependency: defines a use-case
that is a variation of another, usually for
handling an abnormal situation
Authorized
Staff Worker
Alter Student Grade
Alter student grade for
a class taken more
than a year ago
<<extends>>
9
Coming up: Use-Case Relations
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
10
Coming up: Documenting Use Cases
Documenting Use Cases
Coming up: Benefits of Use Cases
11
List
Actors
List External
Events
Determine
expected behavior
Name behaviors as
use cases
Add relations
(includes, extends,
generalization)
Document use case
(basic flow, alternate,
exception)
What is system response
to external event? What is
the user’s goal?
Be Patient… let them unfold
Benefits of Use Cases
 Use cases diagrams capture user-visible functions
 Identifying actors help capture who needs the system
functionality
 Relationships between use cases document
opportunities for reuse
 Use cases provide a basis planning and scheduling
incremental development
 Use cases can provide a basis for system testing
12
Coming up: In Class Exercise
In Class Exercise
 Lets create a use case diagram for
– iPod
– Television set
– Elevator
– ATM
– Online Scrabble game
– Word Processor
Coming up: Use cases for CS421
13
Use cases for ATM System
Show system
boundary
Show Actors
outside
boundary
Use extend,
include,
generalization/spe
cialization where
appropriate
Typically one
diagram for
your project
is sufficient
14
Coming up: Use cases for ICE4212
Use cases
 For each use-case (oval) in your diagram
include the use-case description text
described in the slide for Chapter 5, titled:
 Use Case Description
–about slide #14
15
Coming up: Questions
Questions
 Who might be interested in reviewing or using use
case diagrams?
 When in the development life cycle should we employ
use cases?
 What do use cases have to do with object-orientation?
 What level of use-case granularity is best?
 How many use cases are enough?
 Can other modeling activities help in discovering use
cases?
 When in the development life cycle do we stop
referring to or refining the use cases?
 What should the text description of use case contain?
16
Coming up:
 Backup Slides
 The following slides were removed over
time.
Coming up: Extends vs. Includes vs. Generalization
17
Actors
 Actors are people or external systems that
need to interact with our system
 Actors carry out use cases
 Actors are represented as stick figures
 Although users are actors, not all actors
are users
– Actors can be external software systems
– External hardware (sensors, actuators, etc.)
– Actors can be people that need the functionality of
the system, but may not be the ones who actually
invoke the software commands
23
Coming up: Hints for Finding Actors
Hints for Finding Actors
 Who or what will use the main functionality of the
system?
 Who or what will provide input to this system?
 Who or what will use output from this system?
 Who will need support from the system to do their
work?
 Are there any other software systems with which
this one needs to interact
 Are there any hardware devices used or controlled
by this system?
24
Coming up: Hints for Modeling Actors
Using these what are some actors for an iPod?
Hints for Modeling Actors
 An actor can be a role that a user plays with
respect to the system
 A single person may play different roles
 A single actor may perform many use cases
 A use case may be performed by many actors
 Show external systems as actors only when
they are the ones who need a use case
25
End of presentation

More Related Content

Similar to Use-Case-Diagram.ppt

Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
Rahul Pola
 
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Dr Sukhpal Singh Gill
 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use Cases
Amr E. Mohamed
 
Building an Information System
Building an Information SystemBuilding an Information System
Building an Information System
Jo Balucanag - Bitonio
 
Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
dhivyarangasamy
 
Requirement Engineering.pdf
Requirement Engineering.pdfRequirement Engineering.pdf
Requirement Engineering.pdf
Muhammad Imran
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UML
Syed Hassan Ali
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
Amr E. Mohamed
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
Ahmed Elshahat Mohamed
 
M azhar
M azharM azhar
M azhar
Mazhar Saleem
 
SE18_Lec 07_System Modelling and Context Model
SE18_Lec 07_System Modelling and Context ModelSE18_Lec 07_System Modelling and Context Model
SE18_Lec 07_System Modelling and Context Model
Amr E. Mohamed
 
Use case Modeling
Use case ModelingUse case Modeling
Use case Modeling
Md. Shafiuzzaman Hira
 
Usability requirements and their elicitation
Usability requirements and their elicitationUsability requirements and their elicitation
Usability requirements and their elicitation
Lucas Machado
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
Marwa Ali Eissa
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
Fajar Baskoro
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
mohamed tahoon
 
Software engineering requirements help11
Software engineering requirements help11Software engineering requirements help11
Software engineering requirements help11
ssusere9d840
 
Usecase
UsecaseUsecase
Usecase
nazeer pasha
 
SE18_Lec 04_Requirements Analysis and Specification
SE18_Lec 04_Requirements Analysis and SpecificationSE18_Lec 04_Requirements Analysis and Specification
SE18_Lec 04_Requirements Analysis and Specification
Amr E. Mohamed
 
Lecture 3 OOSE.pdf
Lecture 3 OOSE.pdfLecture 3 OOSE.pdf
Lecture 3 OOSE.pdf
amanuel236786
 

Similar to Use-Case-Diagram.ppt (20)

Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
 
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
Workshop on Basics of Software Engineering (DFD, UML and Project Culture)
 
SE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use CasesSE18_Lec 09_UML Use Cases
SE18_Lec 09_UML Use Cases
 
Building an Information System
Building an Information SystemBuilding an Information System
Building an Information System
 
Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
 
Requirement Engineering.pdf
Requirement Engineering.pdfRequirement Engineering.pdf
Requirement Engineering.pdf
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UML
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
M azhar
M azharM azhar
M azhar
 
SE18_Lec 07_System Modelling and Context Model
SE18_Lec 07_System Modelling and Context ModelSE18_Lec 07_System Modelling and Context Model
SE18_Lec 07_System Modelling and Context Model
 
Use case Modeling
Use case ModelingUse case Modeling
Use case Modeling
 
Usability requirements and their elicitation
Usability requirements and their elicitationUsability requirements and their elicitation
Usability requirements and their elicitation
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Software engineering requirements help11
Software engineering requirements help11Software engineering requirements help11
Software engineering requirements help11
 
Usecase
UsecaseUsecase
Usecase
 
SE18_Lec 04_Requirements Analysis and Specification
SE18_Lec 04_Requirements Analysis and SpecificationSE18_Lec 04_Requirements Analysis and Specification
SE18_Lec 04_Requirements Analysis and Specification
 
Lecture 3 OOSE.pdf
Lecture 3 OOSE.pdfLecture 3 OOSE.pdf
Lecture 3 OOSE.pdf
 

More from FarHana74914

DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
FarHana74914
 
Lecture-1-3.pptx
Lecture-1-3.pptxLecture-1-3.pptx
Lecture-1-3.pptx
FarHana74914
 
Lecture - 24-25.pptx
Lecture - 24-25.pptxLecture - 24-25.pptx
Lecture - 24-25.pptx
FarHana74914
 
Lecture - 20-23.pptx
Lecture - 20-23.pptxLecture - 20-23.pptx
Lecture - 20-23.pptx
FarHana74914
 
Lecture - 16-19.pptx
Lecture - 16-19.pptxLecture - 16-19.pptx
Lecture - 16-19.pptx
FarHana74914
 
Lecture - 11-15.pptx
Lecture - 11-15.pptxLecture - 11-15.pptx
Lecture - 11-15.pptx
FarHana74914
 
Lecture - 7-10.pptx
Lecture - 7-10.pptxLecture - 7-10.pptx
Lecture - 7-10.pptx
FarHana74914
 

More from FarHana74914 (7)

DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
 
Lecture-1-3.pptx
Lecture-1-3.pptxLecture-1-3.pptx
Lecture-1-3.pptx
 
Lecture - 24-25.pptx
Lecture - 24-25.pptxLecture - 24-25.pptx
Lecture - 24-25.pptx
 
Lecture - 20-23.pptx
Lecture - 20-23.pptxLecture - 20-23.pptx
Lecture - 20-23.pptx
 
Lecture - 16-19.pptx
Lecture - 16-19.pptxLecture - 16-19.pptx
Lecture - 16-19.pptx
 
Lecture - 11-15.pptx
Lecture - 11-15.pptxLecture - 11-15.pptx
Lecture - 11-15.pptx
 
Lecture - 7-10.pptx
Lecture - 7-10.pptxLecture - 7-10.pptx
Lecture - 7-10.pptx
 

Recently uploaded

DefenceTech Meetup #1 - Lisbon, Portugal
DefenceTech Meetup #1 - Lisbon, PortugalDefenceTech Meetup #1 - Lisbon, Portugal
DefenceTech Meetup #1 - Lisbon, Portugal
Andre Marquet
 
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call GirlCall Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
Happy Singh
 
The Key Summaries of Forum Gas 2024.pptx
The Key Summaries of Forum Gas 2024.pptxThe Key Summaries of Forum Gas 2024.pptx
The Key Summaries of Forum Gas 2024.pptx
Sampe Purba
 
TriStar Gold Corporate Presentation (Revised) - June 2024
TriStar Gold Corporate Presentation (Revised) - June 2024TriStar Gold Corporate Presentation (Revised) - June 2024
TriStar Gold Corporate Presentation (Revised) - June 2024
Adnet Communications
 
Intelligent Small Boat Security Solution - June 2024
Intelligent Small Boat Security Solution - June 2024Intelligent Small Boat Security Solution - June 2024
Intelligent Small Boat Security Solution - June 2024
Hector Del Castillo, CPM, CPMM
 
Stainless Steel Conveyor Manufacturers Chennai
Stainless Steel Conveyor Manufacturers ChennaiStainless Steel Conveyor Manufacturers Chennai
Stainless Steel Conveyor Manufacturers Chennai
ConveyorSystem
 
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call GirlCall Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
Happy Singh
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results
 
Kanban Coaching Exchange with Dave White - Example SDR Report
Kanban Coaching Exchange with Dave White - Example SDR ReportKanban Coaching Exchange with Dave White - Example SDR Report
Kanban Coaching Exchange with Dave White - Example SDR Report
Helen Meek
 
Leading the Development of Profitable and Sustainable Products
Leading the Development of Profitable and Sustainable ProductsLeading the Development of Profitable and Sustainable Products
Leading the Development of Profitable and Sustainable Products
Aggregage
 
Kanban Coaching Exchange with Dave White - Sample SDR Report
Kanban Coaching Exchange with Dave White - Sample SDR ReportKanban Coaching Exchange with Dave White - Sample SDR Report
Kanban Coaching Exchange with Dave White - Sample SDR Report
Helen Meek
 
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIANSATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
❾❸❹❽❺❾❼❾❾⓿Dpboss Satta Matka Guessing Indian kalyan chart result
 
Kirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip GEM Royalty TNR Gold PresentationKirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip
 
一比一原版(UU毕业证)犹他大学毕业证如何办理
一比一原版(UU毕业证)犹他大学毕业证如何办理一比一原版(UU毕业证)犹他大学毕业证如何办理
一比一原版(UU毕业证)犹他大学毕业证如何办理
taqyea
 
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
Adani case
 
L'indice de performance des ports à conteneurs de l'année 2023
L'indice de performance des ports à conteneurs de l'année 2023L'indice de performance des ports à conteneurs de l'année 2023
L'indice de performance des ports à conteneurs de l'année 2023
SPATPortToamasina
 
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐Dpboss Matka Guessing Satta Matka Kalyan Chart Indian Matka
 
Kalyan Chart Satta Matka Dpboss Kalyan Matka Results
Kalyan Chart Satta Matka Dpboss Kalyan Matka ResultsKalyan Chart Satta Matka Dpboss Kalyan Matka Results
Kalyan Chart Satta Matka Dpboss Kalyan Matka Results
Satta Matka Dpboss Kalyan Matka Results
 
RFHIC, IMS 2024, Washington D.C., tradeshow
RFHIC, IMS 2024, Washington D.C., tradeshowRFHIC, IMS 2024, Washington D.C., tradeshow
RFHIC, IMS 2024, Washington D.C., tradeshow
SeungyeonRyu2
 
Satta matka DP boss matka Kalyan result India matka
Satta matka DP boss matka Kalyan result India matkaSatta matka DP boss matka Kalyan result India matka
Satta matka DP boss matka Kalyan result India matka
➑➌➋➑➒➎➑➑➊➍
 

Recently uploaded (20)

DefenceTech Meetup #1 - Lisbon, Portugal
DefenceTech Meetup #1 - Lisbon, PortugalDefenceTech Meetup #1 - Lisbon, Portugal
DefenceTech Meetup #1 - Lisbon, Portugal
 
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call GirlCall Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
Call Girls Dehradun (india) ☎️ +91-74260 Dehradun Call Girl
 
The Key Summaries of Forum Gas 2024.pptx
The Key Summaries of Forum Gas 2024.pptxThe Key Summaries of Forum Gas 2024.pptx
The Key Summaries of Forum Gas 2024.pptx
 
TriStar Gold Corporate Presentation (Revised) - June 2024
TriStar Gold Corporate Presentation (Revised) - June 2024TriStar Gold Corporate Presentation (Revised) - June 2024
TriStar Gold Corporate Presentation (Revised) - June 2024
 
Intelligent Small Boat Security Solution - June 2024
Intelligent Small Boat Security Solution - June 2024Intelligent Small Boat Security Solution - June 2024
Intelligent Small Boat Security Solution - June 2024
 
Stainless Steel Conveyor Manufacturers Chennai
Stainless Steel Conveyor Manufacturers ChennaiStainless Steel Conveyor Manufacturers Chennai
Stainless Steel Conveyor Manufacturers Chennai
 
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call GirlCall Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
Call Girls Bhubaneswar (india) ☎️ +91-74260 Bhubaneswar Call Girl
 
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan ChartSatta Matka Dpboss Kalyan Matka Results Kalyan Chart
Satta Matka Dpboss Kalyan Matka Results Kalyan Chart
 
Kanban Coaching Exchange with Dave White - Example SDR Report
Kanban Coaching Exchange with Dave White - Example SDR ReportKanban Coaching Exchange with Dave White - Example SDR Report
Kanban Coaching Exchange with Dave White - Example SDR Report
 
Leading the Development of Profitable and Sustainable Products
Leading the Development of Profitable and Sustainable ProductsLeading the Development of Profitable and Sustainable Products
Leading the Development of Profitable and Sustainable Products
 
Kanban Coaching Exchange with Dave White - Sample SDR Report
Kanban Coaching Exchange with Dave White - Sample SDR ReportKanban Coaching Exchange with Dave White - Sample SDR Report
Kanban Coaching Exchange with Dave White - Sample SDR Report
 
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIANSATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
SATTA MATKA DPBOSS SERVICE GUESSING MATKA KALYAN INDIAN
 
Kirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip GEM Royalty TNR Gold PresentationKirill Klip GEM Royalty TNR Gold Presentation
Kirill Klip GEM Royalty TNR Gold Presentation
 
一比一原版(UU毕业证)犹他大学毕业证如何办理
一比一原版(UU毕业证)犹他大学毕业证如何办理一比一原版(UU毕业证)犹他大学毕业证如何办理
一比一原版(UU毕业证)犹他大学毕业证如何办理
 
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
Adani Group Requests For Additional Land For Its Dharavi Redevelopment Projec...
 
L'indice de performance des ports à conteneurs de l'année 2023
L'indice de performance des ports à conteneurs de l'année 2023L'indice de performance des ports à conteneurs de l'année 2023
L'indice de performance des ports à conteneurs de l'année 2023
 
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
➒➌➎➏➑➐➋➑➐➐ Satta Matta Matka Dpboss Matka Guessing Kalyan panel Chart
 
Kalyan Chart Satta Matka Dpboss Kalyan Matka Results
Kalyan Chart Satta Matka Dpboss Kalyan Matka ResultsKalyan Chart Satta Matka Dpboss Kalyan Matka Results
Kalyan Chart Satta Matka Dpboss Kalyan Matka Results
 
RFHIC, IMS 2024, Washington D.C., tradeshow
RFHIC, IMS 2024, Washington D.C., tradeshowRFHIC, IMS 2024, Washington D.C., tradeshow
RFHIC, IMS 2024, Washington D.C., tradeshow
 
Satta matka DP boss matka Kalyan result India matka
Satta matka DP boss matka Kalyan result India matkaSatta matka DP boss matka Kalyan result India matka
Satta matka DP boss matka Kalyan result India matka
 

Use-Case-Diagram.ppt

  • 1. USE CASE DIAGRAM ICE 4212 System Analysis and Software Engineering Sessional Coming up: Introduction 1 Md. Arafat Hossain Lecturer Dept. Of ICE
  • 2. Introduction  Use Case: “... a typical interaction between a user and a computer system”, Booch – Here, “user” is anything that needs or invokes the functionality of the system – “Computer system” is the system being modeled  Use cases capture and document the user- visible functionality of a system (functional requirements)  Use cases capture how the system will benefit the user  Each use case represents a discrete goal for the user 2 Coming up: Example Use Case Diagram
  • 3. Example Use Case Diagram Coming up: Use Case Diagrams 3
  • 4. 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 Authorized Staff Worker Teacher Student Record class grades – Relationships between use cases Review Transcripts 4 Coming up: Actors
  • 5. Actors  Actors are people or external systems that need to interact with our system 5 Coming up: Relationships Between Actors  Who or what will use the main functionality of the system?  Who or what will provide input to this system?  Who or what will use output from this system?  Who will need support from the system to do their work?  Are there any other software systems with which this one needs to interact  Are there any hardware devices used or controlled by this system? Answer these questions to find actors for an iPod Finding Actors
  • 6. Relationships Between Actors  Actors can be related by generalization/specialization  Actors are classifiers (not individual users) Student Graduate Student 6 Coming up: Use Case Relationships
  • 7. Use Case Relationships Includes Extends Generalization 7 Coming up: Use-Case Relationships 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)
  • 8. Use-Case Relationships  Includes Dependency: Defines how one use case can invoke behavior defined by another use case Teacher Alter Student Grade Record Grades for a Section <<includes>> 8 Coming up: Use-Case Relationships
  • 9. Use-Case Relationships  Extends dependency: defines a use-case that is a variation of another, usually for handling an abnormal situation Authorized Staff Worker Alter Student Grade Alter student grade for a class taken more than a year ago <<extends>> 9 Coming up: Use-Case Relations
  • 10. 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 10 Coming up: Documenting Use Cases
  • 11. Documenting Use Cases Coming up: Benefits of Use Cases 11 List Actors List External Events Determine expected behavior Name behaviors as use cases Add relations (includes, extends, generalization) Document use case (basic flow, alternate, exception) What is system response to external event? What is the user’s goal? Be Patient… let them unfold
  • 12. Benefits of Use Cases  Use cases diagrams capture user-visible functions  Identifying actors help capture who needs the system functionality  Relationships between use cases document opportunities for reuse  Use cases provide a basis planning and scheduling incremental development  Use cases can provide a basis for system testing 12 Coming up: In Class Exercise
  • 13. In Class Exercise  Lets create a use case diagram for – iPod – Television set – Elevator – ATM – Online Scrabble game – Word Processor Coming up: Use cases for CS421 13
  • 14. Use cases for ATM System Show system boundary Show Actors outside boundary Use extend, include, generalization/spe cialization where appropriate Typically one diagram for your project is sufficient 14 Coming up: Use cases for ICE4212
  • 15. Use cases  For each use-case (oval) in your diagram include the use-case description text described in the slide for Chapter 5, titled:  Use Case Description –about slide #14 15 Coming up: Questions
  • 16. Questions  Who might be interested in reviewing or using use case diagrams?  When in the development life cycle should we employ use cases?  What do use cases have to do with object-orientation?  What level of use-case granularity is best?  How many use cases are enough?  Can other modeling activities help in discovering use cases?  When in the development life cycle do we stop referring to or refining the use cases?  What should the text description of use case contain? 16 Coming up:
  • 17.  Backup Slides  The following slides were removed over time. Coming up: Extends vs. Includes vs. Generalization 17
  • 18. Actors  Actors are people or external systems that need to interact with our system  Actors carry out use cases  Actors are represented as stick figures  Although users are actors, not all actors are users – Actors can be external software systems – External hardware (sensors, actuators, etc.) – Actors can be people that need the functionality of the system, but may not be the ones who actually invoke the software commands 23 Coming up: Hints for Finding Actors
  • 19. Hints for Finding Actors  Who or what will use the main functionality of the system?  Who or what will provide input to this system?  Who or what will use output from this system?  Who will need support from the system to do their work?  Are there any other software systems with which this one needs to interact  Are there any hardware devices used or controlled by this system? 24 Coming up: Hints for Modeling Actors Using these what are some actors for an iPod?
  • 20. Hints for Modeling Actors  An actor can be a role that a user plays with respect to the system  A single person may play different roles  A single actor may perform many use cases  A use case may be performed by many actors  Show external systems as actors only when they are the ones who need a use case 25 End of presentation
  翻译: