SlideShare a Scribd company logo
UML Use Cases

Systems Development
Unified Modeling Language
What is the UML?
• A language for
  – Specifying
  – Visualising
  – Constructing
  – Documenting
• Artifacts of software-intensive system
• Grady Booch, Ivar Jacobson, Jim Rumbaugh
Objective of UML
• “Provide a common vocabulary of object-
  oriented terms and diagramming techniques
  that is rich enough to model any systems
  development project from analysis through
  implementation.”

            Dennis, Wixom and Tegarden 2005
Sample of UML Diagrams
•   Use case diagram
•   Class diagram
•   Sequence diagram
•   Statechart diagram
•   Activity diagram
•   Component diagram
•   Deployment diagram
Use-Case Modelling
Key Ideas
• A use case illustrates the activities that are performed by
  users of a system.
• It identifies the Actors involved in an interaction and names
  the type of interaction.
• It illustrates the functionality of the system.
• Use cases are logical models -- they describe the activities
  of a system without specifying how the activities are
  implemented.
USE-CASE DESCRIPTIONS
UML model of functional
                   requirementsSystem
                              The


Use-Case-Model Survey        Actor 1              Use Case 1
- survey description
- list of all actors                                                  Actor 2
- list of all use cases                            Use Case 2



                                                   Use Case 3

                                                                      Actor 3




   Use Case 1 Report      Use Case 2 Report     Use Case 3 Report
   - brief description    - brief description   - brief description
   - flow of events       - flow of events      - flow of events
What are Use-Case Descriptions?
• Describe basic functions of the system
  – What the user can do
  – How the system responds
• Use cases are building blocks for continued
  design activities.
How Are Use-Cases Created?
• Two steps:
  – Write text-based case descriptions
  – Translate descriptions into diagrams
• Describes one and only one function, but may
  have multiple paths.
• Developed working with users for content.
Elements of a Use-Case Description
    Use Case                                                 Description
     Section



  Name            An appropriate name for the use case




  Brief           A brief description of the use case’s role and purpose.
  Description



  Flow of         A textual description of what the system does with regard to the use case (not how specific
  Events          problems are solved by the system). The description should be understandable to the customer.



  Special         A textual description that collects all requirements, such as non-functional requirements, on the
  Requirements    use case, that are not considered in the use-case model, but that need to be taken care of
                  during design or implementation.



  Preconditions   A textual description that defines any constraints on the system at the time the use case may
                  start.


  Post            A textual description that defines any constraints on the system at the time the use case will
  conditions      terminate.
Basic and alternate flow of events
USE-CASE DIAGRAMS
Syntax for Use-Case Diagram
The Use-Case Diagram for
  Appointment System
Use-Case Diagram with Specialized
              Actor
Extend and Include Relationships
Summary
• Use-case descriptions are the basis for further
  analysis and design.
• Use-case diagrams present a graphical
  overview of the main functionality of a
  system.
Expanding the Domain
• Additional resources regarding use-cases and
  many other object-oriented development
  topics can be found at:
• http://www.omg.org

More Related Content

Similar to 02 use cases

Use case diagram
Use case diagramUse case diagram
Use case diagram
City University
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
azida3
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
rizki adam kurniawan
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
ktuonlinenotes
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
naina-rani
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
barney92
 
Ch 14 s.e use case diagrams
Ch 14 s.e use case diagramsCh 14 s.e use case diagrams
Ch 14 s.e use case diagrams
Badar Waseer
 
Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML
6020 peaks
 
Lab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagramLab 3 Introduction to the UML - how to create a use case diagram
Lab 3 Introduction to the UML - how to create a use case diagram
Farah Ahmed
 
SELECT21.pptx
SELECT21.pptxSELECT21.pptx
SELECT21.pptx
devnasra1
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
Ahmad karawash
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
Wajahat Hasnain
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
azida3
 
Uml basics
Uml basicsUml basics
Uml basics
Naga Muruga
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
sabin kafle
 
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
snehalkulkarni74
 
Ch 2.1
Ch 2.1Ch 2.1
Ooad Overview
Ooad OverviewOoad Overview
Ooad Overview
Dang Tuan
 
Ooad overview
Ooad overviewOoad overview
Ooad overview
Dr. C.V. Suresh Babu
 
SE - Lecture 3 - Software Tools n Environment.pptx
SE - Lecture 3 - Software Tools n Environment.pptxSE - Lecture 3 - Software Tools n Environment.pptx
SE - Lecture 3 - Software Tools n Environment.pptx
TangZhiSiang
 

