Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.

Slides:



Advertisements
Similar presentations
Week 2 The Object-Oriented Approach to Requirements
Advertisements

Design by Contract.
Karolina Muszyńska Based on:
Object-Oriented Analysis and Design
Object-Oriented Analysis
January Ron McFadyen1 Use Cases in the UML Functionality under consideration is represented by use cases (named ellipses) enclosed in a box.
Use-case Modeling.
Systems Analysis and Design in a Changing World, Fourth Edition
© 2005 Prentice Hall8-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
© 2005 Prentice Hall4-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
Systems Analysis and Design in a Changing World, 6th Edition
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
Systems Analysis and Design in a Changing World, 6th Edition
Detailed Object-Oriented Requirements Definitions
Object-Oriented Analysis and Design
Chapter 7: The Object-Oriented Approach to Requirements
INFO 620Lecture #51 Information Systems Analysis and Design Sequence and Collaboration Diagrams INFO 620 Glenn Booker.
State Diagrams / System Sequence Diagrams (SSDs)
Detailed Object-Oriented Requirements Definitions
Systems Analysis and Design in a Changing World, 6th Edition
SA Capstone Requirements and Design Week 5 SYST Winter 2014
Interaction Modeling. Introduction (1) Third leg of the modeling tripod. It describes interaction within a system. The class model describes the objects.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
Objectives Detailed Object-Oriented Requirements Definitions
The Object-Oriented Approach to Requirements
4 2009/10 Object Oriented Technology 1 Topic 4: The Object-Oriented Approach to Requirements Adopted from: Ch.7 The Object-Oriented Approach to Requirements.
Systems Analysis and Design in a Changing World, Fifth Edition
10/12/ Recall The Team Skills 1. Analyzing the Problem (with 5 steps) 2. Understanding User and Stakeholder Needs 1. Interviews & questionnaires.
Systems Analysis and Design in a Changing World, 6th Edition
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.
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 20. Review Software Requirements Requirements Engineering Process.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
Recall The Team Skills 1. Analyzing the Problem (with 5 steps) 2. Understanding User and Stakeholder Needs 3. Defining the System 4. Managing Scope 5.
Systems Analysis and Design in a Changing World, 3rd Edition
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.
1 Object-Oriented Modeling Using UML CS 3331 Section 2.4 Modeling Requirements with Use Cases.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
Systems Analysis and Design in a Changing World, 6th Edition
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 3 Use Cases.
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.
(c) Addison Wesley Copyright © 2000 by Addison Wesley Version 1.0
Systems Analysis and Design in a Changing World, 6th Edition 1 Chapter 5 INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH CHAPTER.
7. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Detailed Object-Oriented Requirements Definitions  System Processes—A Use.
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.
Systems Analysis and Design in a Changing World, Fourth Edition
Sept Ron McFadyen1 Use Cases Introduced by Ivar Jacobson in 1986 literal translation from Swedish ”usage case” Used to capture and describe.
Chapters 10, 11 SSD (Revision) SD DCD Exam Object-Oriented Design.
Unit-3 Identifying use cases Object Analysis Classification
Chapter 3: Introducing the UML
UML - Development Process 1 Software Development Process Using UML.
McGraw-Hill/Irwin© 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 17 Object-Oriented Design and Modeling Using the UML.
Communication Diagrams Lecture 8. Introduction  Interaction Diagrams are used to model system dynamics  How do objects change state?  How do objects.
CSCI 383 Object-Oriented Programming & Design Lecture 7 Martin van Bommel.
 System Sequence Diagrams Sheridan SYST Engineering Quality Systems 11.
7 Systems Analysis – ITEC 3155 The Object Oriented Approach – Use Cases.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
Engineering Quality Software Week02 J.N.Kotuba1 SYST Engineering Quality Software.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
Systems Analysis and Design in a Changing World, Fourth Edition
Business Process and Functional Modeling
Systems Analysis and Design in a Changing World, 6th Edition
Use Case Driven Analysis
Unified Modeling Language
Object-Oriented Analysis Principles using UML
Systems Analysis and Design in a Changing World, 6th Edition
Interaction diagrams Interaction diagrams are models that describe how groups of objects collaborate in some behavior. Typically, an interaction diagram.
Software Engineering System Modeling Chapter 5 (Part 1) Dr.Doaa Sami
Engineering Quality Software
Presentation transcript:

Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5

2 Revision The basic objective of requirements definition is understanding: understanding users’ needs, understanding how the business processes are carried out, and understanding how the system will be used to support those business processes.

3 Objectives In this chapter, you learn how to understand and define the requirements for a new system using object-oriented analysis models and techniques. Learning to build models is a fairly difficult task requiring focus and practice by the students.

