5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a...

41
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World

Transcript of 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a...

Page 1: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Chapter 5:Modeling Systems Requirements:

Events and Things

Systems Analysis and Design in a Changing World

Page 2: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 4

Overview

Document functional requirements by creating models

Models created during analysis phase activity: Define system requirements

Two concepts define system requirements in traditional approach and object-oriented approach

Events

Things

Page 3: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 7

Types of Models

Different types of models are used in information systems development

Mathematical - formulas that describe technical aspects of the system

Descriptive - narrative memos, reports, or lists that describe aspects of the system

Graphical - diagrams and schematic representations of some aspect of the system

Page 4: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 8

Overview of Models Used in Analysis and Design

Analysis phase activity named “define system requirements”

Logical models

Provide detail without regard to specific technology

Design phase

Physical models

Provide technical details

Extend logical models

Page 5: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 9

Models Used in Analysis

Page 6: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 10

Models Used in Design

Page 7: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 11

Events and System Requirements

Events

Occurrences at a specific time and place

Trigger all system processing

Requirement definition

Determine relevant events

External events first

Temporal events second

Decompose system into manageable units

Page 8: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 12

Events Affecting a Charge Account Processing System

Page 9: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 13

Types of Events

External

Outside system

Initiated by external agent or actor

Temporal

Occurs as result of reaching a point in time

Based on system deadlines

State

Something inside system triggers processing need

Page 10: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 17

Sequence of Actions that Lead up to Only One Event Affecting the System

Page 11: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 18

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

Page 12: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 19

Events Deferred Until the Design Phase

Page 13: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 20

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

Page 14: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 21

Information about each Event in an Event Table

Page 15: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 22

RMO Event Table (Figure 5-6 partial)

Page 16: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 23

Things and System Requirements

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

Analysts identify these types of things by considering each event in the event list

What things does the system need to know about and store information about?

Page 17: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 24

Types of Things

Page 18: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 25

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

Page 19: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 26

Relationships Naturally Occur Between Things

Page 20: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 27

Cardinality/Multiplicity of Relationships

Page 21: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 28

Attributes and Values

Page 22: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 29

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

Page 23: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 30

Objects

Objects do the work in system and store information in object-oriented approach

Objects have behaviors and attributes

Class: Type of thing

Object: Each specific thing

Methods: Behaviors of objects of the class

Objects contain values for attributes and methods for operating on those attributes

An object is encapsulated – a self-contained unit

Page 24: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 31

Data Entities Compared with Objects

Page 25: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 32

Simple Entity-relationship Diagram

Page 26: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 33

Cardinality Symbols of Relationships

Page 27: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 34

Expanded ERD with Attributes Shown

Page 28: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 35

Customers, Orders, and Order Items

Page 29: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 36

University course enrollment ERD

Page 30: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 37

Refined University course enrollment ERD

Page 31: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 38

RMO Customer Support ERD

Page 32: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 39

Procedure for Developing an Initial List of Things

Step 1: Using the event table and information about each event, identify all nouns about system

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

Page 33: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 40

The Class Diagram

Models classes of objects instead of data entities

Generalization/specialization hierarchies

General superclasses to specialized subclasses

Inheritance allows subclasses to share characteristics of their superclasses

Aggregation (whole-part hierarchies)

Relates objects and its parts

Defines object in terms of its parts

Page 34: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 41

A Generalization/Specialization Hierarchy for Motor Vehicles

Page 35: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 42

A Generalization/Specialization Hierarchy for Orders

Page 36: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 43

Aggregation or Whole-Part Relationships

Page 37: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 44

The Class Symbol for the Class Diagram

Page 38: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 45

Bank Account System Class Diagram

Page 39: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 46

Enrollment Class Diagram with Association Class

Page 40: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 47

RMO Class Diagram

Page 41: 5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.

5

Systems Analysis and Design in a Changing World, 3rd Edition 48

Where You Are Headed