SlideShare a Scribd company logo
1 of 44
Arab Open University
2nd
Semester, 2006-2007
M301
Unit 4.2
Use Cases
reem.attas@arabou.org.sa
Reem AlAttas © 2
Topic Road Map
 Simple use case models
More details on use case models
Modeling users’ routines
Getting users involved
Reem AlAttas © 3
Use Case
Who does what?
Reem AlAttas © 4
Purposes of Use Cases
Help with the modeling of requirements.
Help with project planning and quality
assurance.
Offer a common language for agreeing the
functions of the software system.
Reem AlAttas © 5
Elements
Actors.
Use Cases.
Relationships.
Reem AlAttas © 6
Actor
 Anything outside a software system that
interacts with it.
 Not intended to represent a particular individual,
rather they tell us about a particular role.
 Can be:
 Human User.
 Other software system or device.
Reem AlAttas © 7
Problem
Reem AlAttas © 8
Tasks
1. Make reservation.
2. Check in.
3. Check out.
Reem AlAttas © 9
Use Case View  who does what
Reem AlAttas © 10
Add Boundary & Note
Boundary
Note
Reem AlAttas © 11
Boundary
Conceptual line that separates what we
are interested in from the rest of the world.
Reem AlAttas © 12
Conditions
Pre-condition: must be true before the use
case can be carried out.
Post-condition: must be true once the use
case has been completed.
Reem AlAttas © 13
Hotel Example Conditions (Check In)
 Pre-condition: must hold before a room can be allocated
to a guest.
 There must be a reservation for the guest and there must be at
least one room available (of the desired type) and the guest
must be able to pay for the room.
 Post-condition: must hold after a room has been
allocated to a guest.
 The guest will have been allocated to a room for the period
identified in the reservation, the room will have been identified as
being in use for a specific period and a bill will have been
opened for the duration of the stay.
Reem AlAttas © 14
Scenario
Description of a sequence of actions that
illustrate a piece of interesting behavior.
Just as an object is an instance of a class,
a scenario is said to be an instance of a
use case.
Reem AlAttas © 15
Possible Scenarios for Making a
Reservation at a Hotel.
Jill wants to reserve a room at the Ritz
Hotel for 14 July. A room is available for
that date and so the system makes a
reservation for the guest Jill  Lead to a
successful outcome.
Reem AlAttas © 16
… Possible Scenarios for Making a
Reservation at a Hotel
 Jack wants to reserve a room at the Savoy Hotel
for the first week of August. There is no single
room that is free for seven days in August, but
there is one room available for four days and
another of the same type for three days. The
system presents that option to Jack, who rejects
it  There is an exception to the main success
scenario.
Reem AlAttas © 17
Textual Description of a Use Case
Reem AlAttas © 18
… Textual Description of a Use Case
Reem AlAttas © 19
Topic Road Map
Simple use case models
 More details on use case models
Modeling users’ routines
Getting users involved
Reem AlAttas © 20
More About Actors
Reem AlAttas © 21
Stereotypes
 A way of adding detail to a model element
(relationship).
 You can define your own term and place it
between the angle brackets << >>.
 Ex: <<communication>>
 The UML provides some stereotypes that you
cannot redefine.
 <<include>>
 <<extend>>
Reem AlAttas © 22
<<include>>
Reem AlAttas © 23
<<extend>>
Reem AlAttas © 24
Extension Point
Reem AlAttas © 25
Use Case Description
Reem AlAttas © 26
… Use Case Description
Reem AlAttas © 27
… Use Case Description
Reem AlAttas © 28
Comparison
<<include>>  unconditional behavior
(must be performed).
<<extend>>  conditional behavior
(performed only when the condition is
true).
Reem AlAttas © 29
To extend or include?
Reem AlAttas © 30
… To extend or include?
Reem AlAttas © 31
Topic Road Map
Simple use case models
More details on use case models
 Modeling users’ routines
Getting users involved
Reem AlAttas © 32
Activity Diagram
Used to model the coordination and
sequencing of actions in order to achieve
a given purpose and, with a simple
extension, can show which actor is
responsible for which activity.
Help you investigate the flow of control
from one activity to another.
Reem AlAttas © 33
Example 3.1
Suppose, after a hard day’s work, you
decide to make yourself a hot drink. What
do you do to achieve that goal? What are
the actions and how do you organize
them?
Reem AlAttas © 34
Activity Diagram for Making a cup of
coffee
Reem AlAttas © 35
Dealing with a Dirty Cup
Reem AlAttas © 36
Using Decision Diamonds
Reem AlAttas © 37
An activity Diagram for Issuing a Copy
of a Book
Reem AlAttas © 38
An Activity Diagram for Returning a
Copy of a Book
Reem AlAttas © 39
Where to Use Activity Diagrams?
More oriented towards analysis  used to
find out which activities are to be
automated.
More towards implementation  help you
to identify how each of the operations
done.
Reem AlAttas © 40
Topic Road Map
Simple use case models
More details on use case models
Modeling users’ routines
 Getting users involved
