Documente Academic
Documente Profesional
Documente Cultură
Example No 1
The DFD takes an input-process-output view of a system. That is, data
objects flow into the software, are transformed by processing elements, and
resultant data objects flow out of the software. Data objects are represented
by labeled arrows, and transformations are represented by circles (also
called bubbles). The DFD is presented in a hierarchical fashion. That is, the
first data flow model (sometimes called a level 0 DFD or context diagram)
represents the system as a whole
A level 0 DFD for the security function is shown in Figure. The primary
external entities (boxes) produce information for use by the system and
consume information generated by the system.
The level 0 DFD must now be expanded into a level 1 data flow model. Let us
consider the narrative of the Safehome
During installation, the SafeHome PC is used to program and configure the
system. Each sensor is assigned a number and type, a master password is
programmed for arming and disarming the system, and telephone number(s)
are input for dialing when a sensor event occurs.
When a sensor event is recognized, the software invokes an audible alarm
attached to the system. After a delay time that is specified by the
homeowner during system configuration activities, the software dials a
telephone number of a monitoring service, provides information about the
location, reporting the nature of the event that has been detected. The
2
The homeowner receives security information via a control panel, the PC, or
a browser, collectively called an interface. The interface displays prompting
messages and system status information on the control panel, the PC, or the
browser window.
Think through the activities that take place at a lemonade stand. Create a list
of activities:
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Also think of the additional activities needed to support the basic activities.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
Customer Order
Serve Product
Collect Payment
Group 2
Produce Product
Store Product
Order Raw Materials
Group 3
Create a context level diagram identifying the sources and sinks (users).
5
Create a level 0 diagram identifying the logical subsystems that may exist
Customer Order
Collect Payment
Serve Product
Produce Product
Store Product
Example No 3
University Registration System. The system should enable staff of each
academic department to examine the modules offered by their department,
add and remove modules, and change the information about them (e.g. the
maximum number of students permitted). It should permit students to
examine currently available modules, add and drop modules to and from
their schedules, and examine the modules for which they are enrolled.
Department staff should be able to print a variety of reports about the
modules and the students enrolled in them. The system should ensure that
no student takes too many modules and that students who have any unpaid
fees are not permitted to register (students can verify their fee paying
status). Note: assume that a fees data store is maintained by the universitys
financial office and this data store is accessed by the registration system but
the fees data store is not modified by the registration system.
Class Task: Draw level 0 and level 1 diagram for the following
system
Home Task: Bus Garage Repairs
A mechanic and helper perform the repair, record the reason for the
repair and record the total cost of all parts used on a Shop Repair
Order.
Information on labor, parts and repair outcome is used for billing by the
Accounting Department, parts monitoring by the inventory
9
10