SlideShare a Scribd company logo
1 of 32
UNIT I UML DIAGRAMS
Introduction to OOAD – Unified Process –
UML diagrams – Use Case – Class Diagrams–
Interaction Diagrams – State Diagrams –
Activity Diagrams –
Package, component and Deployment Diagrams.
Use Case
List of actions (event steps),
defining the interactions b/w a role (actor) and a system,
to achieve a goal.
Introduction
• Use cases are not an object-oriented artifact
– They are written stories of using a system to meet the goals.
• Use Case concept was introduced by Ivar Jacobson
• Use Case corresponds to a sequence of transaction,
in which each transaction is invoked from outside the system, and engages
internal objects to interact with one-another and with the system surrounding.
Introduction
• Usecases represent specific flow of system
• A usecase diagram is a graph of actors ,a set of usecases enclosed by a
system boundary,communication association b/w actors and usecases
Actors
• An actor is a role that a user plays with respect to the system
• Use cases are initiated by actors and describe the flow of events that these
actors set-off
• Actor: External entity interacts (behavior) with the system
– Such as a person (identified by role), computer system, or organization; for
example, a cashier.
• Types of Actors
1. Primary Actor
2. Supporting Actor
3. Offstage Actor
Actors
– An actor may be external system that needs some information from the
currrent
Types of Actors
• Primary Actor
– Has user goals fulfilled through using services of the SuD (System under Discussion).
– e.g., the cashier.
• Supporting Actor
– Provides a service (for example, information) to the SuD
– e.g., the automated payment authorization service.
– Often a computer system, but could be an organization or person.
• Offstage Actor
– Has an interest in the behavior of the use case, but is not primary or supporting
– e.g., a government tax agency
Scenarios
• Scenario
– It is a sequence of actions and interactions
b/w actors and the system .
– It is also called a use case instance.
• For example, the scenario of successfully
purchasing items with cash
• A use case is a set of scenarios tied
together by a common user goal.
I would like a
book of stamps,
please.
That will
be $7.80.
Here is
$10.
Thanks. Here
are your
stamps and
your change.
Yes.
OK. Will
that be all?
Capturing Scenarios
• Primary scenario
– Corresponds to the main system interactions, usually the ‘success’ scenario
• Alternate scenarios
– Correspond to less frequent interactions and exceptions
• Format for capturing a use case involves
1. Describing its primary scenario as a sequence of numbered steps and
2. Alternatives as variations on that sequence.
Example
Use Case
Text
Use Case Diagram
Graphic depiction of the interactions
among the elements of a system
Use Case Diagram
• Use case diagrams
– Specify the events of a system and their flows.
– Shows the relationship among the actors & use-case within a system
– Never describes how they are implemented.
• Use case diagrams are used at following places :
– Requirement analysis and high level design.
– Modeling the context of a system.
– Reverse engineering.
– Forward engineering.
Purpose of Use Case Diagram
• Purpose of use case diagram
– To identify functions and how roles interact with them
– To capture the dynamic aspect of a system
– Used to gather requirements of a system.
– Used to get an outside view of a system.
– Identify external and internal factors influencing the system.
Notations in Use Case Diagram
• Use case diagrams consists of
– Actors,
– Use cases,
– System, and
– Package
• Actor is any entity that performs a role in one given system
An actor could be
a person, organization or an external system
Use Case Diagram Objects
• A use case represents a function or an action within the
system
• Its drawn as an oval and named with the function.
Use Case Diagram Objects
• System is an optional element
– Used to define the scope of the use case
– Drawn as a rectangle.
– Useful when your visualizing large systems
• Package is optional element
– Used to group together use cases
– Extremely useful in complex diagrams.
Relationships in Use Case Diagrams
• Use case relationships can be one of the following:
1. Communicates (Association)
2. Extends
3. Include or uses
4. Generalization
Communicates (Association)
• Participation of an actor in a use case is shown by
– Connecting the actor symbol to use case symbol by a solid path.
• Actor is said to 'communicates' with the use case.
• This is only relation between an actor and use cases
Generalization
• This relationship is a parent-child relationship b/w use cases
• In this relationship,
– Child use case is an enhancement of the parent use case.
• It is shown as a directed arrow with a triangle arrowhead.
– Child use case is connected at the base of the arrow.
– Tip of the arrow is connected to the parent use case.
Consider the following step-by-step outlines to use cases for a simple
phone system:
Place Local Call
1.Caller lifts receiver.
2.System presents dial-tone.
3.Caller dials a digit.
4.System turns off dial-tone.
5.Caller enters remainder of number.
6.System analyzes the number.
7.System finds corresponding party.
8.System connects the parties.
9.Parties disconnect.
Place Long-Distance Call
1.Caller lifts receiver.
2.System presents dial-tone.
3.Caller dials a digit.
4.System turns off dial-tone.
5.Caller enters remainder of number.
6.System analyzes the number.
7.System sends number to other system.
8.System connect the lines.
9.Parties disconnect.
Extends
• An extends shows the relationships between use cases.
• Tip of arrowhead points to the parent use case
• Child use case is connected at the base of the arrow
• Example : Validating the user for a system.
– A invalid password is extension of validating password use case
Extend is a directed relationship that specifies how and when
the behavior defined in usually supplementary (optional)
extending use case can be inserted into the behavior defined in
the extended use case.
Include (Uses)
• In this relationship,
– A use case includes the functionality described in another use case
• Tip of arrowhead points to the child use case
• Parent use case connected at base of the arrow.
Deposit Funds and Withdraw Cash use cases
include Customer Authentication use case.
Checkout use case includes several use cases –
Scan Item, Calculate Total and Tax, and Payment
Generalization Extend Include
Base use case could be
abstract use case(incomplete)
or
concrete (complete).
Base use case is complete
(concrete) by itself, defined
independently.
Base use case is incomplete
(abstract use case).
No explicit location to use
specialization.
Has at least one explicit
extension location.
No explicit inclusion location but
is included at some location.
No explicit condition to use
specialization.
Could have optional extension
condition.
No explicit inclusion condition.
A use case with most of scenarios found in use case diagrams
A use case
template for an
ATM system
Generalization
school-management-system
05 use case

