5 systems analysis and design in a changing world, fifth edition

60
5 Systems Analysis and Design in a Changing World, Fifth Edition

Upload: blaze-montgomery

Post on 04-Jan-2016

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Systems Analysis and Design in a

Changing World, Fifth Edition

Page 2: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Learning Objectives

Explain why identifying use cases is the key to defining functional requirements

Use three techniques for identifying use cases

Write brief, intermediate, and fully developed use case descriptions

2

Page 3: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Learning Objectives (continued)

Explain how the concept of things in the problem domain also defines requirements

Identify and analyze data entities and domain classes needed in the system

Read, interpret, and create an entity-relationship diagram

Read, interpret, and create a domain model class diagram

3

Page 4: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Overview

Document functional requirements by creating models

Models created during analysis phase activity – Define system requirements

Two concepts help identify functional requirements in the traditional approach and object-oriented approach

Use cases and the events that trigger them

Things in the users’ work domain

4

Page 5: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

User Goals, Events, and Use Cases Use Case -- An activity the system performs in

response to a user request

Techniques for identifying use cases

User goal technique

Each goal at the elementary business process (EBP) level is a use case

EBP – a task performed by one user, in one place in response to a business event, that adds measurable business value, and leaves system and data in consistent state

5

Page 6: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5User Goals, Events, and Use Cases

(continued) CRUD analysis technique (create, read, update,

delete)

Event decomposition technique

6

Page 7: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Identifying Use Cases Based on User

Goals

7

Page 8: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Use Case Based on CRUD Technique

8

Page 9: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Event Decomposition Technique

Event – an occurrence at a specific time and place and which needs to be remembered

Business events trigger elementary business processes (EBPs)

EBPs are at correct level of analysis for use cases

Identify business events to decompose system into activities/use cases

9

Page 10: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Types of Events

External

Outside system

Initiated by external agent or actor

Temporal

Occur as result of reaching a point in time

Based on system deadlines

State

Something inside system triggers processing need

10

Page 11: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Events Affecting a Charge Account Processing

System that Lead to Use Cases

11

Page 12: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

External Event Checklist

12

Page 13: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Temporal Event Checklist

13

Page 14: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Identifying Events

Can be difficult to determine

Often confused with conditions and responses

May be useful to trace a transaction’s life cycle

Certain events left to design phase

System controls to protect system integrity

Perfect technology assumption defers events

14

Page 15: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Sequence of Actions that Lead Up to Only One

Event Affecting the System

15

Page 16: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Sequence of “Transactions” for One Specific Customer Resulting in Many Events

16

Page 17: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Events Deferred Until the Design

Phase

17

Page 18: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Events in the RMO case

Important external events involve customers

Customer checks item availability, customer places order, customer changes or cancels order

Other external events involve departments

Shipping fulfills order, marketing sends promotion to customer, merchandising updates catalog

Temporal events include periodic reports

Time to produce order summary reports, Time to produce fulfillment summary reports

18

Page 19: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

RMO External Events

19

Page 20: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

RMO Temporal Events

20

Page 21: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Events and Use Cases Event Table – a catalog of use cases listed by event.

Contains detailed information

Trigger – a signal that indicates an event has occurred

Source – an external agent that initiates event and supplies data for the event

Response – an output produced by the system

Destination – an external agent that receives the response

21

Page 22: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Information about Each Event

in an Event Table

22

Page 23: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5RMO Event Table

23

Page 24: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Use Case Descriptions Use case description – a description of the processing

steps for a use case

Actor – a person or thing that uses the system. Actors have contact with the system

Scenario or Instance – a particular set of internal steps that represent a unique path of the use case

Three types of descriptions

Brief description

Intermediate description

Fully developed description

24

Page 25: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Brief Description

25

Page 26: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Intermediate Description

26

Page 27: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Fully Developed Description

27

Page 28: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

“Things” in the Problem Domain

Define system requirements by understanding system information that needs to be stored

Store information about things in the problem domain that people deal with when they do their work

