Professional Documents
Culture Documents
ModuleReference
Diagrammatic convention: ModuleName
Modularization criteria:
coupling: The degree of interconnection between modules.
cohesion: The strength of relationship between elements of a
particular module; the “single mindedness of purpose” of the
module.
(a) (b)
Transformational Flow
Data “continuously” moves through a collection of incoming flow
processes, transform center processes, and finally outgoing flow
processes.
Transactional Flow
Data “continuously” moves through a collection of incoming flow
processes, reaches a particular transaction center process, and then
follows one of a number of actions paths. Each action path is again a
collection of processes.
M1
control
M2 M3 M4
input process output
.. ..
incoming
flow .
transform
center
. outgoing
flow
6. Factor and refine the transaction structure and the structure of each
action path.
M4
action 1
… Mn+3
action n
Scope of control of a module: that module plus all modules that are
subordinate to it in its associated structure chart.
After structure charts have been developed and refined, the following
tasks must be completed.
A processing narrative must be developed for each module.
SAFEHOME
off away stay
1 2 3
away
01 stay max test bypass
alarm instant
check bypass 4 5 6
fire not ready
instant code chime
7 8 9
armed power ready
* 0 #
panic
alarm
SafeHome type
alarm
software
sensor telephone
telephone
sensors status number tones
line
control configure
panel configure system configuration
request data
user commands
and data
configuration information
start
interact stop activate/ configuration configuration
with user deactivate data data
system
a/d msg. display
information control panel
password display display
valid id msg. messages and
process status
password
sensor
information alarm type alarm
monitor
sensors
sensor status sensors
telephone telephone
number tones line
CS646: Software Design and Architectures
E.g. (cont’d): Level 2 (monitor sensors)
sensor
information
format
for
display
configuration information
generate alarm type
sensor id,
alarm alarm
type,
configuration signal
location
data alarm
data
assess
against
setup
sensor id,
type telephone
number telephone
dial number tones telephone
phone line
sensor status read
sensors
sensors
monitor sensors
executive
monitor sensors
executive
monitor sensors
executive
M1
monitor sensors
executive
M2 M4 M5
acquire establish alarm alarm output
response info conditions controller
M3 M6 M7 M8
read sensors produce display generate alarm set up connection
signal to phone net
M9
generate pulses
to line
CS646: Software Design and Architectures
E.g. (cont’d): Level 2 (user interaction)
system raw
parameters configuration
and data read data build
control configuration information
system configuration
panel
data file
configure formatted
user system configuration
commands data configuration data
configure
command display
invoke start/stop activate/ a/d msg. display
read user type information control panel
command deactivate messages
command display
processing system and status
interact
with user
valid “try again”
password password message
four invalid
compare produce
read digits password
password invalid
password
with file message
process
password
user interaction
executive
M10
user interaction
executive
M11 M12
read user invoke command
command processing
M16 M22
monitor sensors process invalid
executive message