More Related Content

What's hot

Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes arvind pandey
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral ModelingAMITJain879
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramNikhil Pandit
 
SE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramAmr E. Mohamed
 
Decision table
Decision tableDecision table
Decision tablejeebala
 
Case Study Based Software Engineering Project Development: State of Art
Case Study Based Software Engineering Project Development: State of ArtCase Study Based Software Engineering Project Development: State of Art
Case Study Based Software Engineering Project Development: State of ArtDr Sukhpal Singh Gill
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsAmr E. Mohamed
 
Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)Gajeshwar Bahekar
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous SimulationNguyen Chien
 
Literature Survey
Literature SurveyLiterature Survey
Literature Surveybutest
 
05.system model and diagram
05.system model and diagram05.system model and diagram
05.system model and diagramRio Aurachman
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesAmr E. Mohamed
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationLeslie Munday
 

What's hot (19)

Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes Unit 4- Software Engineering System Model Notes
Unit 4- Software Engineering System Model Notes
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
 
Use case Diagram and Sequence Diagram
Use case Diagram and Sequence DiagramUse case Diagram and Sequence Diagram
Use case Diagram and Sequence Diagram
 
Conceptual modeling
Conceptual modelingConceptual modeling
Conceptual modeling
 
Ch08
Ch08Ch08
Ch08
 
SE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class DiagramSE18_Lec 08_UML Class Diagram
SE18_Lec 08_UML Class Diagram
 
Decision table
Decision tableDecision table
Decision table
 
Case Study Based Software Engineering Project Development: State of Art
Case Study Based Software Engineering Project Development: State of ArtCase Study Based Software Engineering Project Development: State of Art
Case Study Based Software Engineering Project Development: State of Art
 
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction DiagramsSE18_Lec 10_ UML Behaviour and Interaction Diagrams
SE18_Lec 10_ UML Behaviour and Interaction Diagrams
 
Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)Darshan sem4 140703_ooad_2014 (diagrams)
Darshan sem4 140703_ooad_2014 (diagrams)
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Discrete And Continuous Simulation
Discrete And Continuous SimulationDiscrete And Continuous Simulation
Discrete And Continuous Simulation
 
Literature Survey
Literature SurveyLiterature Survey
Literature Survey
 
05.system model and diagram
05.system model and diagram05.system model and diagram
05.system model and diagram
 
SE_Lec 08_UML Use Cases
SE_Lec 08_UML Use CasesSE_Lec 08_UML Use Cases
SE_Lec 08_UML Use Cases
 
Analysis modelling
Analysis modellingAnalysis modelling
Analysis modelling
 
Use Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling NotationUse Case and Activity Diagrams Modeling Notation
Use Case and Activity Diagrams Modeling Notation
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 

Similar to 05 use case

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 diagramFarah Ahmed
 
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbwUseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw211b410
 
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.pptxazida3
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptxGenta Sahuri
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptxNouraBaccar1
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfAZKANAAZ1
 
Requirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineeringRequirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineeringsnehalkulkarni74
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptxNadir438180
 
