7 Systems Analysis – ITEC 3155 The Object Oriented Approach – Use Cases.

Slides:



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

Requirements Diagrams With UML Models
Systems Analysis and Design in a Changing World, 6th Edition
System Sequence Diagrams
Karolina Muszyńska Based on:
Object-Oriented Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
Object-Oriented Analysis and Design
Objectives Detailed Object-Oriented Requirements Definitions
Object-Oriented Analysis
Chapter 18 Object-Oriented Systems Analysis and Design Using UML
Systems Analysis and Design in a Changing World, Fourth Edition
Practical Object-Oriented Design with UML 2e Slide 1/1 ©The McGraw-Hill Companies, 2004 PRACTICAL OBJECT-ORIENTED DESIGN WITH UML 2e Chapter 5: Restaurant.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 8 Slide 1 System models.
© 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.
Objectives Explain the purpose and objectives of object- oriented design Develop design class diagrams Develop interaction diagrams based on the principles.
Use Case Modeling.
Systems Analysis and Design in a Changing World, 6th Edition
Detailed Object-Oriented Requirements Definitions
6 Systems Analysis and Design in a Changing World, Fourth Edition.
Object-Oriented Analysis and Design
Chapter 7: The Object-Oriented Approach to Requirements
Chapter 6: The Traditional Approach to Requirements
2 Approaches to Requierements Engineering Reference: Systems Analysis and Design in a Changing World, 3 rd Edition, chapter 2 and chapter 6.
Chapter 6 The Traditional Approach to Requirements
Systems Analysis and Design in a Changing World, Fifth Edition
Systems Analysis and Design in a Changing World, Fifth Edition
State Diagrams / System Sequence Diagrams (SSDs)
Detailed Object-Oriented Requirements Definitions
Systems Analysis and Design in a Changing World, 6th Edition
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
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.
Systems Analysis and Design in a Changing World, 3rd Edition
Sommerville 2004,Mejia-Alvarez 2009Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
2 Object-Oriented Analysis and Design and the Unified Process Objectives  Explain the purpose and objectives of object- oriented design  Develop design.
7 Systems Analysis and Design in a Changing World, Fifth Edition.
UML Review of diagram types. 2 Unified Modeling Language The Unified Modeling Language™ (UML) was developed jointly by Grady Booch, Ivar Jacobson, and.
5 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.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Drawing System Sequence Diagrams
COMP-350 Object-Oriented Analysis and Design Drawing System Sequence Diagrams Reference: Larman, Chapter 9.
Use Case Driven Analysis Requirements Use Case Use Case Description System Sequence Diagram Chapter 5.
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.
Systems Analysis and Design in a Changing World, Fourth Edition
Slide 12D.88 © The McGraw-Hill Companies, 2005 Object-Oriented and Classical Software Engineering Sixth Edition, WCB/McGraw-Hill, 2005 Stephen R. Schach.
Object-Oriented Application Development Using VB.NET 1 Chapter 5 Object-Oriented Analysis and Design.
Week04 Project Requirements.
6 Systems Analysis and Design in a Changing World, Fourth Edition.
1 Lecture 7 – Chapter 7 The Object-Oriented Approach to Requirements.
 System Sequence Diagrams Sheridan SYST Engineering Quality Systems 11.
1 7 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 7 The Object-Oriented Approach to Requirements.
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.
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
Chapter 5 System modeling
Systems Analysis and Design in a Changing World, 6th Edition
Use Case Driven Analysis
Object Oriented Approach
Systems Analysis and Design in a Changing World, 6th Edition
Engineering Quality Software
CIS 375 Bruce R. Maxim UM-Dearborn
Presentation transcript:

7 Systems Analysis – ITEC 3155 The Object Oriented Approach – Use Cases

7 Systems Analysis and Design in a Changing World, 4th Edition 2 Learning Objectives u What are use cases? u Use case diagrams u Use case and scenario descriptions

7 Systems Analysis and Design in a Changing World, 4th Edition 3 Overview u Objective of requirements definition is understanding users’ needs, business processes, and system to support business processes u Understand and define requirements for a new system using object-oriented analysis models and techniques u Line between object-oriented analysis and object- oriented design is somewhat fuzzy l Iterative approach to development l Models built in analysis are refined during design

