Скачать презентацию INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN AN AGILE Скачать презентацию INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN AN AGILE

256dba13335bc27c2c8fd3e9a72db38c.ppt

  • Количество слайдов: 42

INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH SATZINGER | JACKSON | INTRODUCTION TO SYSTEMS ANALYSIS AND DESIGN: AN AGILE, ITERATIVE APPROACH SATZINGER | JACKSON | BURD CHAPTER 5 Chapter 5 Systems Analysis and Design in a Changing World, 6 th Edition 1

Extending the Requirements Models Chapter 5 Introduction to Systems Analysis and Design: An Agile, Extending the Requirements Models Chapter 5 Introduction to Systems Analysis and Design: An Agile, Iteractive Approach 6 th Ed Satzinger, Jackson & Burd

Chapter 5 Outline l l l Use Case Descriptions Activity Diagrams for Use Cases Chapter 5 Outline l l l Use Case Descriptions Activity Diagrams for Use Cases The System Sequence Diagram— Identifying Inputs and Outputs The State Machine Diagram—Identifying Object Behavior Integrating Requirements Models Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 3

Learning Objectives l l l Write fully developed use case descriptions Develop activity diagrams Learning Objectives l l l Write fully developed use case descriptions Develop activity diagrams to model flow of activities Develop system sequence diagrams Develop state machine diagrams to model object behavior Explain how use case descriptions and UML diagrams work together to define functional requirements Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 4

Overview l l Chapters 3 and 4 identified and modeled the two primary aspects Overview l l Chapters 3 and 4 identified and modeled the two primary aspects of functional requirements: use cases and domain classes This chapter focuses on additional techniques and models to extend the requirements models to show more detail Fully developed use case descriptions provide information about each use case, including actors, stakeholders, preconditions, post conditions, the flow of activities and exceptions conditions Activity diagrams (first shown in Chapter 2) can also be used to show the flow of activities for a use case Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 5

Overview (continued) l l l System sequence diagrams (SSDs) show the inputs and outputs Overview (continued) l l l System sequence diagrams (SSDs) show the inputs and outputs for each use case as messages State machine diagrams show the states an object can be in over time between use cases Use cases are modeled in more detail using fully developed use case descriptions, activity diagrams, and system sequence diagrams Domain classes are modeled in more detail using state machine diagrams Not all use cases and domain classes are modeled at this level of detail. Only model when there is complexity and a need to communicate details Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 6

Use Case Descriptions l Write a brief description as shown in Chapter 3 for Use Case Descriptions l Write a brief description as shown in Chapter 3 for most use cases. Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 7

Use Case Descriptions l l Write a fully developed use case description for more Use Case Descriptions l l Write a fully developed use case description for more complex use cases Typical use case description templates include: l l l Use case name Scenario (if needed) Triggering event Brief description Actors Related use cases (<>) Stakeholders Preconditions Post conditions Flow of activities Exception conditions Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 8

Fully Developed Use Case Description Use case: Create customer account Introduction to Systems Analysis Fully Developed Use Case Description Use case: Create customer account Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 9

Fully Developed Use Case Description Create customer account (part 1 ) Introduction to Systems Fully Developed Use Case Description Create customer account (part 1 ) Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 10

Fully Developed Use Case Description Create customer account (part 2 ) Introduction to Systems Fully Developed Use Case Description Create customer account (part 2 ) Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 11

Use Case Description Details l Related use cases <<includes>> l l Stakeholders l l Use Case Description Details l Related use cases <> l l Stakeholders l l l What must be true when the use case is completed Use for planning test case expected results Flow of activities l l What must be true before the use case begins Post conditions l l Anyone with an interest in the use case Preconditions l l If one use case invokes or includes another The activities that go on between actor and the system Exception conditions l Where and what can go wrong Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 12

Use Case Description Details l Use case name l l Scenario (if needed) l Use Case Description Details l Use case name l l Scenario (if needed) l l Based on event decomposition technique Brief description l l A use can have more than one scenario (special case or more specific path) Triggering event l l Verb-noun Written previously when use case was identified Actors l One or more users from use case diagrams Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 13

Another Fully Developed Use Case Description Example Use case Ship items Introduction to Systems Another Fully Developed Use Case Description Example Use case Ship items Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 14

Fully Developed Use Case Description Ship items (part 1 ) Introduction to Systems Analysis Fully Developed Use Case Description Ship items (part 1 ) Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 15

Fully Developed Use Case Description Ship items (part 2 ) Introduction to Systems Analysis Fully Developed Use Case Description Ship items (part 2 ) Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 16

UML Activity Diagram for Use Case Create Customer Account Note: this shows flow of UML Activity Diagram for Use Case Create Customer Account Note: this shows flow of activities only Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 17

UML Activity Diagram for Use Case Fill shopping cart Note: this shows use case UML Activity Diagram for Use Case Fill shopping cart Note: this shows use case with <> reltionship Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 18

System Sequence Diagram (SSD) l l A UML sequence diagram Special case for a System Sequence Diagram (SSD) l l A UML sequence diagram Special case for a sequence diagram l l l 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 Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 19

System Sequence Diagram (SSD) Notation Introduction to Systems Analysis and Design, 6 th Edition System Sequence Diagram (SSD) Notation Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 20

Message Notation Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Message Notation Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 21

SSD Message Examples with Loop Frame Introduction to Systems Analysis and Design, 6 th SSD Message Examples with Loop Frame Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 22