SAD06 - Use Case Diagrams
SAD06 - Use Case DiagramsSAD06 - Use Case Diagrams
SAD06 - Use Case DiagramsMichael Heron
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State ModellingDr Chetan Shelke
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)03028335403
 
Ppt ooad ooad3unit
Ppt ooad ooad3unitPpt ooad ooad3unit
Ppt ooad ooad3unitramyalaksha
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)Manoj Reddy
 
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
 

Similar to 05 use case (20)

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
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbwUseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
UseCaseDiagrams.pdf shhsja whuwbwnwhwywbw
 
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 Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
Requirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineeringRequirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineering
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
SAD06 - Use Case Diagrams
SAD06 - Use Case DiagramsSAD06 - Use Case Diagrams
SAD06 - Use Case Diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
 
Use Case Diagrams part4
Use Case Diagrams part4Use Case Diagrams part4
Use Case Diagrams part4
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
 
Final use case (1)
Final use case (1)Final use case (1)
Final use case (1)
 
Ppt ooad ooad3unit
Ppt ooad ooad3unitPpt ooad ooad3unit
Ppt ooad ooad3unit
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
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
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 

More from Baskarkncet

02 well formed and valid documents
02 well formed and valid documents02 well formed and valid documents
02 well formed and valid documentsBaskarkncet
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structureBaskarkncet
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagramsBaskarkncet
 
10 component diagram
10 component diagram10 component diagram
10 component diagramBaskarkncet
 
09 package diagram
09 package diagram09 package diagram
09 package diagramBaskarkncet
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagramBaskarkncet
 
07 interaction diagrams
07 interaction diagrams07 interaction diagrams
07 interaction diagramsBaskarkncet
 
06 class diagrams
06 class diagrams06 class diagrams
06 class diagramsBaskarkncet
 
03 unified process
03 unified process03 unified process
03 unified processBaskarkncet
 

More from Baskarkncet (20)

Unit_I.pptx
Unit_I.pptxUnit_I.pptx
Unit_I.pptx
 
Cocomo model
Cocomo modelCocomo model
Cocomo model
 
Unit 1
Unit 1Unit 1
Unit 1
 
HCI
HCIHCI
HCI
 
03 x files
03 x files03 x files
03 x files
 
03 namespace
03 namespace03 namespace
03 namespace
 
02 xml schema
02 xml schema02 xml schema
02 xml schema
 
02 well formed and valid documents
02 well formed and valid documents02 well formed and valid documents
02 well formed and valid documents
 
00 introduction
00 introduction00 introduction
00 introduction
 
01 xml document structure
01 xml document structure01 xml document structure
01 xml document structure
 
11 deployment diagrams
11 deployment diagrams11 deployment diagrams
11 deployment diagrams
 
10 component diagram
10 component diagram10 component diagram
10 component diagram
 
09 package diagram
09 package diagram09 package diagram
09 package diagram
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
07 interaction diagrams
07 interaction diagrams07 interaction diagrams
07 interaction diagrams
 
06 class diagrams
06 class diagrams06 class diagrams
06 class diagrams
 
03 unified process
03 unified process03 unified process
03 unified process
 
02 uml
02 uml02 uml
02 uml
 
04 uml diagrams
04 uml diagrams04 uml diagrams
04 uml diagrams
 
01 introduction
01 introduction01 introduction
01 introduction
 

Recently uploaded

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 

Recently uploaded (20)

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 

