Use cases Use-cases are a scenario based technique in the UML which identify the actors in an interaction and which describe the interaction itself A set.

Slides:



Advertisements
Similar presentations
Use Case Diagrams.
Advertisements

Use Case Diagrams Damian Gordon.
CPSC 333: Foundations of Software EngineeringJ. Denzinger 2.2. Use Cases: Scenario based requirements modeling Recommended: Booch, Rumbaugh, Jacobson:
Use Case & Use Case Diagram
Presentation material is based on notes from Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 1 ECE.
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 4, Requirements Elicitation.
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
Object-Oriented Analysis and Design
Use Case Modeling CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons, Inc. Copyright.
Muhammad Usman, Assistant Professor
CSC 301H, Introduction to Software Engineering Fall 2009 TA Golnaz Elahi
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
Jan Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box Actors.
Chapter 15: System Modeling with UML
Documenting Requirements using Use Case Diagrams
Use Case Modelling.
Use Cases Chapter 4. After Scenarios Find all the use cases in the scenario that specifies all possible instances of how to report a fire –Ex: “Report.
1 Real-time requirements  Intro to Software Engineering  Software Development Process Models  Formal methods in software specification  Structured.
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 4, Requirements Elicitation: Functional Modeling.
Chapter 3 Object-Oriented Analysis of Library Management System(LMS)
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 1 Functional Modeling.
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
Managing Changing Requirements: Structure the Use Case Model PowerPoint Presentation derived from IBM/Rational course Mastering Requirements Management.
Systems Analysis and Design in a Changing World, 6th Edition
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 4, Requirements Elicitation: Functional Modeling.
1 IBM Software Group ® Mastering Requirements Management with Use Cases Module 10: Structure the Use-Case Model.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 4, Requirements Elicitation: Functional Modeling.
Key Takeaway Points A use case is a business process; it begins with an actor, ends with the actor, and accomplishes a business task for the actor. Use.
Using UML, Patterns, and Java Object-Oriented Software Engineering Functional Modeling.
Faculty of Computer & Information Software Engineering Third year
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 4, Requirements Elicitation: Functional Modeling.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
1 אירוע אמאזון. 2 שלבי הפיתוח עם דיאגרמות UML 3 אמאזון תרשים תוכן.
Faculty of Applied Engineering and Urban Planning Software Engineering Department Software Engineering Lab Use Cases Faculty of Information system Technology.
Systems Analysis and Design in a Changing World, 6th Edition
Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 4, Requirements Elicitation: Functional Modeling.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
Unified Modeling Language User Guide Section 4 - Basic Behavioral Modeling Chapter 16 - Use Cases Chapter 17 - Use Case Diagrams.
Scenario A scenario is a sequence of steps describing an interaction between a user and a system. Use case is a set of scenarios tied together by a common.
22 August, 2007Information System Design IT60105, Autumn 2007 Information System Design IT60105 Lecture 8 Use Case Diagrams.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
بسم الله الرحمن الرحيم اللهم صلي علي احمد السجايا محمد الخصال شفيع البرايا سليم النوايا صادق الاقوال.
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
Use Case Diagrams. Introduction In the previous Lecture, you saw a brief review of the nine UML diagrams. Now that you have the clear, you'll start to.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Page 1  Copyright © 1997 by Rational Software Corporation Putting the UML to Work The ESU University wants to computerize their registration system –
1 After the scenarios are formulated Find all the use cases in the scenario Describe each of these use cases in more detail Participating actors Describe.
Embedded Systems Software Engineering
Using Use Case Diagrams
UML Diagrams: Class Diagrams The Static Analysis Model
Use Case Modeling - II Lecture # 27.
Systems Analysis and Design in a Changing World, 6th Edition
Functional Modeling.
Chapter 4, Requirements Elicitation: Functional Modeling
Use case Diagram.
Chapter 4, Requirements Elicitation: Functional Modeling
Functional Modeling.
Start at 17th March 2012 end at 31th March 2012
تحلیل و طراحی سیستم‌های شی گرا
Chapter 4, Requirements Elicitation: Functional Modeling
Chapter 4, Requirements Elicitation: Functional Modeling
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Systems Analysis and Design in a Changing World, 6th Edition
Object Oriented Analysis and Design
Chapter 4, Requirements Elicitation: Functional Modeling
Chapter 4, Requirements Elicitation: Functional Modeling
Using Use Case Diagrams
Chapter 4, Requirements Elicitation: Functional Modeling
Chapter 4, Requirements Elicitation: Functional Modeling
Presentation transcript:

