SlideShare a Scribd company logo
1 of 29
• Use Cases
Use case diagram
• Describes the relationship between the system being
modelled and the outside world
• Models the system behaviours in a graphic view
Main Components
• Actors
– Users of the system, e.g. Student
– Surroundings of the system, e.g. Billing System
– Anything that is external to the system and interacts with it
• Use cases
– Major functions (top level)
• Relationships
– Between actors and use cases
Actors
• Actors are NOT part of the system
– User
– Other system
– Sensor
• Actors interact with the system
– Input information to the system
– Receive information from the system
– Both
UML notation of actor
(A matchstick man)
Identifying actors
• Actors can be found in
– In the requirement statements,
– In problem statements,
– Though conversations with customers
• Who will use the system?
• Who will supply information?
• Who will support the system?
• Who will maintain the system?
• Any external resource?
• Interact with other systems?
• …
Use cases
• Functionality that is provided by the system
• Dialogue between actors and system
• Formal definition:
– A use case is a sequence of transactions performed by a
system that yields a measurable result of values for a
particular actor
UML notation of use case, (balloon shape)
Use case description
• Use case also needs documentation
– States the purpose of the use case in a few sentences
– Provides a high-level definition of the functionality
• For example:
– Register for courses:
This use case is started by student. It provides the capability to create,
modify, and/or review a student schedule for a semester
• Scenario based approach usually
Use case relationship
• Show the relationship between:
– An actor and an use case
– An use case and another use case
• The relationship represents communication
• Navigation direction
– Who is initialling the communication
– May be both directions
UML notation of a use case relationship
(an arrow)
1
Withdraw
Money
2
Deposit
Money
3
Transfer
Money
4
Check
Balance
ATM System
Bank
Customer
Customer
Accounts
Database
primary actor
role
system
name
system boundary
secondary
actor
use
case
associatio
n
Use case relationships
• We can have relationships between two or more use
cases.
• Such relationships indicates that some function is re-
using another function
• Several types of re-use relationship, but main are:
– Includes
– Extends
<< include >>
Include Relationship
Represents the inclusion of the functionality of one use case within another
Arrow is drawn from the base use case to the used use case
<< extend >>
Extend relationship
Represents the extension of the use case to include optional functionality
Arrow is drawn from the extension use case to the base use case
Write << extend >> above arrowhead line
Case study . Car sharing system
• System Analyst (SA): So you’re saying that car sharers will be able to register by telephoning
the office and speaking to someone there who will enter their details into the system.
• Director (Di): Yes, either the franchisee or more likely one of the office staff will take the call
and enter the details into the computer.
• SA: who are the office staff?
• Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in the
administration of the system.
• SA: what will they be entering?
• Di: The person’s name and address, details of the journeys they want to share, any
preferences they have.
• SA: Is that the only way that this information will get into the system?
• Di: No, it could also be transferred in from the national web-server.
• SA: How will this information be used?
• Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will be
used to produce a management report for the franchisee showing the number of registration
per week.
13
Find actors and use cases .. Case study
• Now ask the three questions about actors:
– “who are the people who will use this system to enter information?”
– “who are the people who will use this system as recipients of
information?”
– “what are the other systems that this system will interact with?”
14
Find actors.. Case study
• SA: So you’re saying that car sharers will be able to register by telephoning the office
and speaking to someone there who will enter their details into the system.
• Di: Yes, either the franchisee or more likely one of the office staff will take the call and
enter the details into the computer.
• SA: who are the office staff?
• Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in
the administration of the system.
• SA: what will they be entering?
• Di: The person’s name and address, details of the journeys they want to share, any
preferences they have.
• SA: Is that the only way that this information will get into the system?
• Di: No, it could also be transferred in from the national web-server.
• SA: How will this information be used?
• Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will
be used to produce a management report for the franchisee showing the number of
registration per week.
15
Find Use Cases .. Case study
• SA: So you’re saying that car sharers will be able to register by telephoning the office
and speaking to someone there who will enter their details into the system.
• Di: Yes, either the franchisee or more likely one of the office staff will take the call and
enter the details into the computer.
• SA: who are the office staff?
• Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in
the administration of the system.
• SA: what will they be entering?
• Di: The person’s name and address, details of the journeys they want to share, any
preferences they have.
• SA: Is that the only way that this information will get into the system?
• Di: No, it could also be transferred in from the national web-server.
• SA: How will this information be used?
• Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will
be used to produce a management report for the franchisee showing the number of
registration per week.
16
Draw use case diagram..
17
Match car
sharers
Manually add
car sharer
Transfer car
sharer from
web-server
Office Staff
Web-server
Produce
performance
report
Franchisee
Course Registration Example
• At the beginning of each semester students may request a course catalogue
containing a list of course offerings for the semester. Information about each
course, such as professor, department, and prerequisites will be included to
help students make informed decisions.
• The new system will allow students to select four course offerings for the
coming semester. In addition, each student will indicate two alternative
choices in case a course offering becomes filled or canceled. No course
offering will have more than ten students. No course offering will have fewer
than three students. A course offering with fewer than three students will be
canceled. Once the registration process is completed for a student, the
registration system sends information to the billing system so the student can
be billed for the semester.
• Professors must be able to access the on-line system to indicate which courses
they will be teaching. They will also need to see which students signed up for
their course offerings.
• For each semester, there is a period of time that students can change their
schedule. Students must be able to access the system during this time to add
or drop courses.
Actors ..
• The actors are
– Student
– Professor
– Billing System
– Registrar
Use Cases
• Student
– Register for courses
• Registrar
– Maintain course information, Maintain student information,
Maintain professor information, Generate catalogue
• Professor
– Request course roster, Select courses to teach
Use Case Diagram
Student
Register for Courses
Request Course Roster
Select Courses to Teach
Professor
Maintain Student Info
Maintain
Professor Info Maintain Course Info
Generate Catalogue
Registrar
Use cases descriptions
• After the derivation of use case model, each use case is elaborated by
adding detail of interaction between the user and software system.
• An elaborated use case has the following components
Example
The delete information use case is elaborated
as follows
Example
• Use Case Name: Delete Information
• Priority: 3
• Actors: User
• Summary: Deleting information allow the user to
permanently remove information from the system. Deleting
information is only possible when the information has not
been used in the system
• Preconditions: information was previously saved to the
system and a user needs to permanently delete the
information
Example (Cont…)
• Post-conditions: The information is no longer available anywhere
in the system
• Uses: Record Transactions, Cancel Action
• Extends: None
• Normal Course of Events:
1. The use case start when user wants to delete some information
2. The user selects the information he wants to delete and directs the
system to delete the information. (Exception 1,2)
3. The system responds by asking to confirm deleting information.
4. The user confirm the deletion
5. Alternative path: Cancel Action
6. The system responds by deleting information and notifying the user
that information was deleted from system
7. The use case ends
Example (Cont…)
• Alternative Path: the user does not confirm Deletion
– If the user does not confirm deletion the information does
not delete
– Uses: Cancel Action
• Exceptions:
– The system will not allow a user to delete information that
is being used in the system
– The system will not allow user to delete another user
information
Example
• Describe in detail the ‘Check out an item for a borrower’ use
case as performed by the checkout clerks at the circulation
desk of a library
06 RE_use case diagm1.ppt

