Docsity

Basic Modeling Notations - Software Engineering | Lecture Slides | CS 3773, Study notes of Software Engineering

Toggle sidebar
bg1
1
CS3773
Software Engineering
Lecture 7
Basic Modeling Notations
UTSA CS3773
2
Modeling Notations
Characteristics of a good modeling notation
¾Well-defined set of concepts
¾CASE tools support
¾Resulting in unambiguous, clear, consistent, and concise
specification
¾Stakeholders understanding them (graphical notation is good)
¾Ability to analyze (syntax, consistency checking)
UTSA CS3773
3
Basic Specification Notations
¾Most specification languages are a combination of notations
used to describe different aspects of system behavior
¾Many languages contain variants of the following basic
notations:
–Entity-relation diagrams (ER Digrams)
–Event Traces
–State machines
–Data flow diagrams
–Logic and functions
–Algebraic specifications
UTSA CS3773
4
Decomposition Strategies
¾Functional decomposition: break down a system into
functions, which complete certain tasks
e.g., date flow diagram
¾Process decomposition: break down a system into processes
that can run concurrently in reaction to events
e.g., state machine
¾Object Oriented decomposition: break down a system into
objects and describe features of each object and their
interactions
e.g., ER diagram
pf3
pf4
pf5

Partial preview of the text

Download Basic Modeling Notations - Software Engineering | Lecture Slides | CS 3773 and more Study notes Software Engineering in PDF only on Docsity!

CS3773Software Engineering^ Lecture

Basic^ Modeling Notations

Modeling Notations

Characteristics of a good modeling notation ¾^ Well-defined set of concepts ¾^ CASE tools support ¾^ Resulting in unambiguous, clear, consistent, and concisespecification ¾^ Stakeholders understanding them (graphical notation is good) ¾^ Ability to analyze (syntax, consistency checking)

UTSA CS

Basic Specification Notations

¾^ Most specification languages are a combination of notationsused to describe different aspects of system behavior ¾^ Many languages contain variants of the following basicnotations:–^ Entity-relation diagrams (ER Digrams)–^ Event Traces–^ State machines–^ Data flow diagrams–^ Logic and functions–^ Algebraic specifications

Decomposition Strategies

¾^ Functional decomposition: break down a system intofunctions, which complete certain taskse.g., date flow diagram ¾^ Process decomposition: break down a system into processesthat can run concurrently in reaction to eventse.g., state machine ¾^ Object Oriented decomposition: break down a system intoobjects and describe features of each object and theirinteractionse.g., ER diagram

UTSA CS

ER Diagram

¾^ ER diagram = entity-relation diagram ¾^ ER diagrams are used for database design ¾^ ER diagrams graphically represent problem domain:–^ Entities (“objects”)–^ Attributes (“properties”)–^ Relationships (often named with verbs) ¾^ In OO terms, the problem domain is called the conceptuallevel of description–^ Origins of class diagrams (UML)

6

ER Diagram – Legend

UTSA CS

ER Diagram – Example

8

ER Diagram

¾^ Advantages–^ It is simple (few symbols)–^ It provides an overview of the system ¾^ Disadvantages–^ What are modeled as entities or attributes?–^ May encourage too much detail

UTSA CS

State Machine

¾^ State machine describes dialog between system andenvironment graphically ¾^ State machine shows control flow:–^ Behavior depends on current state–^ State represents the history of input ¾^ State machine compactly represents of a set of eventtraces

14

State Machine – Legend

UTSA CS

State Machine - Example

16

State Machine

¾^ Advantages–^ Most formal (least ambiguity)–^ Compact way to represent many behaviors ¾^ Disadvantages–^ More complex–^ Not showing functional decomposition

UTSA CS

Data Flow Diagram

¾^ Data flow diagram (DFD) models high-level functionality ofa system ¾^ DFD represents the flow of data among componentsgraphically

18

Data Flow Diagram

-^ Legend

UTSA CS

Data Flow Diagram – Example

20

Data Flow Diagram

¾^ Advantages–^ Simple–^ Good for functional decomposition ¾^ Disadvantages — ambiguities–^ When do functions get executed–^ If multiple inputs, are they all needed–^ Can't distinguish data and control signals–^ If multiple outputs, are both always generated