4 Overview We extend the concepts associated with both activity diagrams and use case definitions. We introduce the concept of sequence diagrams through a simplified version of sequence diagrams called system sequence diagrams. You should be aware that the line between object- oriented analysis and object-oriented design is somewhat fuzzy because the models that are built to define requirements during analysis are refined and extended to produce a system design

5 Overview (continued) The object-oriented approach uses an iterative approach to development, which identifies some of the requirements, then does some preliminary design and implementation, and then iterates again and again through requirements, design, and implementation. The key point to emphasize is that every system has both data and processes. The data portion comes from the idea of “things,” also known as objects in object-oriented development. The model used to describe the objects is the class diagram. It provides the structural information about the objects in the system. The models used to describe the processes are the use case diagrams and related models that provide detailed information about the use cases

6 LO: Understand the models and processes of defining object-oriented requirements. Develop use case diagrams. Develop system sequence diagrams. Develop state machine diagrams to model object behavior. Explain how UML diagrams work together to define functional requirements for the object- oriented approach.

7 Use Case a use case is simply a further refinement of the information provided by each event in the event table. A business event focuses on what is happening in the business. A use case, however, has a narrower focus and emphasizes what the automated system must support. Because a use case is focused on the automated system, an actor is the role of the person or thing that initiates the computer activity. We emphasize this point by saying that actors have hands. The naming of use cases will help to identify and describe use cases. The name of the use case should be the predicate part of a sentence that begins with the actor using the system to do something. For example, “An order clerk uses the system to ‘create a new order’.”

8 Scope of a use case A use case is much like a business event. It starts with an interaction from an actor. It ends when the system reaches a quiescent point in the processing. For example, a sale transaction (business event) is not complete until all items are included and a total is calculated. Depending on the type of sale (cash), a payment may also be included in the transaction

Scope/Detail Page 64 in the prescribed book, identify 3 levels of detail: One analyst will identify a use case as typing in a customer name on a form Second analyst might identify a use case as the entire process of adding a customer A third analyst might even define a use case as working with customers all day: add customers, update customers, delete customers. No 1 is too narrow, no 3 too broad and no 2 defines a complete user goal, which is the right level of analysis. Is the use case useful? Don’t confuse use cases with processes. 9

10 Think more deeply Ask the following Q’s when developing workflows are: Does the workflow need to test the preconditions to ensure they are true? Does the workflow need to find and verify the correct objects to include in the process? What steps are needed to ensure that all the post-conditions are met? Are there multiple instances of objects or relationships that will require looping? Are there decision points that result in different postconditions or different alternatives of postconditions? Test each step in the sequence and ask, “Can anything go wrong, and what are the remedial activities?”

System Sequence Diagram: Neither activity diagrams nor fully developed use case workflows focus on the flow of data. The UML model that captures the input and output data is a system sequence diagram (SSD). The easiest way to develop an SSD is to use an activity diagram. Each time an arrow leaves the actor swim lane and enters the system swim lane, there is a potential input. Conversely, every time an arrow goes from the system to the actor, there is the possibility of an output occurring. Thus, SSDs are a natural outgrowth of an activity diagram. 11

12 System Sequence Diagram (SSD) A UML sequence diagram Special case for a sequence diagram Only shows actor and one object The one object represents the complete system Shows input & output messaging requirements for a use case Actor, :System, object lifeline Messages: [true/false condition] return-value := message-name (parameter-list)

13 System Sequence Diagram (SSD) Notation

SSD: Syntax and Semantics Message: The name of an input message should describe a service requested from the system. Messages will eventually be used to help identify and name methods associated with the objects. Because a method represents the invoking of a service, it is good practice to assign the message the same name as the eventual method. For example, “addItemToOrder” describes a specific service that the actor wants the system to perform 14

SSD: Message Model consistency: The data parameters must be consistent with the attributes from the identified classes. For example, if a customer class has an address as an attribute, it must be passed via a parameter in an input message. 15

16 Message Notation

SSD: The development of an SSD based on an activity diagram can be divided into four steps: Identify the input messages. Describe the message from the external actor to the system using the message notation described earlier. Identify and add any special conditions on the input messages, including iteration and true/false conditions. Identify and add the output return messages. 17

18 SSD Message Examples with Loop Frame

19 SSD Message Examples Opt Frame (optional) Alt Frame (if-else)

20 Steps for Developing SSD 1. Identify input message See use case flow of activities or activity diagram 2. Describe the message from the external actor to the system using the message notation Name it verb-noun: what the system is asked to do Consider parameters the system will need 3. Identify any special conditions on input messages Iteration/loop frame Opt or Alt frame 4. Identify and add output return values On message itself: aValue:= getValue(valueID) As explicit return on separate dashed line