



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




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
¾^ 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
¾^ 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 = 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
UTSA CS
8
¾^ 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 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
UTSA CS
16
¾^ Advantages–^ Most formal (least ambiguity)–^ Compact way to represent many behaviors ¾^ Disadvantages–^ More complex–^ Not showing functional decomposition
UTSA CS
¾^ Data flow diagram (DFD) models high-level functionality ofa system ¾^ DFD represents the flow of data among componentsgraphically
18
-^ Legend
UTSA CS
20
¾^ 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