Reem AlAttas © 41
Prototyping
Used to help with the design of the user
interface for the proposed software
system.
By working closely with the users you can
minimize or avoid any misunderstanding
that may lead to false expectations by
either the developer or the users.
Reem AlAttas © 42
Activity Diagram for the Prototyping
Process
TMA4 – Q2
Thank You!

More Related Content

Similar to Use Cases

Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagramsartgreen
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagramsartgreen
 
Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)LamineKaba6
 
Human Factors and Professional Issues
Human Factors and Professional IssuesHuman Factors and Professional Issues
Human Factors and Professional IssuesReem Alattas
 
Achieving Multi-tenanted Business Processes in SaaS Applications
Achieving Multi-tenanted Business Processes in SaaS Applications  Achieving Multi-tenanted Business Processes in SaaS Applications
Achieving Multi-tenanted Business Processes in SaaS Applications Malinda Kapuruge
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagramsartgreen
 
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...mcharafeddine
 
04 transaction models
04 transaction models04 transaction models
04 transaction modelsashish61_scs
 
Elm Detroit 9/7/17 - Planting Seeds with Elm
Elm Detroit 9/7/17 - Planting Seeds with ElmElm Detroit 9/7/17 - Planting Seeds with Elm
Elm Detroit 9/7/17 - Planting Seeds with ElmElm Detroit
 
Process Quality Management, Human Resources, Quality Assurance
Process Quality Management, Human Resources, QualityAssuranceProcess Quality Management, Human Resources, QualityAssurance
Process Quality Management, Human Resources, Quality AssuranceReem Alattas
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architectureAhmad karawash
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testingdurgaaarthi
 
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...Itai Yaffe
 

Similar to Use Cases (15)

Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)Sadcw 7e chapter03-done(1)
Sadcw 7e chapter03-done(1)
 
Human Factors and Professional Issues
Human Factors and Professional IssuesHuman Factors and Professional Issues
Human Factors and Professional Issues
 
Achieving Multi-tenanted Business Processes in SaaS Applications
Achieving Multi-tenanted Business Processes in SaaS Applications  Achieving Multi-tenanted Business Processes in SaaS Applications
Achieving Multi-tenanted Business Processes in SaaS Applications
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...
On Optimizing Operational Efficiency in Storage Systems via Deep Reinforcemen...
 
Jar chapter 3
Jar chapter 3Jar chapter 3
Jar chapter 3
 
04 transaction models
04 transaction models04 transaction models
04 transaction models
 
Elm Detroit 9/7/17 - Planting Seeds with Elm
Elm Detroit 9/7/17 - Planting Seeds with ElmElm Detroit 9/7/17 - Planting Seeds with Elm
Elm Detroit 9/7/17 - Planting Seeds with Elm
 
Process Quality Management, Human Resources, Quality Assurance
Process Quality Management, Human Resources, QualityAssuranceProcess Quality Management, Human Resources, QualityAssurance
Process Quality Management, Human Resources, Quality Assurance
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testing
 
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...
From AWS Data Pipeline to Airflow - managing data pipelines in Nielsen Market...
 
SADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptxSADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptx
 

More from Reem Alattas

Rumble Lights Pitch Deck
Rumble Lights Pitch DeckRumble Lights Pitch Deck
Rumble Lights Pitch DeckReem Alattas
 
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular Robots
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular RobotsNASA Datanauts Water Cooler Chat: Autonomous Design of Modular Robots
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular RobotsReem Alattas
 
She looks just like me 2017
She looks just like me 2017She looks just like me 2017
She looks just like me 2017Reem Alattas
 
Nasa Datanauts Water Cooler Chat: Robotics for Space Exploration
Nasa Datanauts Water Cooler Chat: Robotics for Space ExplorationNasa Datanauts Water Cooler Chat: Robotics for Space Exploration
Nasa Datanauts Water Cooler Chat: Robotics for Space ExplorationReem Alattas
 
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space Exploration
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space ExplorationNasa Datanauts Water Cooler Chat: Evolutionary Robots for Space Exploration
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space ExplorationReem Alattas
 
