Use Case Modeling. Use case diagram For each use case we develop  Object class diagram (with attributes only)  System sequence diagram (analysis) 

Slides:



Advertisements
Similar presentations
Chapter 4: Requirements Engineering
Advertisements

Use-Cases.
Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
Use Case Diagrams Damian Gordon.
Use Case & Use Case Diagram
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
USE CASE – ATM EXAMPLE Actors: ATM Customer ATM Operator Use Cases: The customer can withdraw funds from a checking or savings account query the balance.
CPSC 333: Foundations of Software EngineeringJ. Denzinger Small Test: Bank account manager System has to run on an automated teller machine. User must.
Introduction to Software Testing Chapter 2.6 Graph Coverage for Use Cases Paul Ammann & Jeff Offutt
Lecture 8 Electronic Commerce Modelling Techniques
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
ATM User Interface V3. I/O Devices Input: Keyboardfor input, option select Keyboardfor input, option select Or Touch screen Or Touch screenOutput: Screenfor.
Sequence Diagrams. Introduction A Sequence diagram depicts the sequence of actions that occur in a system. The invocation of methods in each object, and.
CS3773 Software Engineering Lecture 03 UML Use Cases.
1 Chapter 4 Dynamic Modeling and Analysis (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Tutorial 2. What is a UML Use Case Diagram? Use case diagrams model the functionality of a system using actors and use cases. Use cases are services or.
Interaction Diagrams Activity Diagram State Machine Diagram
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
Use Cases & Requirements Analysis By: Mostafa Elbarbary.
{ How to Use An ATM A simple tutorial to teach how to use ATM Machines.
1 Lab Beginning Analysis and Design 4 Completion of first version of use case diagram initiates the processes of analysis and design. 4 UML provides.
INTERACTION DIAGRAMS Example Kingdom of Saudi Arabia Ministry of Higher Education Princess Noura bint Abdulrahman University College of Computer & Information.
Use Cases 2 ENGR ♯10 Peter Andreae
E-Learning Material Web Application Design 2. Web Application Design Use cases Guidelines Exceptions Interaction Sequence diagrams Finding objects.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
Rational Unified Process (Part 1) CS3300 Fall 2015.
Software Waterfall Life Cycle Requirements Construction Design Testing Delivery and Installation Operations and Maintenance Concept Exploration Prototype.
Developing Use Cases in a Group Carolyn L. Cukierman Face-to-Face Technology Conference March 27, 2000.
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
Requirements Management with Use Cases Module 2: Introduction to RMUC Requirements Management with Use Cases Module 2: Introduction to RMUC.
1 Object-Oriented Analysis Use Case Driven. 2 The outline method for OOA 1.Identify object classes within the problem domain 2.Define the behaviour of.
Faculty of Computer & Information Software Engineering Third year
UML basics UML distilled, a brief guide to the standard Modeling language, by Martin Fowler, 2000.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 20. Review Software Requirements Requirements Engineering Process.
USE CASE Bayu Adhi Tama, MTI Faculty of Computer Science, University of Sriwijaya Slides are adapted from Petrus Mursanto
Faculty of Computer & Information
Behavioral Modeling: Sequence and Communication Diagrams Copyright © 2009 John Wiley & Sons, Inc. Copyright © 2005 Pearson Education Copyright © 2009 Kannan.
1 Objectives  Define key concepts of use-case modeling.  List the benefits of use-case modeling.  Find actors and use cases.  Describe their relationships.
1 System Analysis and Design Using UML INSTRUCTOR: Jesmin Akhter Lecturer, IIT, JU.
Information Systems Engineering Interaction Diagrams: Sequence Diagram Collbortion Diagram.
Business Analysis with For PG MDI, Gurgaon Kamna Malik, Ph.D.
1 Graph Coverage (6). Reading Assignment P. Ammann and J. Offutt “Introduction to Software Testing” ◦ Section
ATM Adv. SW Engineering
Requirements specification Why is this the first major stage of software development? –Need to understand what customer wants first Goal of requirements.
CS212: Object Oriented Analysis and Design Lecture 32: Use case and Class 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.
1 LAB What is Collaboration diagram? 4 Collaboration diagrams illustrate the interaction between the objects, using static spatial structure. 4.
Understanding Requirements
UML (Unified Modeling Language)
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 –
Chapter 3: Software Design –Use case Diagram Nouf Alghanmi.
UC Diagram & Scenario RKPL C & D. Using Use Case Diagram Use case diagrams are used to visualize, specify, construct, and document the (intended) behavior.
Software Engineering USE CASE DIAGRAM.
1 Case Study and Use Cases for Case Study Lecture # 28.
Using Use Case Diagrams
Use Case Modeling - II Lecture # 27.
ATM OO Design and Implementation Case Study
Dynamic Modeling of Banking System Case Study - I
Object-Oriented Static Modeling of the Banking System - I
Exercices & Corrections Week 3
UML Use Case Diagrams.
Unified Modeling Language
SAD ::: Spring 2018 Sabbir Muhammad Saleh
Object Oriented Analysis and Design
Use Cases 1.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Using Use Case Diagrams
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Presentation transcript:

Use Case Modeling

Use case diagram For each use case we develop  Object class diagram (with attributes only)  System sequence diagram (analysis)  Detailed sequence diagram (design)  Updated object class diagram [with both attributes and programs (methods)] Then put together object class diagrams for all use cases and have one such diagram for entire system 2

What is Use Case Modeling? use case model: a view of a system that emphasizes the behavior as it appears to outside users. A use case model partitions system functionality into transactions (‘use cases’) that are meaningful to users (‘actors’). 3

Use Case Modeling: Core Elements 4

5 Use Case Modeling: Core Relationships > 5

Use Case Modeling: Core Relationships (cont’d) > 6

Use cases help… · Capture the system's functional requirements from the users' perspective · Actively involve users in the requirements-gathering process · Provide the basis for identifying major classes and their relationships · Serve as the foundation for developing system test cases 7

Use Case Diagrams  Actor  Line: actor communicates with or is associated with use-case Use Case Modeling (cont’d) 8

Use Case relationships:  >: one use case always involves the steps of another  >: under certain conditions, a use case follows a variant 9

Goals of Use Cases Interactions that provide value to actors No implementation specific language  No assumptions about how the use case may be realized in code or user-interface  Note: use-cases drive the whole life-cycle, and they get refined – implementation specific use-cases User-appropriate level of detail  General at requirements gathering stage User-appropriate volume  Large systems: no more than use cases  Small number of use cases – forces abstraction 10

ACTOR: What is an actor? An actor is some one or something that must interact with the system under development UML notation for actor is stickman, shown below. Customer Manager Cashier 11

USE CASE: USE CASE documentation example: The following use case describes the process of opening a new account in the bank. Use case: Open new account Actors: Customer, Cashier, Manager Purpose: Like to have new saving account. Description: A customer arrives in the bank to open the new account. Customer requests for the new account form, fill the same and submits, along with the minimal deposit. At the end of complete successful process customer receives the passbook. Type: Primary use case. 12

OOAD --- USE CASE driven Capture,clarify & validate use cases AnalysisDesign & Implementation Implement use cases Use cases make up the glue Test Verify that use cases are satisfied 13

USE CASE Diagram: Use case diagram for the shown functionality. Balance status report Withdraw cash Validation uses Customer Clerk Manager extends ATM 14

Flow of Events: A flow of events document is created for each use case. Details about what the system must provide to the actor when the use is executed. Typical contents  How the use case starts and ends  Normal flow of events  Alternate flow of events  Exceptional flow of events Typical Course of Events has: Actor Action(AA) System Response(SR) 15

Normal Flow of Events: For withdrawal of cash: 1.(SR) The ATM asks the user to insert a card. 2.(AA) The user inserts a cash card. 3.(SR) The ATM accepts the card and reads its serial number. 4.(SR) The ATM requests the password. 5.(AA) The user enters (SR) The ATM verifies the serial number and password with the bank and gets the notification accordingly. 7.(SA)The ATM asks the user to select the kind of transaction. 8.(AA)User selects the withdrawal. 16

Normal Flow of Events: Contd... 9.(SR)The ATM asks for the amount of cash; user enters $(s). 10.(SR)The ATM verifies that the amount of cash is within predefined policy limits and asks the bank, to process the transaction which eventually confirms success and returns the new account balance. 11.(SR) The ATM dispenses cash and asks the user to take it. 12.(AA) The user takes the cash. 13.(SR) The ATM asks whether the user wants to continue. 14.(AA) The user indicates no. 17

Normal Flow of Events: Contd (SR) The ATM prints a receipt, ejects the card and asks the user to take them 16.(AA) The user takes the receipt and the card. 17.(SR) The ATM asks a user to insert a card. 18

Alternative Flow of Events: For withdrawal of cash use case: 9. The ATM asks for the amount of cash; the user has change of mind and hits the “cancel”. 19

Exceptional Flow of Events: For withdrawal of cash use case: 3. Suspicious pattern of usage on the card. 10. The machine is out of cash. 11. Money gets stuck in the machine. 20

: Customer:ATM:Bank Request password Verify account Enter the password Account o.k. Request option Enter option Request amount Enter the amount Update transaction Transaction commit Insert card Dispense cash Request take cash Take cash Request continuation Terminate Print receipt,eject card Request take card Take card Display main screen and prompt for the card. : Transaction Create Transaction complete Sequence Diagram [for withdrawal of cash, normal flow] 21

Collaboration Diagram [for withdrawal of cash, normal flow] 1. Insert card Enter password, Enter kind Enter amount, Take cash, Take card cancel,Terminate, Continue Display main screen unreadable card message, request password, request kind, request amount, canceled message, eject card, failure message, dispense cash, request take cash request continuation, print receipt, request take card bad account message, bad bank account message Verify account, process transaction Transaction succeed Transaction failed account o.k. bad account, bad password, bad bank code Create Transaction Transaction complete CUSTOMER BANK ATM TRANSACTION 22

Class Diagram [for withdrawal of cash, normal flow] Customer Transaction 1 0..* 1 ATMSystem 1..* Bank[Branch] 1 1..*

Component Diagram [for withdrawal of cash] policy.dll Branch Bank.dllcustomer.dll ATM.exe Branch Bank.exe Bank Server.exe 24