7 Systems Analysis and Design in a Changing World, 4th Edition 4 Object-Oriented Requirements u Object-oriented modeling notation is Unified Modeling Language (UML 2.0) u UML was accepted by Object Management Group (OMG) as standard modeling technique u Purpose of Object Management Group l Promote theory and practice of object-oriented technology for development of distributed systems l Provide common architectural framework for OO

7 Systems Analysis and Design in a Changing World, 4th Edition 5 Object-Oriented Requirements (continued) u Object-oriented system requirements are specified and documented through process of building models u Modeling process starts with identification of use cases and problem domain classes (things in users’ work environment) u Business events trigger elementary business processes (EBP) that the new system must address as use cases u Use cases define functional requirements

7 Systems Analysis and Design in a Changing World, 4th Edition 6 Object-Oriented Requirements Models u Use case diagrams – i dentify actors and their use cases (goals) u Use case descriptions – include details of a use case and how actors use the system u Systems sequence diagrams (SSDs) – define inputs and outputs and sequence of interactions between user and system for a use case u Activity diagrams – describe user and system activities for a use case u State machine diagrams – describe states of each object

7 Systems Analysis and Design in a Changing World, 4th Edition 7 Requirements Models—Traditional versus OO (Figure 7-1)

7 Systems Analysis and Design in a Changing World, 4th Edition 8 The System Activities— A Use Case/Scenario View u Use case analysis used to identify and define all business processes that system must support u Use case – an activity a system carried out, usually in response to a user request u Actor l Role played by user l Outside automation boundary

7 Systems Analysis and Design in a Changing World, 4th Edition 9 Techniques for Identifying Use Cases (Review from Chapter 5) u Identify user goals l Each goal at the elementary business process (EBP) level is a use case l EBP – task performed by one user in one place and in response to business event that adds measurable business value, and leaves system and data in consistent state u Event decomposition technique (event table) u CRUD analysis technique (create, read/report, update, delete) to ensure coverage

7 Systems Analysis and Design in a Changing World, 4th Edition 10 Use Case Diagram u Graphical UML diagram that summarizes information about actors and use cases u Simple diagram shows overview of functional requirements u Can have multiple use case diagrams l By subsystem l By actor

7 Systems Analysis and Design in a Changing World, 4th Edition 11 Simple Use Case with an Actor (Figure 7-2)

7 Systems Analysis and Design in a Changing World, 4th Edition 12 Use Case Diagram with Automation Boundary and Alternate Actor Notation (Figure 7-3)

7 Systems Analysis and Design in a Changing World, 4th Edition 13 All Use Cases Involving Customer as Actor (Figure 7-4)

7 Systems Analysis and Design in a Changing World, 4th Edition 14 Use Cases of RMO Order Entry Subsystem (Partial Figure 7-5 with package symbol)

7 Systems Analysis and Design in a Changing World, 4th Edition 15 > Relationship u Documents situation in which one use case requires the services of a common subroutine u Another use case is developed for this common subroutine u A common use case can be reused by multiple use cases

7 Systems Analysis and Design in a Changing World, 4th Edition 16 Example of Order-Entry Subsystem with > Use Cases (Figure 7-6)

7 Systems Analysis and Design in a Changing World, 4th Edition 17 CRUD Analysis for Identifying/Confirming Use Cases u CRUD – create, read/report, update, delete u Information Engineering (IE) technique to identify event table or directly develop use case diagram u Compares identified use cases with domain model class diagram u Every class in class diagram must have use cases to support creating, reading, reporting, updating, and deleting object instances u Confirms system integration requirements

7 Systems Analysis and Design in a Changing World, 4th Edition 18 Use Case Description u Use case description provides details of preconditions, postconditions, sequence of activities, and exception conditions in use case u Describes actor interacting with computer system step-by- step to carry out business activity u May have several scenarios for a use case, each a specific use case instance u Three levels of detail: brief, intermediate, and fully developed description u Many analysts prefer to write narrative descriptions of use cases instead of drawing activity diagrams

7 Systems Analysis and Design in a Changing World, 4th Edition 19 Brief Description of Create New Order Use Case (Figure 7-7)