More Related Content

Similar to 06 RE_use case diagm1.ppt

Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
FLYMAN TECHNOLOGY LIMITED
 
Online e-voting
Online e-votingOnline e-voting
Online e-voting
aeioou
 
Requirements Engineering Processes in Software Engineering SE6
Requirements Engineering Processes in Software Engineering SE6Requirements Engineering Processes in Software Engineering SE6
Requirements Engineering Processes in Software Engineering SE6
koolkampus
 

Similar to 06 RE_use case diagm1.ppt (20)

Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
online auction system.pdf
online auction system.pdfonline auction system.pdf
online auction system.pdf
 
Structure system analysis and design method -SSADM
Structure system analysis and design method -SSADMStructure system analysis and design method -SSADM
Structure system analysis and design method -SSADM
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
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
 
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
 
Online e-voting
Online e-votingOnline e-voting
Online e-voting
 
Online Hotel Reservation System PPT
Online Hotel Reservation System PPTOnline Hotel Reservation System PPT
Online Hotel Reservation System PPT
 
SE_Lec 03_Requirements Analysis and Specification
SE_Lec 03_Requirements Analysis and SpecificationSE_Lec 03_Requirements Analysis and Specification
SE_Lec 03_Requirements Analysis and Specification
 
Requirements Engineering Processes in Software Engineering SE6
Requirements Engineering Processes in Software Engineering SE6Requirements Engineering Processes in Software Engineering SE6
Requirements Engineering Processes in Software Engineering SE6
 