SSD Message Examples Opt Frame (optional) Alt Frame (if-else) Introduction to Systems Analysis and SSD Message Examples Opt Frame (optional) Alt Frame (if-else) Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 23

Steps for Developing SSD Identify input message 1. l See use case flow of Steps for Developing SSD Identify input message 1. l See use case flow of activities or activity diagram Describe the message from the external actor to the system using the message notation 2. l l Name it verb-noun: what the system is asked to do Consider parameters the system will need Identify any special conditions on input messages 3. l l Iteration/loop frame Opt or Alt frame Identify and add output return values 4. l l On message itself: a. Value: = get. Value(value. ID) As explicit return on separate dashed line Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 24

SSD for Create customer account Use case Introduction to Systems Analysis and Design, 6 SSD for Create customer account Use case Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 25

SSD for Ship items Use Case Introduction to Systems Analysis and Design, 6 th SSD for Ship items Use Case Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 26

State Machine Diagram l State machine diagram l l State l l A condition State Machine Diagram l State machine diagram l l State l l A condition during an object’s life when it satisfies some criterion, performs some action, or waits for an event Transition l l A UML diagram showing the life of an object in states and transitions The movement of an object from one state to another state Action Expression l A description of activities performed as part of a transition Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 27

State Machine Diagram (continued) l Pseudo state l l Origin state l l The State Machine Diagram (continued) l Pseudo state l l Origin state l l The original state of an object before transition Destination state l l The starting point of a state machine diagram (black dot) The state to which the object moves after the transition Guard condition l A true false test to see whether a transition can fire Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 28

State Machine Diagram for a Printer Introduction to Systems Analysis and Design, 6 th State Machine Diagram for a Printer Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 29

Composite States l l State containing other states and transitions Printer can be On Composite States l l State containing other states and transitions Printer can be On and either Idle or Working Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 30

Concurrent Paths l l Multiple paths in composite state Printer On paths are independent Concurrent Paths l l Multiple paths in composite state Printer On paths are independent Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 31

Steps for Developing State Machine Diagram 1. 2. 3. 4. 5. Review the class Steps for Developing State Machine Diagram 1. 2. 3. 4. 5. Review the class diagram and select classes that might require state machine diagrams For each class, make a list of status conditions (states) you can identify Begin building diagram fragments by identifying transitions that cause an object to leave the identified state Sequence these states in the correct order and aggregate combinations into larger fragments Review paths and look for independent, concurrent paths Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 32

Steps for Developing State Machine Diagram (continued) Look for additional transitions and test both Steps for Developing State Machine Diagram (continued) Look for additional transitions and test both directions Expand each transition with appropriate message event, guard condition, and action expression Review and test the state machine diagram for the class 6. 7. 8. l l Make sure state are really state for the object in the class Follow the life cycle of an object coming into existence and being deleted Be sure the diagram covers all exception condition Look again for concurrent paths and composite states Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 33

RMO Domain Class States for Sale. Item Object Introduction to Systems Analysis and Design, RMO Domain Class States for Sale. Item Object Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 34

Final State Machine Diagram for Sale. Item Object l l add. Item() and archive() Final State Machine Diagram for Sale. Item Object l l add. Item() and archive() transitions added mark. Back. Ordered() transition added Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 35

RMO Domain Class States for Sale Object Introduction to Systems Analysis and Design, 6 RMO Domain Class States for Sale Object Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 36

Initial State Machine Diagram for RMO Sale Object Introduction to Systems Analysis and Design, Initial State Machine Diagram for RMO Sale Object Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 37

Final State Machine Diagram for Sale Object Introduction to Systems Analysis and Design, 6 Final State Machine Diagram for Sale Object Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 38

Extending and Integrating Requirements Models l Use case diagram l l Use case description Extending and Integrating Requirements Models l Use case diagram l l Use case description Activity diagram System sequence diagram (SSD) Domain Classes l Domain model class diagram l State machine diagram Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 39

Integrating Requirements Models Introduction to Systems Analysis and Design, 6 th Edition © 2012 Integrating Requirements Models Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 40

Summary l l Chapters 3 and 4 identified and modeled the two primary aspects Summary l l Chapters 3 and 4 identified and modeled the two primary aspects of functional requirements: use cases and domain classes This chapter focuses on additional techniques and models to extend the requirements models to show more detail Fully developed use case descriptions provide information about each use case, including actors, stakeholders, preconditions, post conditions, the flow of activities and exceptions conditions Activity diagrams (first shown in Chapter 2) can also be used to show the flow of activities for a use case Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 41

Summary (continued) l l l System sequence diagrams (SSDs) show the inputs and outputs Summary (continued) l l l System sequence diagrams (SSDs) show the inputs and outputs for each use case as messages State machine diagrams show the states an object can be in over time between use cases Use cases are modeled in more detail using fully developed use case descriptions, activity diagrams, and system sequence diagrams Domain classes are modeled in more detail using state machine diagrams Not all use cases and domain classes are modeled at this level of detail. Only model when there is complexity and a need to communicate details Introduction to Systems Analysis and Design, 6 th Edition © 2012 Cengage Learning. All Rights Reserved. This edition is intended for use outside of the U. S. only, with content that may be different from the U. S. Edition. May not be scanned, copied, duplicated, or posted to a publicly accessible website, in whole or in part. 42