Similar to 02 use cases (20)

Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Presentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Ch 14 s.e use case diagrams
Ch 14 s.e use case diagramsCh 14 s.e use case diagrams
Ch 14 s.e use case diagrams
 
Modeling software with UML
Modeling software with UMLModeling software with UML
Modeling software with UML
 
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
 
SELECT21.pptx
SELECT21.pptxSELECT21.pptx
SELECT21.pptx
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
 
Uml basics
Uml basicsUml basics
Uml basics
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
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
 
Ch 2.1
Ch 2.1Ch 2.1
Ch 2.1
 
Ooad Overview
Ooad OverviewOoad Overview
Ooad Overview
 
Ooad overview
Ooad overviewOoad overview
Ooad overview
 
SE - Lecture 3 - Software Tools n Environment.pptx
SE - Lecture 3 - Software Tools n Environment.pptxSE - Lecture 3 - Software Tools n Environment.pptx
SE - Lecture 3 - Software Tools n Environment.pptx
 

02 use cases

  • 1. UML Use Cases Systems Development
  • 3. What is the UML? • A language for – Specifying – Visualising – Constructing – Documenting • Artifacts of software-intensive system • Grady Booch, Ivar Jacobson, Jim Rumbaugh
  • 4. Objective of UML • “Provide a common vocabulary of object- oriented terms and diagramming techniques that is rich enough to model any systems development project from analysis through implementation.” Dennis, Wixom and Tegarden 2005
  • 5. Sample of UML Diagrams • Use case diagram • Class diagram • Sequence diagram • Statechart diagram • Activity diagram • Component diagram • Deployment diagram
  • 7. Key Ideas • A use case illustrates the activities that are performed by users of a system. • It identifies the Actors involved in an interaction and names the type of interaction. • It illustrates the functionality of the system. • Use cases are logical models -- they describe the activities of a system without specifying how the activities are implemented.
  • 9. UML model of functional requirementsSystem The Use-Case-Model Survey Actor 1 Use Case 1 - survey description - list of all actors Actor 2 - list of all use cases Use Case 2 Use Case 3 Actor 3 Use Case 1 Report Use Case 2 Report Use Case 3 Report - brief description - brief description - brief description - flow of events - flow of events - flow of events
  • 10. What are Use-Case Descriptions? • Describe basic functions of the system – What the user can do – How the system responds • Use cases are building blocks for continued design activities.
  • 11. How Are Use-Cases Created? • Two steps: – Write text-based case descriptions – Translate descriptions into diagrams • Describes one and only one function, but may have multiple paths. • Developed working with users for content.
  • 12. Elements of a Use-Case Description Use Case Description Section Name An appropriate name for the use case Brief A brief description of the use case’s role and purpose. Description Flow of A textual description of what the system does with regard to the use case (not how specific Events problems are solved by the system). The description should be understandable to the customer. Special A textual description that collects all requirements, such as non-functional requirements, on the Requirements use case, that are not considered in the use-case model, but that need to be taken care of during design or implementation. Preconditions A textual description that defines any constraints on the system at the time the use case may start. Post A textual description that defines any constraints on the system at the time the use case will conditions terminate.
  • 13. Basic and alternate flow of events
  • 16. The Use-Case Diagram for Appointment System
  • 17. Use-Case Diagram with Specialized Actor
  • 18. Extend and Include Relationships
  • 19. Summary • Use-case descriptions are the basis for further analysis and design. • Use-case diagrams present a graphical overview of the main functionality of a system.
  • 20. Expanding the Domain • Additional resources regarding use-cases and many other object-oriented development topics can be found at: • http://www.omg.org

Editor's Notes

  1. The use-case model consists of both diagrams and text. The diagrams give a visual overview of the system. The text gives descriptions of the actors and the use cases. The most important part of the use-case model is the text. Many people get the wrong idea of the word “modeling” and believe that use cases are just about visual modeling: drawing figures and arrows. Use cases involve writing text. Drawing the pictures is only a small part of the effort. Typically, more than 75% of all effort during requirements capture is to write the textual description of what happens in each use case. The description of what happens is called the flow of events. The important part of the use-case model is the text. Too many people get the wrong idea of the word “modeling” and believe that use cases are just about drawing figures and arrows. Use cases involve writing text. Don’t stress the modeling work; instead, stress the text work. A use case without the text is useless. Typically, more than 75% of all effort during requirements capture is to write the textual description of the flow of events.