YU E-voting for students council elections
YU E-voting for students council electionsYU E-voting for students council elections
YU E-voting for students council elections
 
proposal presentation
proposal presentationproposal presentation
proposal presentation
 
Learning Management System
Learning Management SystemLearning Management System
Learning Management System
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
 
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
 

Recently uploaded

Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
drjose256
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
rahulmanepalli02
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 

Recently uploaded (20)

Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Interfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdfInterfacing Analog to Digital Data Converters ee3404.pdf
Interfacing Analog to Digital Data Converters ee3404.pdf
 
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Raashid final report on Embedded Systems
Raashid final report on Embedded SystemsRaashid final report on Embedded Systems
Raashid final report on Embedded Systems
 
Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...Developing a smart system for infant incubators using the internet of things ...
Developing a smart system for infant incubators using the internet of things ...
 
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
Tembisa Central Terminating Pills +27838792658 PHOMOLONG Top Abortion Pills F...
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 

06 RE_use case diagm1.ppt

  • 2. Use case diagram • Describes the relationship between the system being modelled and the outside world • Models the system behaviours in a graphic view
  • 3. Main Components • Actors – Users of the system, e.g. Student – Surroundings of the system, e.g. Billing System – Anything that is external to the system and interacts with it • Use cases – Major functions (top level) • Relationships – Between actors and use cases
  • 4. Actors • Actors are NOT part of the system – User – Other system – Sensor • Actors interact with the system – Input information to the system – Receive information from the system – Both UML notation of actor (A matchstick man)
  • 5. Identifying actors • Actors can be found in – In the requirement statements, – In problem statements, – Though conversations with customers • Who will use the system? • Who will supply information? • Who will support the system? • Who will maintain the system? • Any external resource? • Interact with other systems? • …
  • 6. Use cases • Functionality that is provided by the system • Dialogue between actors and system • Formal definition: – A use case is a sequence of transactions performed by a system that yields a measurable result of values for a particular actor UML notation of use case, (balloon shape)
  • 7. Use case description • Use case also needs documentation – States the purpose of the use case in a few sentences – Provides a high-level definition of the functionality • For example: – Register for courses: This use case is started by student. It provides the capability to create, modify, and/or review a student schedule for a semester • Scenario based approach usually
  • 8. Use case relationship • Show the relationship between: – An actor and an use case – An use case and another use case • The relationship represents communication • Navigation direction – Who is initialling the communication – May be both directions UML notation of a use case relationship (an arrow)
  • 10. Use case relationships • We can have relationships between two or more use cases. • Such relationships indicates that some function is re- using another function • Several types of re-use relationship, but main are: – Includes – Extends
  • 11. << include >> Include Relationship Represents the inclusion of the functionality of one use case within another Arrow is drawn from the base use case to the used use case
  • 12. << extend >> Extend relationship Represents the extension of the use case to include optional functionality Arrow is drawn from the extension use case to the base use case Write << extend >> above arrowhead line
  • 13. Case study . Car sharing system • System Analyst (SA): So you’re saying that car sharers will be able to register by telephoning the office and speaking to someone there who will enter their details into the system. • Director (Di): Yes, either the franchisee or more likely one of the office staff will take the call and enter the details into the computer. • SA: who are the office staff? • Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in the administration of the system. • SA: what will they be entering? • Di: The person’s name and address, details of the journeys they want to share, any preferences they have. • SA: Is that the only way that this information will get into the system? • Di: No, it could also be transferred in from the national web-server. • SA: How will this information be used? • Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will be used to produce a management report for the franchisee showing the number of registration per week. 13
  • 14. Find actors and use cases .. Case study • Now ask the three questions about actors: – “who are the people who will use this system to enter information?” – “who are the people who will use this system as recipients of information?” – “what are the other systems that this system will interact with?” 14
  • 15. Find actors.. Case study • SA: So you’re saying that car sharers will be able to register by telephoning the office and speaking to someone there who will enter their details into the system. • Di: Yes, either the franchisee or more likely one of the office staff will take the call and enter the details into the computer. • SA: who are the office staff? • Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in the administration of the system. • SA: what will they be entering? • Di: The person’s name and address, details of the journeys they want to share, any preferences they have. • SA: Is that the only way that this information will get into the system? • Di: No, it could also be transferred in from the national web-server. • SA: How will this information be used? • Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will be used to produce a management report for the franchisee showing the number of registration per week. 15
  • 16. Find Use Cases .. Case study • SA: So you’re saying that car sharers will be able to register by telephoning the office and speaking to someone there who will enter their details into the system. • Di: Yes, either the franchisee or more likely one of the office staff will take the call and enter the details into the computer. • SA: who are the office staff? • Di: Well, there’s one or two clerks, a receptionist and a supervisor. They all have role in the administration of the system. • SA: what will they be entering? • Di: The person’s name and address, details of the journeys they want to share, any preferences they have. • SA: Is that the only way that this information will get into the system? • Di: No, it could also be transferred in from the national web-server. • SA: How will this information be used? • Di: Two ways. Firstly, it will used to match up potential car sharers, and secondly, it will be used to produce a management report for the franchisee showing the number of registration per week. 16
  • 17. Draw use case diagram.. 17 Match car sharers Manually add car sharer Transfer car sharer from web-server Office Staff Web-server Produce performance report Franchisee
  • 18. Course Registration Example • At the beginning of each semester students may request a course catalogue containing a list of course offerings for the semester. Information about each course, such as professor, department, and prerequisites will be included to help students make informed decisions. • The new system will allow students to select four course offerings for the coming semester. In addition, each student will indicate two alternative choices in case a course offering becomes filled or canceled. No course offering will have more than ten students. No course offering will have fewer than three students. A course offering with fewer than three students will be canceled. Once the registration process is completed for a student, the registration system sends information to the billing system so the student can be billed for the semester. • Professors must be able to access the on-line system to indicate which courses they will be teaching. They will also need to see which students signed up for their course offerings. • For each semester, there is a period of time that students can change their schedule. Students must be able to access the system during this time to add or drop courses.
  • 19. Actors .. • The actors are – Student – Professor – Billing System – Registrar
  • 20. Use Cases • Student – Register for courses • Registrar – Maintain course information, Maintain student information, Maintain professor information, Generate catalogue • Professor – Request course roster, Select courses to teach
  • 21. Use Case Diagram Student Register for Courses Request Course Roster Select Courses to Teach Professor Maintain Student Info Maintain Professor Info Maintain Course Info Generate Catalogue Registrar
  • 22. Use cases descriptions • After the derivation of use case model, each use case is elaborated by adding detail of interaction between the user and software system. • An elaborated use case has the following components
  • 23. Example The delete information use case is elaborated as follows
  • 24. Example • Use Case Name: Delete Information • Priority: 3 • Actors: User • Summary: Deleting information allow the user to permanently remove information from the system. Deleting information is only possible when the information has not been used in the system • Preconditions: information was previously saved to the system and a user needs to permanently delete the information
  • 25. Example (Cont…) • Post-conditions: The information is no longer available anywhere in the system • Uses: Record Transactions, Cancel Action • Extends: None • Normal Course of Events: 1. The use case start when user wants to delete some information 2. The user selects the information he wants to delete and directs the system to delete the information. (Exception 1,2) 3. The system responds by asking to confirm deleting information. 4. The user confirm the deletion 5. Alternative path: Cancel Action 6. The system responds by deleting information and notifying the user that information was deleted from system 7. The use case ends
  • 26. Example (Cont…) • Alternative Path: the user does not confirm Deletion – If the user does not confirm deletion the information does not delete – Uses: Cancel Action • Exceptions: – The system will not allow a user to delete information that is being used in the system – The system will not allow user to delete another user information
  • 27.
  • 28. Example • Describe in detail the ‘Check out an item for a borrower’ use case as performed by the checkout clerks at the circulation desk of a library

Editor's Notes

  1. 3
  2. 4
  3. 5
  4. 6
  5. 7
  6. 8
  7. Primary Actors: The Actor(s) using the system to achieve a goal. The Use Case documents the interactions between the system and the actors to achieve the goal of the primary actor.   Secondary Actors: Actors that the system needs assistance from to achieve the primary actor’s goal.