Docsity

Data Modeling: Techniques, Role, and Importance in Software Engineering, Study notes of Software Engineering

Partial preview of the text

Download Data Modeling: Techniques, Role, and Importance in Software Engineering and more Study notes Software Engineering in PDF only on Docsity!

So far, we've employed control flow

modeling to describe the time-varying

behavior of a program.

structure

flow

We can also model data :

Data modeling Wednesday, September 23, 2009 1:14 PM Docsity.com

The techniques we are using are used for

both requirements analysis and design.

We are thus collecting data for two distinct

reasons.

This leads to some tension -- reflected in the

book.

Caveat Wednesday, September 12, 2012 4:31 PM Docsity.com

Example: Jackson modeling Wednesday, September 12, 2012 4:34 PM Docsity.com

Maximize cohesion.

Minimize coupling.

Extenuating circumstances Wednesday, September 12, 2012 4:35 PM Docsity.com

Minimize coupling Wednesday, September 12, 2012 4:34 PM Docsity.com

The most effective visualization of a thing is

something that is obvious once shown, but

counter-intuitive until it's shown.

Make up some diagrams with coupling and

cohesion properties.

Make the whole process of breaking the

thing into pieces relatively obvious.

Consider multiple dimensions of the

problem.

Game:

Principle of effective visualization Wednesday, September 12, 2012 4:41 PM Docsity.com

lists the nouns in the problem description

codifies their attributes and relationships

First step in data modeling: the data

dictionary

The Data Dictionary Wednesday, September 23, 2009 1:16 PM Docsity.com

An ATM machine reads a customer' s card number from a credit card. It then asks the customer to type the last four digits of the card number, and compares them with the number read from the card to make sure it read the card correctly. If the numbers match, the ATM machine asks the customer for a PIN code and compares that with a PIN code stored on its central server for the card number. If those match, the customer is given access; otherwise access is denied. Example Wednesday, September 23, 2009 1:53 PM Docsity.com

An ATM machine reads a customer' s card number from a credit card. It then asks the customer to type the last four digits of the card number, and compares them with the number read from the card to make sure it read the card correctly. If the numbers match, the ATM machine asks the customer for a PIN code and compares that with a PIN code stored on its central server for the card number. If those match, the customer is given access; otherwise access is denied. card number credit card contains: credit card last four digits "is an attribute of" credit card number PIN code customer provides: credit card number (key) PIN code table of central server contains: Fancy word for this set of relationships is a "data ontology": set of terms and their relationships. Data dictionary Wednesday, September 23, 2009 1:59 PM Docsity.com

A data flow diagram encodes the concept of

"provides" A - > B means A provides data to

B.

Data flow diagrams Wednesday, September 12, 2012 4:49 PM Docsity.com

"Abstract away" time-varying behavior and describe

only information exchange.

Make some potentially difficult problems easier to

represent.

Allow easy determination of the interfaces required

between entities.

Purposes of data flow diagrams

Purposes of data flow diagrams Wednesday, September 23, 2009 2:09 PM Docsity.com

sometimes things can happen independently of one

another.

○ the control flow graph gets complicated.

○ the data flow graph may remain simple.

One real strength of data flow analysis: coping with

asynchronous behaviors.

Asynchrony Wednesday, September 23, 2009 2:11 PM Docsity.com

Jackson diagrams

Structure diagrams

Class diagrams

A second kind of modeling: data structure

Next part of the problem: define the

interfaces necessary for data flow

Data structure Wednesday, September 23, 2009 2:19 PM Docsity.com

An ATM machine reads a customer' s card number from a credit card. It then asks the customer to type the last four digits of the card number, and compares them with the number read from the card to make sure it read the card correctly. If the numbers match, the ATM machine asks the customer for a PIN code and compares that with a PIN code stored on its central server for the card number. If those match, the customer is given access; otherwise access is denied. Jackson structure diagrams Wednesday, September 23, 2009 2:20 PM Docsity.com