Behavioral Modeling II Developing Use Cases

Slides:



Advertisements
Similar presentations
Object-Oriented Analysis and Design: Activity Diagrams
Advertisements

Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
Use Case & Use Case Diagram
Chapter 7 Structuring System Process Requirements
Chapter 7 Structuring System Process Requirements
Getting Started in Systems Analysis and Design
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 3.1.
Gathering Requirements
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 5.1.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall.
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Using Dataflow Diagrams
Chapter 2: The Database Development Process Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 1 © 2009 Pearson Education,
Bina Nusantara 7 C H A P T E R MODELING SYSTEM REQUIREMENTS WITH USE CASES.
Information Technology in Organizations
Functional Modeling Chapter 6.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Chapter 8 Structuring System Data Requirements
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 1.1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 6.1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Chapter 7 Structuring System Process Requirements Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 6.1.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Chapter 7 Quality and Innovation in Product and Process Design.
Chapter 7 Structuring System Process Requirements
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 3: The Enhanced E-R Model Modern Database Management 10 th Edition Jeffrey A. Hoffer,
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
GO! All In One 2/E By: Shelley Gaskin, Nancy Graviett, Debra Geoghan Chapter 13 Creating and Editing Presentations with Microsoft PowerPoint 2013 Copyright.
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 13 (Online): Object-Oriented Data Modeling Modern Database Management 10 th Edition.
Computers Are Your Future Tenth Edition Chapter 13: Systems Analysis & Design Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Chapter 7 Appendix A Object-Oriented Analysis and Design: Use Cases Modern Systems Analysis and Design Seventh Edition Jeffrey A. Hoffer Joey F. George.
2131 Structured System Analysis and Design By Germaine Cheung Hong Kong Computer Institute Lecture 8 (Chapter 7) MODELING SYSTEM REQUIREMENTS WITH USE.
Use Case Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
Chapter 7 Appendix C Object-Oriented Analysis and Design: Sequence Diagrams Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F.
(c) Addison Wesley Copyright © 2000 by Addison Wesley Version 1.0
1 Modeling System Requirements with Use Cases. 2 Why Do We Need Use Cases? Primary challenge in a system design process –ability to elicit correct and.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 6: Functional Modeling.
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
Use cases Week Use‐case diagram 2 – Depicts the interactions between the system and external systems and users. – Graphically describes who will.
© 2012 Pearson Education, Inc. publishing Prentice Hall. Note 9 The Product Life Cycle.
Chapter 3 Requirements and Business Rules Copyright © 2012 Pearson Education, Inc. Publishing as Prentice HallChapter3.1.
UML - Development Process 1 Software Development Process Using UML.
Use Case Model Use case description.
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.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Word Chapter 2 Using Tables and Templates to Create Resumes and Cover.
David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Appendix B: Getting Started in Systems Analysis and Design.
© 2005 by Prentice Hall Chapter 7 Structuring System Process Requirements Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George.
Chapter 7 Part II Structuring System Process Requirements MIS 215 System Analysis and Design.
Chapter 7 Structuring System Process Requirements Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
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.
Chapter 7 Appendix A Object-Oriented Analysis and Design: Use Cases
Chapter 6 Structuring System Requirements: Process Modeling
Use Case Model Use case description.
Chapter 5 Determining System Requirements
GO! with Microsoft® Access e
Object Oriented Analysis and Design
INFS 6225 Object Oriented Systems Analysis & Design
Use Case Model Use case diagram – Part 2.
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Chapter 2: The Database Development Process
Appendix A Object-Oriented Analysis and Design
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
Software Development Process Using UML Recap
Presentation transcript:

Behavioral Modeling II Developing Use Cases Chapter 7 Behavioral Modeling II Developing Use Cases

Chapter Topics Structuring and developing use cases through templates. When and how to generalize actors. When and how to extend the functionality of a use case. When and how to reuse use cases. When and how to generalize use cases. The features and the purpose of use case diagram. When and how to join or divide use case. Using activity diagram to clarify the logical flow of use cases. Use case modeling as a framework for development activities. Managing details by creating supplements to use cases.

A Framework for the Development

Develop Base Use Cases What a “base” use case is? A base use case is a fully formed, structured use case which serves as a base to develop other analysis and design artifacts.

The Template The template structures use cases by providing well-defined and ordered fields.

Use Case Template Please refer to able 7.1 on page 210 in the text book.

Template Fields Template fields represent the building blocks of the use cases, joined in a predefined, orderly manner.

Template Fields Name ID Scope Priority embodies the goal that the use case wants to accomplish. ID is unique numeric identifier for the use case. Scope boundaries of the use case— defined by the system or the subsystem to which it belongs. Priority decides the order of design and implementation for use cases.

Template Fields Summary Primary actor Supporting actor a long version of the use case name and a short version of the scenario. Primary actor is the actor whose goal identifies and drives the use case. Supporting actor assist the primary actor in achieving the goal of the use case.

Template Fields Stakeholder Precondition Trigger A flow any entity, human or otherwise, who has an interest in the outcome of the use case. Precondition defines the state of the system before a use case can start; post-condition defines the state of the system after a use case is complete. Trigger the event that starts the use. A flow an ordered set of activities that occur as the actors and the system attempt to reach a goal.

