Docsity

A Roadmap - Software Engineering - Lecture Notes | CSCI 4700, Study notes of Software Engineering

Partial preview of the text

Download A Roadmap - Software Engineering - Lecture Notes | CSCI 4700 and more Study notes Software Engineering in PDF only on Docsity!

A Roadmap

 Use-cases

 Use-case diagrams

 Activity diagrams

 Swimlane diagrams

 ERD diagrams

 Data flow diagrams

 Process specifications

We are going to examine some of the key tools used for creating an analysis model. General Structured Analysis OO Analysis

 Class diagrams

 Packages

 CRC cards

 Sequence Diagrams

These tools are not specific to either structured analysis or OO analysis.

2 Requirements Modeling Strategies

 One view of requirements modeling, called structured analysis,

considers data and the processes that transform the data as

separate entities.

 (^) Data objects are modeled in a way that defines their attributes and relationships.  (^) Processes that manipulate data objects are modeled in a manner that shows how they transform data as data objects flow through the system.

 A second approach to analysis modeled, called object-oriented

analysis, focuses on

 (^) the definition of classes and  (^) the manner in which they collaborate with one another to effect customer requirements.

Entity Relationship Diagram

 (^) An entity relationship diagram is an abstract and conceptual representation of data.  (^) The first stage of these models is used during requirements analysis to describe needs or the type of information that is to be stored in a database.  (^) This conceptual data model can be at a later stage mapped to a logical data model, such as the relational model.

The Building Blocks: Entities, Relationships, and

Attributes

An entity is defined as a thing which is recognized as being capable of an independent existence and which can be uniquely identified. Examples: a house, a car. They can be thought of as nouns.  A relationship captures how two or more entities are related to one another. Relationships can be thought of as verbs linking two or more nouns. Examples:

 An owns relationship between a company and a computer

 A performs relationship between an artist and a song.

Relationships, Cardinality, Modality

Cardinality

 Defines the number of items

on either end of a connection

Relationships

 Define connections between

objects

Modality

 Defines the necessity of a

connection

Person Car insured owns 1 1

Trailer attached 1 1 Entity-Relationship Diagram (ERD)

ERD Notations

Data Flow Diagrams

 Models data elements

 (^) Attributes  (^) Relationships

 Models processes that

transform data

Structured Analysis:

 Data object diagrams

 ERD diagrams

modeled using

 Data flow diagram

 Process narrative

modeled using A data flow diagram describes information flow among a set of processes and actors. A process narrative describes how a single process transforms input data to output data. Modeling Tools: **1


How are DFDs Constructed?

Grammatical parse Develop process narratives Level 0 DFD Scope document Grammatical parse Next level DFD

(nouns = external entities, data/control objects, data stores)

(verbs = processes)

Note that nouns and verbs are associated with one another.

14

The Flow Model

Every computer-based system is an Every computer-based system is an information transform .... information transform ....

computer computer

based based

system system

input input outputoutput

16

External Entity

A producer or consumer of data A producer or consumer of data Examples: Examples: a person, a device, a sensora person, a device, a sensor Another example: computer-based Another example: computer-based system system Data must always originate somewhere and must always be sent to something

17

Process

A data transformer (changes input A data transformer (changes input to output) to output) Examples: Examples: compute taxes, determine area,compute taxes, determine area, format report, display graph format report, display graph Data must always be processed in some way to achieve system function

19

Data Stores

Data Data is often stored for later use.is often stored for later use. look-up look-up sensor sensor data data sensor # sensor # report required report required sensor #, type, sensor #, type, location, age location, age sensor data sensor data sensor numbersensor number type, type, location, age location, age

20

Data Flow Diagramming: Guidelines

all icons must be labeled with meaningful

names

 the DFD evolves through a number of levels

of detail

always begin with a context level diagram

(also called level 0)

 always show external entities at level 0

 always label data flow arrows

do not represent procedural logic