7 Systems Analysis and Design in a Changing World, 4th Edition 20 Intermediate Description of the Telephone Order Scenario for Create New Order Use Case (Figure 7-8)

7 Systems Analysis and Design in a Changing World, 4th Edition 21 Intermediate Description of the Web Order Scenario for Create New Order (Figure 7-9)

7 Systems Analysis and Design in a Changing World, 4th Edition 22 Fully Developed Description of Telephone Order Scenario for Create New Order Use Case (Figure 7-10)

7 Systems Analysis and Design in a Changing World, 4th Edition 23 Top Detail from Fully Developed Use Case Description (Figure 7-10)

7 Systems Analysis and Design in a Changing World, 4th Edition 24 Middle Detail from Fully Developed Use Case Description (Figure 7-10)

7 Systems Analysis and Design in a Changing World, 4th Edition 25 Bottom Detail from Fully Developed Use Case Description (Figure 7-10)

7 Systems Analysis and Design in a Changing World, 4th Edition 26 Use Case Description Components u Use case name/scenario name u Actors/stakeholders u Related use cases u Preconditions – set of criteria that must be true prior to initiation of the use case u Postconditions – set of criteria that must be true upon completion of the use case u Flow of activities (steps in one column or two) u Exception conditions

7 Systems Analysis and Design in a Changing World, 4th Edition 27 Activity Diagrams u Used to document workflow of business process activities for each use case or scenario u Standard UML 2.0 diagram as seen in Chapter 4 u Can support any level of use case description; a supplement to use case descriptions u Helpful in developing system sequence diagrams

7 Systems Analysis and Design in a Changing World, 4th Edition 28 Activity Diagram Symbols

7 Systems Analysis and Design in a Changing World, 4th Edition 29 Activity Diagram that Models a Workflow (Figure 4- 13)

7 Systems Analysis and Design in a Changing World, 4th Edition 30 Activity Diagram— Telephone Order Scenario (Figure 7-12)

7 Systems Analysis and Design in a Changing World, 4th Edition 31 Activity Diagram— Web Order Scenario (Figure 7-13)

7 Systems Analysis and Design in a Changing World, 4th Edition 32 SSD Notation u Actor represented by a stick figure – a person (or role) that interacts with system by entering input data and receiving output data u Object is a rectangle with name of object underlined – shows individual object and not class of all similar objects ( :System for SSD ) u Lifeline or object lifeline is a vertical line under object or actor to show passage of time for object u Message is labeled on arrows to show messages sent to or received by actor or system

7 Systems Analysis and Design in a Changing World, 4th Edition 33 SSD Lifelines u Vertical line under object or actor l Shows passage of time u If vertical line dashed l Creation and destruction of thing is not important for scenario u Long narrow rectangles l Activation lifelines emphasize that object is active only during part of scenario

7 Systems Analysis and Design in a Changing World, 4th Edition 34 SSD Messages u Internal events identified by the flow of objects in a scenario u Requests from one actor or object to another to do some action u Invoke a particular method

7 Systems Analysis and Design in a Changing World, 4th Edition 35 Repeating Message (Figure 7-15)

7 Systems Analysis and Design in a Changing World, 4th Edition 36 Developing a System Sequence Diagram u Begin with detailed description of use case from fully developed form or activity diagram u Identify input messages u Describe message from external actor to system using message notation u Identify and add any special conditions on input message, including iteration and true/false conditions u Identify and add output return messages

7 Systems Analysis and Design in a Changing World, 4th Edition 37 Activity Diagram and Resulting SSD for Telephone Order Scenario (Figures 7-16 and 7-17)

7 Systems Analysis and Design in a Changing World, 4th Edition 38 SSD of the Web Order Scenario for the Create New Order Use Case (Figure 7-18)

7 Systems Analysis and Design in a Changing World, 4th Edition 39 Integrating Object-Oriented Models u Complete use case diagram is needed to understand total scope of new system u Domain model class diagrams should also be as complete as possible for entire system u With iterative approach, only construct use case descriptions, activity diagrams, and system sequence diagrams for use cases in iteration u Development of a new diagram often helps refine and correct previous diagrams