She Looks Just Like Me 2017
She Looks Just Like Me 2017She Looks Just Like Me 2017
She Looks Just Like Me 2017Reem Alattas
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary AlgorithmsReem Alattas
 
Evolutionary Robotics
Evolutionary RoboticsEvolutionary Robotics
Evolutionary RoboticsReem Alattas
 
Enhancing input on and above the interactive surface
Enhancing input on and above the interactive surfaceEnhancing input on and above the interactive surface
Enhancing input on and above the interactive surfaceReem Alattas
 
Skinput: Appropriating the Body as an Input Surface
Skinput: Appropriating the Body as an Input SurfaceSkinput: Appropriating the Body as an Input Surface
Skinput: Appropriating the Body as an Input SurfaceReem Alattas
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup LanguageReem Alattas
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event ModelReem Alattas
 
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTMLReem Alattas
 
JavaScript Objects
JavaScript ObjectsJavaScript Objects
JavaScript ObjectsReem Alattas
 
Linear Search & Binary Search
Linear Search & Binary SearchLinear Search & Binary Search
Linear Search & Binary SearchReem Alattas
 
JavaScript Arrays
JavaScript Arrays JavaScript Arrays
JavaScript Arrays Reem Alattas
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions Reem Alattas
 

More from Reem Alattas (20)

Rumble Lights Pitch Deck
Rumble Lights Pitch DeckRumble Lights Pitch Deck
Rumble Lights Pitch Deck
 
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular Robots
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular RobotsNASA Datanauts Water Cooler Chat: Autonomous Design of Modular Robots
NASA Datanauts Water Cooler Chat: Autonomous Design of Modular Robots
 
She looks just like me 2017
She looks just like me 2017She looks just like me 2017
She looks just like me 2017
 
Nasa Datanauts Water Cooler Chat: Robotics for Space Exploration
Nasa Datanauts Water Cooler Chat: Robotics for Space ExplorationNasa Datanauts Water Cooler Chat: Robotics for Space Exploration
Nasa Datanauts Water Cooler Chat: Robotics for Space Exploration
 
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space Exploration
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space ExplorationNasa Datanauts Water Cooler Chat: Evolutionary Robots for Space Exploration
Nasa Datanauts Water Cooler Chat: Evolutionary Robots for Space Exploration
 
She Looks Just Like Me 2017
She Looks Just Like Me 2017She Looks Just Like Me 2017
She Looks Just Like Me 2017
 
Tran helmet pitch
Tran helmet pitchTran helmet pitch
Tran helmet pitch
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary Algorithms
 
Evolutionary Robotics
Evolutionary RoboticsEvolutionary Robotics
Evolutionary Robotics
 
Create a Need
Create a NeedCreate a Need
Create a Need
 
Enhancing input on and above the interactive surface
Enhancing input on and above the interactive surfaceEnhancing input on and above the interactive surface
Enhancing input on and above the interactive surface
 
Skinput: Appropriating the Body as an Input Surface
Skinput: Appropriating the Body as an Input SurfaceSkinput: Appropriating the Body as an Input Surface
Skinput: Appropriating the Body as an Input Surface
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup Language
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
 
PHP Scripting
PHP ScriptingPHP Scripting
PHP Scripting
 
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
 
JavaScript Objects
JavaScript ObjectsJavaScript Objects
JavaScript Objects
 
Linear Search & Binary Search
Linear Search & Binary SearchLinear Search & Binary Search
Linear Search & Binary Search
 
JavaScript Arrays
JavaScript Arrays JavaScript Arrays
JavaScript Arrays
 
