IS0514Slide 1 IS0514 Lecture Week 4 Use Case Modelling (2)

Slides:



Advertisements
Similar presentations
IS514 Lecture Week 9 CRC Cards.
Advertisements

© 2010 Bennett, McRobb and Farmer1 Use Case Description Supplementary material to support Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
Use Case Modeling SJTU. Unified Modeling Language (UML) l Standardized notation for object-oriented development l Needs to be used with an analysis and.
IS514Slide 1 IS514 Lecture Week 7 Class Diagrams II.
Objectives Detailed Object-Oriented Requirements Definitions
CS3773 Software Engineering Lecture 03 UML Use Cases.
Use Case modelling 3 How to go from a diagram to a further definition.
Using UML, Patterns, and Java Object-Oriented Software Engineering Chapter 5, Analysis: Dynamic Modeling.
Use Case modelling How to go from a diagram to a further definition.
WEEK 4 Material Lecture 4a (Wed.). Use Cases/Actors o What is a use case ? l A sequence of actions performed by a system that yields an observable result.
Use Case Analysis Chapter 6.
1 CS 425 Software Engineering Project Preparation Use Case Modeling [Based on Chapters 3 & 4, Arlow and Neustadt, “UML and the Unified Process,” Addison-Wesley,
Use cases and requirement specification - 1 Use case diagrams 3 use cases System boundaries Remember: Use case diagramming is a tool, not the requirements.
COMP1007 Intro to Systems Requirements © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Intro to System Requirements Lecture 2 Use-Cases.
IMS1805 Systems Analysis Topic 3: Doing Analysis (continued from previous weeks)
University of Toronto Department of Computer Science © Steve Easterbrook. This presentation is available free for non-commercial use with attribution.
Requirements Analysis 4. 1 Use Case I b504.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis Use-Cases.
171 Use Case Descriptions Chapter 4 – Facade Iteration Initial Requirements (Inception Phase)
Use Cases.
Requirements Analysis Activity Diagrams b511.ppt © Copyright De Montfort University 2000 All Rights Reserved INFO2005 Requirements Analysis.
03/12/2001 © Bennett, McRobb and Farmer Use Case Diagrams Based on Chapter 6 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and.
COMP1007 Intro to Requirements Analysis © Copyright De Montfort University 2002 All Rights Reserved COMP1007 Introduction to Requirements Analysis Lecture.
IS0514 Lecture Week 3 Use Case Modelling.
USE Case Model.
Objects What are Objects Observations
IS0514Slide 1 IS0517 Lecture Week 8 Class Diagrams III.
Use Case What is it?. Basic Definition Of who can do what within a system? TemplateDiagramModelDescription.
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Use Cases Descriptions and Use Case Models.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 4: Detailing a Use Case.
IS0514 Lecture - Week 2 Best Practice Development Methodology.
SOEN 6011 Software Engineering Processes Section SS Fall 2007 Dr Greg Butler
IS0514Slide 1 IS0514 Lecture Week 5 Introduction to Object Orientation.
Intro: Use Case and Use Case Diagram Documentation.
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
UML The Unified Modeling Language A Practical Introduction Al-Ayham Saleh Aleppo University
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Chapter 7 Applying UML and Patterns Craig Larman
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
IS0514Slide 1 IS0514 Lecture - Week 1 (Semester 2) Business Systems Development Tools and Techniques.
Submitted By: Memon Khurshed (Group Leader) Hamed Abdollahpur
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 4: Restaurant.
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
Requirements Capture. Four Steps of requirements capture List candidate requirements Understand system context Capture functional requirements Capture.
UML-1 3. Capturing Requirements and Use Case Model.
UML-1 8. Capturing Requirements and Use Case Model.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 1: Introduction to Use-Case Modeling.
1 Structuring Systems Requirements Use Case Description and Diagrams.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
CS 772: Global Knowledge Networks V. “Juggy” Jagannathan CSEE, West Virginia University.
Example: object diagram for Scheduler, v What is wrong with this diagram? Seems like a lot of similarity between Task and UnplannedTask Can use.
1 Use-Case Modeling Chapter 6 Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc. Slides by Fred Niederman Edited by Solomon Negash.
1 Version /05/2004 © 2004 Robert Oshana Requirements Engineering Use cases.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Modelling Class T07 Conceptual Modelling – Behaviour References: –Conceptual Modeling of Information Systems (Chapters 11, 12, 13 and 14)
Staffordshire UNIVERSITY School of Computing Version Jan 08 original by K.Ingram & J.Westlake1 Use Case Scripts The text to describe a particular Use Case.
USE CASE Pertemuan 7 Matakuliah: Konsep object-oriented Tahun: 2009.
CSCI 383 Object-Oriented Programming & Design Lecture 7 Martin van Bommel.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 6: Functional Modeling.
George Wang, Ph.D. COMP 380/L Lesson 2. Use Case Use cases are a way to capture system functionalities (i.e., functional requirements) Based on use case.
1 Advanced DataBases Unified Modelling Language An Introduction and Use Case Lecture 2 Susan Curtis.
Use Case Analysis Chapter 6.
CompSci 280 S Introduction to Software Development
CMPE 280 Web UI Design and Development August 29 Class Meeting
Systems Analysis and Design in a Changing World, 6th Edition
Systems Analysis and Design in a Changing World, 6th Edition
Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A. Hoffer
IS0514 Lecture Week 3 Use Case Modelling.
Object-Oriented Software Engineering
Use Case Modeling Part of the unified modeling language (U M L)
Presentation transcript:

IS0514Slide 1 IS0514 Lecture Week 4 Use Case Modelling (2)

IS0514Slide 2 Today's Lecture Revision – use cases Use case scenarios What is a use case description? Use / misuse of use cases

IS0514Slide 3 Exercise 1 Issues to consider.... In groups of 3-4 spend 5 minutes discussing –What do Use Case Diagrams show you? –How do they help in understanding problems? –What is missing from Use Case Diagrams? At the end of this time please be ready to share your findings

IS0514Slide 4 Exercise 1 - Answer What do Use Case Diagrams show you? 1.Who / what uses a system 2.What high level functions are required How do they help in understanding problems? 1.Provide a high level view of required functionality 2.This enables discussion of what is required without any detail What is missing from Use Case Diagrams? 1.The detailed requirements 2.How processes work

IS0514Slide 5 Use Case Description Use Case Description is –A detailed description of a use case –Will be text Typically in the form of a use case template (more later) –Can include: Models -Activity diagrams (next year) User interface designs (next year) Other documents that help describe what happens in a use case (next year) Describes what is required to satisfy the use case

IS0514Slide 6 Use Case Modeling One Approach Develop Scenarios Develop Use Case Diagram Develop Use Cases (Descriptions) Scenarios are different paths through a use case This is the process suggested by the unified process

IS0514Slide 7 Use Case Modeling Identify actors Identify use cases Link actors to use cases Show the system boundary Identify relationships between use cases Consider scenarios Write use case descriptions Validate with stakeholders

IS0514Slide 8 Scenarios Unfortunately this is a widely used and often ambiguous term –You will come across the term scenario to mean a domain description –Sometimes it is synonymous with use case In UML the term scenario refers to a single path through a use case A use case usually has several associated scenarios (although it can have only one)

IS0514Slide 9 Identifying Scenarios Consider all the possibilities in the use case Identify the normal (primary) scenario associated with the use case –What typically happens –Ignore any complications Identify the exceptions to the normal action:- –Alternative scenarios Things that could happen –Exceptional scenarios Things that could be considered errors that need to be caught Each scenario should be presented as a series of simple numbered steps in text format

IS0514Slide 10 Simple Scenario – Make Tea Normal Scenario: 1.Switch on kettle to boil water. [A1: Kettle empty] 2.Place tea bag and milk in mug. 3.When kettle has boiled pour boiling water into mug. 4.Let tea brew and then remove tea bag and put tea bag in the bin. Alternative Scenarios: A1. Kettle empty 1.Fill Kettle with water. 2.Use case continues from step 1. Exceptional Scenarios: E1. No milk 1.Sorry, have tea without milk. 2.Use case terminates. What other scenarios are there?

IS0514Slide 11 Exercise 2 – Use Case Scenarios Remember Space Invaders One use case was “move left” Identify –Normal Scenario –Alternative Scenario –Exceptional Scenarios

IS0514Slide 12 Exercise 2 - Use Case Scenarios (for the Move Left use case) Normal Scenario1.Player indicates that the base moves to left 2.The system moves the base left Alternative Scenario1.Player indicates that the base moves to left 2.A bullet arrives where the base has moved to 3.The base explodes Exceptional Scenario1.Player indicates that the base moves to left 2.The base is at the extreme left of the screen 3.The base stays where it is

IS0514Slide 13 Use Case (Description) includes : Title/Heading Summary Actors Trigger condition Primary Scenario Alternative Scenarios Exceptional Scenarios Options: –pre-conditions –post-conditions –assumptions

IS0514Slide 14 Exercise 3 Look at the example use case description “Move Left” Attempt to write a use case description “Move Right”

IS0514Slide 15 Exercise 3 - Answer Very similar to “Move Left”

IS0514Slide 16 Exercise 4 Attempt to write a use case description “Fire Laser” in your own time.

IS0514Slide 17 The use of Use Cases Use cases are used to capture functional requirements Most use case modeling will happen during the early part of a project They drive the rest of development –You build what the client wants! Used as part of planning, testing and evaluation New Use Cases will continue to emerge as project iterates

IS0514Slide 18 Possible problems with Use Case modeling Danger of building a system which is not object oriented –Avoid function decomposition i.e. developing a top-down function based system –Need other views Class Diagrams / Communication / Collaboration diagrams Danger of mistaking requirements for design –You are analysing not designing - avoid technical detail Possibility of missing requirements if too much emphasis is placed on actors Incomplete picture –Non-functional requirements –Usability requirements

IS0514Slide 19 Use Case Modelling A More Realistic Approach Develop Scenarios Develop Use Case Diagram Develop Use Case Descriptions Iterative?

IS0514Slide 20 Extracting information from Use Case modeling Candidate objects Attributes Operations Forms a basis for subsequent modeling activities To be used later in class diagrams, interaction sequence diagrams, statecharts, communication diagrams, etc.

IS0514Slide 21 This weeks reading ESSENTIAL READING Dennis A, Wixom B, and Tegarden D (2005) System Analysis and Design with UML version 2 second edition, Wiley Pages Further reading Bennett, S., McRobb, S. and Farmer, R. (2002) Object- Oriented Systems Analysis and Design using UML, 2nd Edition, McGraw-Hill Pages

IS0514Slide 22 Summary Use case diagram High level view of functional requirements Use case description Detailed view of functional requirements Use case template Use case scenarios –Normal / Alternative / Exceptional Use / misuse of use cases Next Week –Introduction to Object-Orientation