Beruflich Dokumente
Kultur Dokumente
Level 1 DFD 0
5
Systems Analysis and Modelling School of Information Systems and Accounting 5
Semester 2 2014 @ Faculty of BGL
DFD Rules (Recap)
6
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
DFD Rules (Recap) cont.
7
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Accessing Data Stores
1.2
Write, 1.1
Update write Read-
only
or Delete read Process
Process
Store
DataFlow
~~~~~~~~~
~~~~~~~~~
PSpec 1.1.1 ~~~~~~~~~
1.1.2 ~~~~~~~~~
~~~~~~~~~
~~~~~~~~~ 1.1.1 PROCESS
~~~~~~~~~
PROCESS
~~~~~~~~~
1.1.3
PSpecs typically occur STORE-A
lower down in the DFD PROCESS
structure. PSpec 1.1.3
• Optionally
Accounts
– Pre-conditions Account_Details
– Post-conditions
• How to produce outputs from inputs.
Should be:
– Readable
– Verifiable
– Understandable
– Precise
– Succinct
Accounts
Account_Details
» Sequence:
– The natural order of statements (sentences) within a PSpec.
– A PSpec should be read from top to bottom.
» Selection:
– IF - THEN - ELSE
– CASE (WHEN) - DO
» Iteration:
– REPEAT - UNTIL
– DO - WHILE
Systems Analysis and Modelling School of Information Systems and Accounting 17
Semester 2 2014 @ Faculty of BGL
Structured Language Guidelines
(continued)
19
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Structured English: An Example
of Purchase Process (1) cont.
(Bid Process)
SEND RFP
BEGIN IF
IF three Proposals received
AND Winning–Vendor is APPROVED by Purchasing–Department
AND no Violations
THEN AWARD contract
PURCHASE equipment
ELSE DO Rebid Process
END IF
RETURN
20
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Structured English: An Example
of Purchase Process (1) cont.
(Rebid Process)
SEND RFP
BEGIN IF
IF Winning–Vendor is APPROVED by Purchasing–Department
AND no Violations
THEN AWARD contract
PURCHASE equipment
END IF
ISSUE Purchase Order
RETURN
21
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Structured English: An Example
Sales Promotion Policy Procedure
(2)
If customer is a preferred customer
If customer orders more than $1000
Apply a 10% discount
If customer uses our credit card
Apply an additional 10% discount
End If
Else
Award a $50 bonus coupon
End If
Else
Award a $10 bonus coupon
End If 22
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Structured English: An Example (3)
25
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Decision Table models Logic
using:
• Condition stubs: that part of a decision table that
lists the conditions relevant to the decision
• Action stubs: that part of a decision table that lists
the actions that result for a given set of conditions
• Rules: that part of a decision table that specifies
which actions are to be followed for a given set of
conditions
27
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Procedure for Creating Decision
Table
1. Name the condition and the values
that each condition can assume.
2. Name all possible actions that can
occur.
3. List all possible rules.
4. Define the actions for each rule.
5. Simplify the table.
28
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Simplified Decision Table
29
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Decision Table: An Example (2)
30
Systems Analysis and Modelling School of Information Systems and Accounting
Semester 2 2014 @ Faculty of BGL
Decision Table for Calculating
Shipping Charges: An Example
(3)
• Measure of interdependence.
• Changes in one activity affect other activities.
• Data coupling
Data coupling is when modules share data through, for example, parameters. Each
datum is an elementary piece, and these are the only data shared (e.g., passing an
integer to a function that computes a square root).
• Control coupling
Control coupling is one module controlling the flow of another, by passing it information
on what to do (e.g., passing a what-to-do flag). “
• External coupling
External coupling occurs when two modules share an externally
imposed data format, communication protocol, or device interface.
This is basically related to the communication to external tools and
devices.
• Common coupling
Common coupling is when two modules share the same global data
(e.g., a global variable). Changing the shared resource implies
changing all the modules using it.
• Balancing again
• Entities
– Attributes
– Key attributes
• Relationships
– Reflexive Relationships
– Other complex relationships
(relationship loops)
Systems Analysis and Modelling School of Information Systems and Accounting 43
Semester 2 2014 @ Faculty of BGL
Key Attributes
• Primary Key Attributes
– The primary key of an entity unambiguously
distinguishes between occurrences of the entity
Driver
Make: Text
Model: Text
Unit
• “Order”
– What does this mean?
• “Create Order”
– This is an activity
Systems Analysis and Modelling School of Information Systems and Accounting 53
Semester 2 2014 @ Faculty of BGL
Good Events: Examples
Stakeholders
Verbs (in red)
And/or Nouns (in blue)
Coffee Shop
Customer
Bank
Wait Staff
Barista
Owner
Supplier
Cook
Government
Systems Analysis and Modelling School of Information Systems and Accounting 59
Semester 2 2014 @ Faculty of BGL
Some Events
{
• Seated Customer submits Order
External • Seated Customer pays for Order
• Take away Customer submits
and pays for Order
State
{• Beverage low point reached
• ERDs (continued)
• DFDs (continued)
• Data Dictionary