JavaScript Functions
JavaScript Functions JavaScript Functions
JavaScript Functions
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Use Cases

  • 1. Arab Open University 2nd Semester, 2006-2007 M301 Unit 4.2 Use Cases reem.attas@arabou.org.sa
  • 2. Reem AlAttas © 2 Topic Road Map  Simple use case models More details on use case models Modeling users’ routines Getting users involved
  • 3. Reem AlAttas © 3 Use Case Who does what?
  • 4. Reem AlAttas © 4 Purposes of Use Cases Help with the modeling of requirements. Help with project planning and quality assurance. Offer a common language for agreeing the functions of the software system.
  • 5. Reem AlAttas © 5 Elements Actors. Use Cases. Relationships.
  • 6. Reem AlAttas © 6 Actor  Anything outside a software system that interacts with it.  Not intended to represent a particular individual, rather they tell us about a particular role.  Can be:  Human User.  Other software system or device.
  • 7. Reem AlAttas © 7 Problem
  • 8. Reem AlAttas © 8 Tasks 1. Make reservation. 2. Check in. 3. Check out.
  • 9. Reem AlAttas © 9 Use Case View  who does what
  • 10. Reem AlAttas © 10 Add Boundary & Note Boundary Note
  • 11. Reem AlAttas © 11 Boundary Conceptual line that separates what we are interested in from the rest of the world.
  • 12. Reem AlAttas © 12 Conditions Pre-condition: must be true before the use case can be carried out. Post-condition: must be true once the use case has been completed.
  • 13. Reem AlAttas © 13 Hotel Example Conditions (Check In)  Pre-condition: must hold before a room can be allocated to a guest.  There must be a reservation for the guest and there must be at least one room available (of the desired type) and the guest must be able to pay for the room.  Post-condition: must hold after a room has been allocated to a guest.  The guest will have been allocated to a room for the period identified in the reservation, the room will have been identified as being in use for a specific period and a bill will have been opened for the duration of the stay.
  • 14. Reem AlAttas © 14 Scenario Description of a sequence of actions that illustrate a piece of interesting behavior. Just as an object is an instance of a class, a scenario is said to be an instance of a use case.
  • 15. Reem AlAttas © 15 Possible Scenarios for Making a Reservation at a Hotel. Jill wants to reserve a room at the Ritz Hotel for 14 July. A room is available for that date and so the system makes a reservation for the guest Jill  Lead to a successful outcome.
  • 16. Reem AlAttas © 16 … Possible Scenarios for Making a Reservation at a Hotel  Jack wants to reserve a room at the Savoy Hotel for the first week of August. There is no single room that is free for seven days in August, but there is one room available for four days and another of the same type for three days. The system presents that option to Jack, who rejects it  There is an exception to the main success scenario.
  • 17. Reem AlAttas © 17 Textual Description of a Use Case
  • 18. Reem AlAttas © 18 … Textual Description of a Use Case
  • 19. Reem AlAttas © 19 Topic Road Map Simple use case models  More details on use case models Modeling users’ routines Getting users involved
  • 20. Reem AlAttas © 20 More About Actors
  • 21. Reem AlAttas © 21 Stereotypes  A way of adding detail to a model element (relationship).  You can define your own term and place it between the angle brackets << >>.  Ex: <<communication>>  The UML provides some stereotypes that you cannot redefine.  <<include>>  <<extend>>
  • 22. Reem AlAttas © 22 <<include>>
  • 23. Reem AlAttas © 23 <<extend>>
  • 24. Reem AlAttas © 24 Extension Point
  • 25. Reem AlAttas © 25 Use Case Description
  • 26. Reem AlAttas © 26 … Use Case Description
  • 27. Reem AlAttas © 27 … Use Case Description
  • 28. Reem AlAttas © 28 Comparison <<include>>  unconditional behavior (must be performed). <<extend>>  conditional behavior (performed only when the condition is true).
  • 29. Reem AlAttas © 29 To extend or include?
  • 30. Reem AlAttas © 30 … To extend or include?
  • 31. Reem AlAttas © 31 Topic Road Map Simple use case models More details on use case models  Modeling users’ routines Getting users involved
  • 32. Reem AlAttas © 32 Activity Diagram Used to model the coordination and sequencing of actions in order to achieve a given purpose and, with a simple extension, can show which actor is responsible for which activity. Help you investigate the flow of control from one activity to another.
  • 33. Reem AlAttas © 33 Example 3.1 Suppose, after a hard day’s work, you decide to make yourself a hot drink. What do you do to achieve that goal? What are the actions and how do you organize them?
  • 34. Reem AlAttas © 34 Activity Diagram for Making a cup of coffee
  • 35. Reem AlAttas © 35 Dealing with a Dirty Cup
  • 36. Reem AlAttas © 36 Using Decision Diamonds
  • 37. Reem AlAttas © 37 An activity Diagram for Issuing a Copy of a Book
  • 38. Reem AlAttas © 38 An Activity Diagram for Returning a Copy of a Book
  • 39. Reem AlAttas © 39 Where to Use Activity Diagrams? More oriented towards analysis  used to find out which activities are to be automated. More towards implementation  help you to identify how each of the operations done.
  • 40. Reem AlAttas © 40 Topic Road Map Simple use case models More details on use case models Modeling users’ routines  Getting users involved
  • 41. Reem AlAttas © 41 Prototyping Used to help with the design of the user interface for the proposed software system. By working closely with the users you can minimize or avoid any misunderstanding that may lead to false expectations by either the developer or the users.
  • 42. Reem AlAttas © 42 Activity Diagram for the Prototyping Process