28

Page 29: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Types of Things

29

Page 30: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Procedure for Developing an

Initial List of Things Step 1: Using the event table and information about each

use case, identify all nouns

Step 2: Using other information from existing systems, current procedures, and current reports or forms, add items or categories of information needed

Step 3: Refine list and record assumptions or issues to explore

Questions to include it, exclude it, or research it

30

Page 31: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

RMO Example “Things”

31

Page 32: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Characteristics of Things

Relationship

Naturally occurring association among specific things

Occur in two directions

Number of associations is cardinality or multiplicity

Binary, unary, ternary, n-ary

Attribute

One specific piece of information about a thing

32

Page 33: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Relationships Naturally Occur

Between Things

33

Page 34: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Cardinality/Multiplicity of

Relationships

34

Page 35: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Attributes and Values

35

Page 36: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Data Entities

Things system needs to store data about in traditional IS approach

Modeled with entity-relationship diagram (ERD)

Requirements model used to create the database design model for relational database

36

Page 37: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5The Entity-Relationship Diagram

(ERD)

37

Page 38: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Cardinality Symbols of Relationships

for ERD

38

Page 39: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Expanded ERD with Attributes Shown

39

Page 40: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Customers, Orders, and Order Items

40

Page 41: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

ERD with Many-to-Many Relationship

41

Page 42: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Many-to-Many Relationship Converted to Associative Entity to Store Grade Attribute

42

Page 43: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5RMO Customer Support System ERD

43

Page 44: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

The Domain Model Class Diagram

Unified Modeling Language (UML) diagram

Domain model class diagram

Models things in the users’ work domain

Used to define requirements for OO (very similar to entities in ERD)

44

Page 45: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

UML Class Symbol

45

Page 46: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Simple Domain Model Class Diagram

46

Page 47: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Simple Domain Model Class Diagram

(continued) No methods shown in domain model

Domain classes are not software classes

Very similar to ERD UML and domain model can be used in place of ERD

in traditional approach

47

Page 48: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Multiplicity of Associations

48

Page 49: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5University Course Enrollment Domain

Model Class Diagram

49

Page 50: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Refined Model with Association Class

and Grade Attribute

50

Page 51: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

More Complex Class Concepts

Generalization/specialization hierarchies

General superclasses to specialized subclasses

Inheritance allows subclasses to share characteristics of their superclasses

51

Page 52: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5A Generalization/Specialization

Class Hierarchy for Motor Vehicles

52

Page 53: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5A Generalization/Specialization Class Hierarchy for RMO Orders

53

Page 54: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Whole-Part Hierarchies Whole-part hierarchies – hierarchies that structure

classes by components

Aggregation – whole-part relationships between and object and its removable parts Parts can exist separately

Like car and its tires

Composition – whole-part relationships between and object and its non-removable parts. Parts cannot exist separately

Like Hand is composed of fingers and thumb

54

Page 55: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Whole-Part Aggregation

Relationships

55

Page 56: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

RMO Domain Model Class

Diagram

56

Page 57: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5Where You Are Headed

57

Page 58: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Summary

Analysis phase – defines system requirements

Models created to further learning process, reduce complexity, communicate with team members, and document requirements

Key early step in modeling is to identify and list

Events that require a use case in the system

Things users deal with in work environment

58

Page 59: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Summary (continued)

Use cases (activities) are identified from user goals and business events that trigger elementary business processes

Business events are memorable, can be described, and occur at a specific time and place

External events, temporal events, and state events

Event table records event, trigger, source, use case, response, and destination

A catalog of information about each use case

59

Page 60: 5 Systems Analysis and Design in a Changing World, Fifth Edition

5

Summary (continued)

“Things” are what user deals with and system remembers, such as customer placing an order

Traditional approach uses entity-relationship diagrams (ERD) for data entities, attributes of data entities, and relationships between entities

Object-oriented approach uses UML class diagrams for classes, attributes, methods of class, and associations among classes

Domain model class diagram

60