Systems Analysis and Design in a Changing World

  • Slides: 29
Download presentation
Systems Analysis and Design in a Changing World, Fourth Edition 7

Systems Analysis and Design in a Changing World, Fourth Edition 7

7 Learning Objectives u Develop u Write use case diagrams use case and scenario

7 Learning Objectives u Develop u Write use case diagrams use case and scenario descriptions u Develop activity diagrams u Develop system sequence diagrams u Explain how UML diagrams work together to define functional requirements for the objectoriented approach 2

Object-Oriented Requirements u u u u 7 Object-oriented modeling notation is Unified Modeling Language

Object-Oriented Requirements u u u u 7 Object-oriented modeling notation is Unified Modeling Language (UML 2. 0) UML was accepted by Object Management Group (OMG) as standard modeling technique 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 Object-oriented system requirements are specified and documented through process of building models Modeling process starts with identification of use cases and problem domain classes (things in users’ work environment) Business events trigger elementary business processes (EBP) that new system must address as use cases Use cases define functional requirements 3

Object-Oriented Requirements Models u Use case diagrams – identify actors and their use u

Object-Oriented Requirements Models u Use case diagrams – identify actors and their use u Use case descriptions – include details of a use case 7 cases (goals) 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 (we will not use these diagrams in MIS 160) 4

The System Activities— A Use Case/Scenario View 7 u Use case analysis used to

The System Activities— A Use Case/Scenario View 7 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 5

Techniques for Identifying Use Cases 7 (Review from Chapter 5) u Identify user goals

Techniques for Identifying Use Cases 7 (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 6

7 Use Case Diagram u Graphical UML diagram that summarizes information about actors and

7 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

7 Simple Use Case with an Actor 8

7 Simple Use Case with an Actor 8

Use Case Diagram with Automation Boundary and Alternate Actor Notation 7 9

Use Case Diagram with Automation Boundary and Alternate Actor Notation 7 9

7 Use Cases of RMO Order Entry Subsystem (with package symbol) 10

7 Use Cases of RMO Order Entry Subsystem (with package symbol) 10

<<Includes>> Relationship u u u 7 Documents situation in which one use case requires

<<Includes>> Relationship u u u 7 Documents situation in which one use case requires the services of a common subroutine Another use case is developed for this common subroutine A common use can be reused by multiple use cases 11

CRUD Analysis for Identifying/Confirming Use Cases u CRUD 7 – create, read/report, update, delete

CRUD Analysis for Identifying/Confirming Use Cases u CRUD 7 – 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 12

7 Use Case Description u Use case description provides details of preconditions, postconditions, sequence

7 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-bystep 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 13

Top Detail from Fully Developed Use Case Description 7 14

Top Detail from Fully Developed Use Case Description 7 14

Middle Detail from Fully Developed Use Case Description 7 15

Middle Detail from Fully Developed Use Case Description 7 15

Bottom Detail from Fully Developed Use Case Description 7 16

Bottom Detail from Fully Developed Use Case Description 7 16

7 Activity Diagrams u Used to document workflow of business process activities for each

7 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 17

7 Activity Diagram— Telephone Order Scenario 18

7 Activity Diagram— Telephone Order Scenario 18

Identifying Inputs and Outputs— The System Sequence Diagram 7 u System sequence diagram (SSD)

Identifying Inputs and Outputs— The System Sequence Diagram 7 u System sequence diagram (SSD) is type of UML 2. 0 interaction diagram u Used to model input and output messaging requirements for a use case or scenario u Shows actor interacting with system u Shows sequence of interactions as messages during flow of activities u System is shown as one object: a “black box” 19

System Sequence Diagram (SSD) Notation 7 20

System Sequence Diagram (SSD) Notation 7 20

7 SSD Notation u Actor represented by a stick figure – a person (or

7 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 21

7 SSD Lifelines u Vertical l u If line under object or actor Shows

7 SSD Lifelines u Vertical l u If line under object or actor Shows passage of time vertical line dashed l Creation and destruction of thing is not important for scenario u Long l narrow rectangles Activation lifelines emphasize that object is active only during part of scenario 22

7 SSD Messages u Internal events identified by the flow of objects in a

7 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 23

7 Repeating Message 24

7 Repeating Message 24

7 Developing a System Sequence Diagram u Begin with detailed description of use case

7 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 25

Activity Diagram and Resulting SSD for Telephone Order Scenario 7 26

Activity Diagram and Resulting SSD for Telephone Order Scenario 7 26

7 Integrating Object-Oriented Models u Complete use case diagram is needed to understand total

7 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 27

Relationships Between OO Requirements Models 7 28

Relationships Between OO Requirements Models 7 28

7 Summary u Object-oriented approach has complete set of diagrams that define system requirements

7 Summary u Object-oriented approach has complete set of diagrams that define system requirements u Requirements specified using following models l Domain model class diagram (Chapter 5) l Use case diagrams (Chapter 7) l Use case detailed models, either descriptive formats or activity diagrams (Chapter 7) l System sequence diagrams (Chapter 7) 29