Use cases Use-cases are a scenario based technique in the UML which identify the actors in an interaction and which describe the interaction itself A set of use cases should describe all possible interactions with the system Sequence diagrams may be used to add detail to use-cases by showing the sequence of event processing in the system Each use case represents a set of scenarios An actor is something outside of the system to be developed. Computer Science Dept. Fall 2003

Lending use-case Computer Science Dept. Fall 2003

Library use-cases Computer Science Dept. Fall 2003

Sequence diagram shows detail: Catalogue management Computer Science Dept. Fall 2003

Another Library Use Case Diagram A computerized library system for a university keeps track of all books and periodicals in the library and their check-out status. Checkout and return are automated through a bar code reader (an external device). The library system also interfaces with an external relational database which stores information about the library users (students, faculty, and staff), including whether they have any library items checked out. . Library users can access the catalog and recall books and periodicals. Library employees have the same access as well as additional capabilities (e.g., listing the status of an item). (Note: the library catalog is part of the library computer system so it is not shown as an actor.) Computer Science Dept. Fall 2003

Use Case for Employee Login Employee initiates use case by entering user name System prompts for password If password is valid, employee is logged on and now has access to employee commands Starting and Ending Conditions? Exceptions? e.g., cannot find the employee login Computer Science Dept. Fall 2003

Use Case for Check book availability User/Employee initiates use case by selecting the check book availability option System prompts for choice of search by title, author, or call number User makes selection and enters title, author or call number System performs search through the library catalog database If a match is found, system displays item status (not checked out, checked out and due date, overdue) Starting and Ending Conditions? Exceptions? Computer Science Dept. Fall 2003

Use Case Associations Use case association = relationship between use cases Important types: Extends A use case extends another use case Include A use case uses another use case (“functional decomposition”) Generalization An abstract use case has different specializations Computer Science Dept. Fall 2003

<<Include>>: Functional Decomposition Problem: A function in the original problem statement is too complex to be solvable immediately Solution: Describe the function as the aggregation of a set of simpler functions. The associated use case is decomposed into smaller use cases CreateDocument <<include>> <<include>> <<include>> OCR Check Computer Science Dept. Fall 2003 Scan

<<Include>>: Reuse of Existing Functionality Problem: There are already existing functions. How can we reuse them? Solution: The include association from Use Case A to Use Case B indicates that an instance of A performs all the behavior described in B (“A delegates to B”) Example: The use case “ViewMap” describes behavior that can be used by the use case “OpenIncident” (“ViewMap” is factored out) Note: The base case cannot exist alone. It is always called with the supplier use case <<include>> OpenIncident Base Use Case ViewMap <<include>> Supplier Use Case Computer Science Dept. Fall 2003 AllocateResources

Home Automation example – factor out common functionality Computer Science Dept. Fall 2003

Another Home Automation example – factor out common functionality Computer Science Dept. Fall 2003

<<Extend>> Association for Use Cases Problem: The functionality in the original problem statement needs to be extended. Solution: An extend association from Use Case B to Use Case A indicates that B is an extension of A. Example: The use case “ReportEmergency” is complete by itself , but can be extended by the use case “Help” for a specific scenario in which the user requires help Note: In an extend association, the base use case can be executed without the use case extension Base Use Case B Help FieldOfficer A <<extend>> Computer Science Dept. Fall 2003 ReportEmergency

Home Automation example Computer Science Dept. Fall 2003

Generalization association in use cases Problem: You have common behavior among use cases and want to factor this out. Solution: The generalization association among use cases factors out common behavior. The child use cases inherit the behavior and meaning of the parent use case and add or override some behavior. Example: Consider the use case “ValidateUser”, responsible for verifying the identity of the user. The customer might require two realizations: “CheckPassword” and “CheckFingerprint” CheckPassword Parent Case Child Use Case ValidateUser Computer Science Dept. Fall 2003 CheckFingerprint

Example using <extend> Computer Science Dept. Fall 2003

Simplified with an abstract use case Computer Science Dept. Fall 2003