modeling systems requirements: events and things

43
Modeling Systems Requirements: Events and Things

Upload: marlene-bradley

Post on 25-Dec-2015

219 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Modeling Systems Requirements: Events and Things

Modeling Systems Requirements: Events and Things

Page 2: Modeling Systems Requirements: Events and Things

2

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: Modeling Systems Requirements: Events and Things

3

Models and Modeling

• Analyst describes information system requirements using a collection of models

• Complex systems require more than one type of model

• Models represent some aspect of the system being built

• Process of creating model helps analyst clarify and refine design

• Models assist communication with system users

Page 4: Modeling Systems Requirements: Events and Things

4

Reasons for Modeling

Page 5: Modeling Systems Requirements: Events and Things

5

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 6: Modeling Systems Requirements: Events and Things

6

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 7: Modeling Systems Requirements: Events and Things

7

Models Used in Analysis

Page 8: Modeling Systems Requirements: Events and Things

8

Models Used in Design

Page 9: Modeling Systems Requirements: Events and Things

9

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

• Event that decompose system into manageable units

Page 10: Modeling Systems Requirements: Events and Things

10

Events Affecting a Charge Account Processing System

Page 11: Modeling Systems Requirements: Events and Things

11

Types of Events

• External– Outside system– Initiated by external agent or actor

• Person, supply unit, receive unit

• Temporal – Occurs as result of reaching a point in time– Based on system deadlines

• State– Something inside system triggers processing need

• Reorder point reached

Page 12: Modeling Systems Requirements: Events and Things

12

External Event Checklist

Page 13: Modeling Systems Requirements: Events and Things

13

Temporal Event Checklist

Page 14: Modeling Systems Requirements: Events and Things

14

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

– Systems controls to protect system integrity

– Perfect technology assumption defers events

Page 15: Modeling Systems Requirements: Events and Things

15

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

Page 16: Modeling Systems Requirements: Events and Things

16

Identifying Events

• It is not easy to distinguish between an external event and the system’s response.– When the customer buys the shirt, the system

requests a credit card number, and the customer supplies the credit card.

• Is the act of supplying the credit card an event?

– When the customer buys the shirt using his store credit account. The customer later pays the bill at the end of the month.

• Is the act of paying the bill is the processing part of the interaction involving the purchase?

Page 17: Modeling Systems Requirements: Events and Things

17

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

Page 18: Modeling Systems Requirements: Events and Things

18

Technology-Dependent Events and System Control

• Events that are important to the system but do not directly concern users or transactions.– Typically involve design choices or system controls– Temporarily ignore these events; they are important for the

design phase– e.g., logon, backup

• Perfect technology assumption– The event should be included during analysis only if the system

would be required to respond under perfect conditions- • that is, with equipment never breaking down, capacity for

processing and storage being unlimited, people operating system being completely honest and never make mistakes.

Page 19: Modeling Systems Requirements: Events and Things

19

Events Deferred Until the Design Phase

Page 20: Modeling Systems Requirements: Events and Things

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 21: Modeling Systems Requirements: Events and Things

21

Information about each Event in an Event Table

Page 22: Modeling Systems Requirements: Events and Things

22

RMO Event Table (Figure 5-6 partial)

Page 23: Modeling Systems Requirements: Events and Things

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– products, orders, invoices, customers

• Customer external agent places an order, the system needs to store information about the customer.

• Product is not external agent but the system need to store information about the product.

Page 24: Modeling Systems Requirements: Events and Things

24

Things and System Requirements

• 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 25: Modeling Systems Requirements: Events and Things

25

Types of Things

Page 26: Modeling Systems Requirements: Events and Things

26

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 27: Modeling Systems Requirements: Events and Things

27

Partial List of Things based on nouns for RMO

Identified Noun Notes on Including Noun as a Thing to store

Accounting We know who they are: No need to store it.

Back order A special type of order? Or a value of order status? Research

Back-order information An output that can be produces from other information

Bank Only one of them. No need to store

Catalog Yes, need to recall them, for different seasons and years. Include.

Catalog activity reports An output that can be produced from other information. Not stored

Catalog details Same as catalog? Or the same as product items in the catalog. Research.

Change request An input resulting in remembering changes to an order.

Page 28: Modeling Systems Requirements: Events and Things

28

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 29: Modeling Systems Requirements: Events and Things

29

Relationships Naturally Occur Between Things

Page 30: Modeling Systems Requirements: Events and Things

30

Cardinality/Multiplicity of Relationships

Page 31: Modeling Systems Requirements: Events and Things

31

Attributes and Values

Page 32: Modeling Systems Requirements: Events and Things

32

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 33: Modeling Systems Requirements: Events and Things

33

Simple Entity-relationship Diagram

Page 34: Modeling Systems Requirements: Events and Things

34

Cardinality Symbols of Relationships

Page 35: Modeling Systems Requirements: Events and Things

35

Expanded ERD with Attributes Shown

Page 36: Modeling Systems Requirements: Events and Things

36

Customers, Orders, and Order Items

Page 37: Modeling Systems Requirements: Events and Things

37

University course enrollment ERD

Page 38: Modeling Systems Requirements: Events and Things

38

Refined University course enrollment ERD

Page 39: Modeling Systems Requirements: Events and Things

39

RMO Customer Support ERD

Page 40: Modeling Systems Requirements: Events and Things

40

Where You Are Headed

Page 41: Modeling Systems Requirements: Events and Things

41

Summary

• Analysis Phase: Define system requirements • Models created to: further learning process,

reduce complexity, communicate with team members, and document requirements

• Many types of models used: – Mathematical, descriptive, graphical

• Key early step in modeling to identify and list:– Events that require a response from system – Things users deal with in work environment

Page 42: Modeling Systems Requirements: Events and Things

42

Summary (continued)

• Events are memorable, can be described, and occur at specific time and place

• External events occur outside system, triggered by someone interacting with system

• Temporal events occur at defined point in time, such as end of day or end of month

• State events based on internal system change

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

Page 43: Modeling Systems Requirements: Events and Things

43

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– Things are shown as data entities

• Object-oriented approach uses class diagrams for classes, attributes, methods of class, and associations among classes – Things are shown as objects belonging to a class