Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating...

50
Modeling System Requirements: Events and Things

Transcript of Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating...

Page 1: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Modeling System Requirements:

Events and Things

Page 2: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Objectives

• Explain the many reasons for creating information system models

• Describe three types of models and list some specific models used for analysis and design

• Explain how events can be used to define system requirements

• Identify and analyze events to which a system responds

Page 3: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Objectives

• Explain how the concept of things in the system also defines requirements

• Explain the similarities and the differences between data entities and objects

• Read and interpret an entity-relationship diagram

• Read and interpret a class diagram

Page 4: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Overview• Models are frequently used for

documenting functional requirements

– Created during analysis activity phase called ‘define system requirements’

– Focus on events and things

• Models are used in both the traditional and object-oriented approach

Page 5: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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

Page 6: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Analyst Uses Collection of Models to Understand System Requirements

Figure 5-1

Page 7: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Reasons for ModelingFigure 5-2

Page 8: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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 9: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Some Descriptive ModelsFigure 5-3

Page 10: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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 11: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Models Created During the Analysis PhaseFigure 5-4

Page 12: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Some Models Created During the Design Phase

Figure 5-5

Page 13: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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 14: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Events Affecting a SystemFigure 5-6

Page 15: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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

need for processing

Page 16: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

External Event ChecklistFigure 5-7

Page 17: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Temporal Event ChecklistFigure 5-8

Page 18: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

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

– Perfect technology assumption

Page 19: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Sequence of Actions that Lead up to an Event Affecting the System

Figure 5-9

Page 20: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

The Sequence of “Transactions” for One Specific Customer

Figure 5-10

Page 21: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Events Deferred Until the Design Phase

Figure 5-11

Page 22: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

External Events for the RMO Customer Support System

Figure 5-12

Page 23: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Temporal Events for the RMO Customer Support System

Figure 5-13

Page 24: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Information about each Event in an Event Table

Figure 5-14

Page 25: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Event Table for RMO Customer Support System

Figure 5-15

Page 26: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Event Table for RMO Customer Support System

Figure 5-15 (continued)

Page 27: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Things and System Requirements

• What system information needs to be stored

• Outcomes – Understanding of system

– Set of models

Page 28: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Types of ThingsFigure 5-16

Page 29: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Characteristics of Things• Relationship

– Naturally occurring association among specific things

– Occur in two directions– Cardinality/multiplicity

• Binary, unary, ternary, n-ary

• Attribute– One specific piece of information

about a thing

Page 30: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Relationships Occur Naturally Among Things

Figure 5-17

Page 31: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Cardinality of RelationshipsFigure 5-18

Page 32: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Attributes and ValuesFigure 5-19

Page 33: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Data Entities• Things the system needs to store

data about in traditional IS approach

• Modeled with entity-relationship diagram

• Generally used with relational database development

Page 34: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Objects• Do the work in the system and store

information

• Behavior and attributes

• Type of thing is called a class, specific thing is an object

• Behaviors of objects are called methods

Page 35: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Data Entities Compared to ObjectsFigure 5-20

Page 36: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Simple ERDFigure 5-21

Page 37: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Cardinality Symbols of RelationshipsFigure 5-22

Page 38: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Expanded ERD with Attributes Shown

Figure 5-23

Page 39: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Customers, Orders, and Order Items

Figure 5-24

Page 40: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

A University Course Enrollment ERD with a Many-to-Many Relationship

Figure 5-25

Page 41: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

A Refined University Course Enrollment ERD with an Associative

EntityFigure 5-26

Page 42: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

RMO Customer Support System ERD without Attributes Shown

Figure 5-27

Page 43: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

The Class Diagram– Classes objects rather than data

entities– Generalization/specialization

hierarchies•General superclass 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 44: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

A Generalization/Specialization Hierarchy for Motor Vehicles

Figure 5-28

Page 45: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

A Generalization/Specialization Hierarchy for Orders

Figure 5-29

Page 46: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Aggregation or Whole-Part RelationshipsFigure 5-30

Page 47: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

The Class Symbol for the Class Diagram

Figure 5-31

Page 48: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

A Bank Account Class DiagramFigure 5-32

Page 49: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

RMO Class DiagramFigure 5-33

Page 50: Modeling System Requirements: Events and Things. Objectives Explain the many reasons for creating information system models Describe three types of models.

Requirements Models for the Traditional Approach and the Object-Oriented

ApproachFigure 5-34