Lecture 8
Lecture 8
Lecture #8
Fakhar Lodhi
Recap
State Transition
Diagram
Refer, Transfer
Create
* Disabled
Reject
Approve + open
Queued Open/active
Defer Clear
Cancel
Release Re-open
Cancel
Close
Closed
NOTE – In this model escalation is not considered to be a separate state, rather it is modelled as a function that
applies to a trouble which is in the open/active state.
FIGURE 2
State transition diagram for trouble reports
State Diagram An Example
Create
Refer, Transfer
Approve
+ Open
Reject
Queued Open/Active *disabled
Cl
ea
Release
Re r
Defer
-o
Cancel
pe
el
nc n
Ca
Deferred Cleared
cel
n
Ca
Close
Closed
Process External
Agent
Data Store
DFD versus Flow
Charts
• Processes on a data • Processes on
flow can operate in flowcharts are
parallel. sequential.
• Looping and • Show the
branching are sequence of steps
typically not shown. as an algorithms
• Each process path and hence looping
may have a very and branching are
different timing. part of flowcharts.
DFD Example
Reconcile Deposit Other
Monthly
Account Funds into Income
Acct Stmt
Balance an Account Sources
Bank
Accounts
Account Employer
Transactions
Withdraw Pay
funds from a
an Account Bill
Bank Creditor
Common Mistakes
Generate an
employee Bank Statement Employee
bank stmt insufficient
Existing Employee input data
Accounts Address Membership
This Application
process Create a new
Member
Accounts has no Employee member
Employees
account
inputs Status
New
Account Frozen
Status Freeze ThisAccount Accounts
memberprocess Receivable
Notification Department
accounthas no
outputs
Illegal Data Flows
B1
B2
A process is
needed to
B1 exchange data B2
between
external agents
Illegal Data Flows
B1
Data
Store
A process is
needed to Data
B1 update a data Store
store
Illegal Data Flows
B1
Data
Store
A process is
needed to Data
B1 use a data Store
store
Illegal Data Flows
Data
Store
Data
Store
A process is
needed to
Data Data
copy data from
Store Store
one data store
to another
Tabular Structures
Data Flow Diagrams
DFD
The Notation
DFD
versus
Flow Charts
Summary of Today’s
Discussion
Tabular Method An
Example
but does not exceed Rs. 300,000
then the income tax will be
computed at 12.5% of the amount
exceeding Rs. 150,000 plus Rs.
6,750. If the income exceeds Rs.
300,000 but does not exceed Rs.
400,000 then the income tax will
be computed at 20% of the
amount exceeding
Tabular Method An
Example
Rs. 300,000 plus Rs. 25,500. If the
income exceeds Rs. 400,000 by
does not exceed Rs. 700,000 then
the income tax will be computed at
25% of the amount exceeding Rs.
400,000 plus Rs. 45,500. If the
income exceeds Rs. 700,000 then
the income tax will be computed at
35% of the amount exceeding Rs.
700,000 plus Rs. 120,500.
Data Functions: EIs, EOs
and EQs
– other than, or in addition to, the
retrieval of data or control
information . The processing logic
must contain at least one
mathematical formula or
calculation, or create derived
data. An external output may also
maintain one or more ILFs and/or
alter the behavior of the system.
Data Functions: EIs, EOs
and EQs
– or control information from an
ILF or EIF. The processing logic
contains no mathematical
formulas or calculations, and
creates no derived data. No ILF is
maintained during the
processing, nor is the behavior of
the system altered.