05 use case

  • 1. UNIT I UML DIAGRAMS Introduction to OOAD – Unified Process – UML diagrams – Use Case – Class Diagrams– Interaction Diagrams – State Diagrams – Activity Diagrams – Package, component and Deployment Diagrams.
  • 2. Use Case List of actions (event steps), defining the interactions b/w a role (actor) and a system, to achieve a goal.
  • 3. Introduction • Use cases are not an object-oriented artifact – They are written stories of using a system to meet the goals. • Use Case concept was introduced by Ivar Jacobson • Use Case corresponds to a sequence of transaction, in which each transaction is invoked from outside the system, and engages internal objects to interact with one-another and with the system surrounding.
  • 4. Introduction • Usecases represent specific flow of system • A usecase diagram is a graph of actors ,a set of usecases enclosed by a system boundary,communication association b/w actors and usecases
  • 5. Actors • An actor is a role that a user plays with respect to the system • Use cases are initiated by actors and describe the flow of events that these actors set-off • Actor: External entity interacts (behavior) with the system – Such as a person (identified by role), computer system, or organization; for example, a cashier. • Types of Actors 1. Primary Actor 2. Supporting Actor 3. Offstage Actor
  • 6. Actors – An actor may be external system that needs some information from the currrent
  • 7. Types of Actors • Primary Actor – Has user goals fulfilled through using services of the SuD (System under Discussion). – e.g., the cashier. • Supporting Actor – Provides a service (for example, information) to the SuD – e.g., the automated payment authorization service. – Often a computer system, but could be an organization or person. • Offstage Actor – Has an interest in the behavior of the use case, but is not primary or supporting – e.g., a government tax agency
  • 8. Scenarios • Scenario – It is a sequence of actions and interactions b/w actors and the system . – It is also called a use case instance. • For example, the scenario of successfully purchasing items with cash • A use case is a set of scenarios tied together by a common user goal. I would like a book of stamps, please. That will be $7.80. Here is $10. Thanks. Here are your stamps and your change. Yes. OK. Will that be all?
  • 9. Capturing Scenarios • Primary scenario – Corresponds to the main system interactions, usually the ‘success’ scenario • Alternate scenarios – Correspond to less frequent interactions and exceptions • Format for capturing a use case involves 1. Describing its primary scenario as a sequence of numbered steps and 2. Alternatives as variations on that sequence.
  • 11. Use Case Diagram Graphic depiction of the interactions among the elements of a system
  • 12. Use Case Diagram • Use case diagrams – Specify the events of a system and their flows. – Shows the relationship among the actors & use-case within a system – Never describes how they are implemented. • Use case diagrams are used at following places : – Requirement analysis and high level design. – Modeling the context of a system. – Reverse engineering. – Forward engineering.
  • 13. Purpose of Use Case Diagram • Purpose of use case diagram – To identify functions and how roles interact with them – To capture the dynamic aspect of a system – Used to gather requirements of a system. – Used to get an outside view of a system. – Identify external and internal factors influencing the system.
  • 14. Notations in Use Case Diagram • Use case diagrams consists of – Actors, – Use cases, – System, and – Package • Actor is any entity that performs a role in one given system An actor could be a person, organization or an external system
  • 15. Use Case Diagram Objects • A use case represents a function or an action within the system • Its drawn as an oval and named with the function.
  • 16. Use Case Diagram Objects • System is an optional element – Used to define the scope of the use case – Drawn as a rectangle. – Useful when your visualizing large systems • Package is optional element – Used to group together use cases – Extremely useful in complex diagrams.
  • 17. Relationships in Use Case Diagrams • Use case relationships can be one of the following: 1. Communicates (Association) 2. Extends 3. Include or uses 4. Generalization
  • 18. Communicates (Association) • Participation of an actor in a use case is shown by – Connecting the actor symbol to use case symbol by a solid path. • Actor is said to 'communicates' with the use case. • This is only relation between an actor and use cases
  • 19. Generalization • This relationship is a parent-child relationship b/w use cases • In this relationship, – Child use case is an enhancement of the parent use case. • It is shown as a directed arrow with a triangle arrowhead. – Child use case is connected at the base of the arrow. – Tip of the arrow is connected to the parent use case.
  • 20. Consider the following step-by-step outlines to use cases for a simple phone system: Place Local Call 1.Caller lifts receiver. 2.System presents dial-tone. 3.Caller dials a digit. 4.System turns off dial-tone. 5.Caller enters remainder of number. 6.System analyzes the number. 7.System finds corresponding party. 8.System connects the parties. 9.Parties disconnect. Place Long-Distance Call 1.Caller lifts receiver. 2.System presents dial-tone. 3.Caller dials a digit. 4.System turns off dial-tone. 5.Caller enters remainder of number. 6.System analyzes the number. 7.System sends number to other system. 8.System connect the lines. 9.Parties disconnect.
  • 21.
  • 22. Extends • An extends shows the relationships between use cases. • Tip of arrowhead points to the parent use case • Child use case is connected at the base of the arrow • Example : Validating the user for a system. – A invalid password is extension of validating password use case
  • 23. Extend is a directed relationship that specifies how and when the behavior defined in usually supplementary (optional) extending use case can be inserted into the behavior defined in the extended use case.
  • 24. Include (Uses) • In this relationship, – A use case includes the functionality described in another use case • Tip of arrowhead points to the child use case • Parent use case connected at base of the arrow. Deposit Funds and Withdraw Cash use cases include Customer Authentication use case. Checkout use case includes several use cases – Scan Item, Calculate Total and Tax, and Payment
  • 25. Generalization Extend Include Base use case could be abstract use case(incomplete) or concrete (complete). Base use case is complete (concrete) by itself, defined independently. Base use case is incomplete (abstract use case). No explicit location to use specialization. Has at least one explicit extension location. No explicit inclusion location but is included at some location. No explicit condition to use specialization. Could have optional extension condition. No explicit inclusion condition.
  • 26. A use case with most of scenarios found in use case diagrams
  • 27. A use case template for an ATM system
  • 28.
  • 30.