Conduct ATM Transaction Normal Flow Normal flow is the best-case scenario Conduct ATM Transaction Normal Flow: 1. Customer inserts the bank card. 2. Customers enters password. 3. System verifies password. 4. System presents a list of transaction types that the customer may conduct. 5. Customer selects a type of transaction.

Sub-Flows Sub-flows identify the details of the steps in the normal flow Register Patient Normal Flow: 1. The registration clerk enters or updates personal data. Sub Flows: 1.1 The registration clerk enters the Social Security Number of the new patient. 1.2 The registration clerk enters or updates patient’s address. 1.3 The registration clerk enters or updates patient’s phone number. 1.4 The registration clerk enters or updates the name, the address and the phone number of the patient’s closest relative.

Alternate Flow and Exceptions Alternate steps identify remedies; exceptions signify failure Receive Patient Alternate Flow/ Exceptions: 3.a Patient is new. Reception clerk directs the patient to registration… 3.bPatient is not new but personal or insurance data has changed. Reception clerk directs the patient to registration… 3.cPatient has lost the hospital ID card. Reception clerk directs the patient to registration…

Non-Behavioral Requirements Only when a non-behavioral requirements applies to a specific use case, the requirement is specified in the template.

Template Fields Open Issues Audit fields Custom Fields questions that must be resolved before the use case can be judged as complete. Audit fields help us to keep track of the evolution of the use case. Custom Fields specifies an attribute or requirement that is specific to one use case or a set of use cases within the system.

Actor Dictionary Actor Description Abstract Use Case (s) Appointment Clerk Makes appointment for the patient to receive medical service. Make Appointment Billing Clerk Maintains patient billing. Enter Bulk Payment Hospital Clerk Generalizes: Reception Clerk Registration Clerk  Resolve Patient Billing Issue Receives patient on arrival at the hospital. Verifies registration. Arranges for the patient to receive medical service. Receive Patient Enters or updates patient’s personal and payment data. Issues a hospital card, if necessary. Register Patient

Dependencies: Include and Extend An extend relationship is one in which a use case is created to extend the functionality of a base use case. Register Patient Alternate Flow/ Exceptions: 2.a The patient is not new and insurance data has not changed. Registration clerk does not update the insurance data by default. 2.b The patient wants to pay the entire bill or the co-payments by a credit card. Registration clerk verifies the credit card (Extend: 142 - Verify Credit Card) and records credit card information.

Include Relationship An include relationship is one in which one use case uses the functionality of another, independent, use case. Receive Patient Normal Flow: … 3. Reception clerk verifies that patient has been registered and registration is valid. Alternate Flow/ Exceptions: 3.a Patient is new. Reception clerk directs the patient to registration. (Include: 140 - Register Patient.)

Use Case Diagram for Dependencies In a use case diagram, dependency type is indicated by the direction of an arrow.

Base UC Arrow’s Direction Referenced UC Extended UC Register Patient  Extending UC Verify Credit Card Including UC Receive Patient  Included UC

Use Case Generalization We generalize use cases when the they achieve the same goal by different means.

Use Case Diagram Use case diagram is a meta-model that portrays associations among actors, use cases and the system.

Separating and Joining Use Cases  We delineate them.  We divide them into more use cases.  We combine them.

Delineating Use Cases One use case must have one primary actor, one useful goal and one system.

Dividing Use Cases New requirements or the challenge of complexity may demand that a use case be divided: Vertical division is necessary if the use case has too many parallel steps. Horizontal division is necessary if the flow is too complex or the building blocks of the use case lack unity.

Refactoring Refactoring abstracts and reorganizes common behavior among use cases into new use cases.

Activity Diagram Activity diagram depicts the flow from activity to activity. It presents a visual, dynamic view of the system and its components.

The Building Blocks of Activity Diagram Refer to Table 7.4 on page 240 in the text book.

Uses of Use Cases Use cases provide a crucial framework for analysis, design, implementation and deployment activities.

Uses of Use Cases Requirements Gathering Requirements Traceability Use cases provide the base tools for gathering requirements within a meaningful context. Requirements Traceability Use cases and their supporting documents are the prime sources for tracing requirements. Business Rules Use cases are the framework for gathering business rules. System Behavior The external behavior of any open system can be captured effectively through use cases.

Uses of Use Cases Object Derivation Incremental Development By launching a cycle of gathering requirements from the use cases, we can arrive at many of the objects that would form the structure of the system. Incremental Development By prioritizing use cases and their dependencies, we can build a system incrementally. Base for User Interface Use cases describe the basics messages that the actor and the system must exchange to achieve a goal. Test Case Definition Use cases are the conceptual blueprints for functional test cases. Base for User Documentation Use cases are built to describe the interaction between a user type and a system. Business Process Modeling Use cases can be used to model business processes, prior to, after, or independent from an information system.

Next: Structural Modeling The basic building blocks of an information systems are objects. An object is created from a mold called class. To make objects we have to make classes, and this is the starting point of the next chapter.

Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2009 Pearson Education, Inc.   Publishing as Prentice Hall