





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!






ยPaper One: On the Criteria To Be Used in Decomposing Systems into Modules -- by D. L. Parnas ยPaper Two: The Modular Structure of Complex Systems -- by D.L. Parnas, P.C. Clements and D.M. Weiss
ย Purpose ย A system design problem โ KWIC index ย Conventional approach ย Unconventional approach ย Comparison ย Criteria used in discomposing the system ย Another system design problem โ OFP ย Conclusion
ย Modularization: ย a mechanism for enhancing flexibility and comprehensibility ย Allowing shortening of development time
ย Effectiveness of modularization ย Depend on the criteria used in decomposing the system
ย A 1970 textbook by Gouthier and Pont A well-defined segmentation of the project effort ensures system modularity. Each task forms a separate, distinct program module. At implementation time each module and its inputs and outputs are well- defined, there is no confusion in the intended interface with other system modules. At checkout time the integrity of the module is tested independently; there are few scheduling problems in synchronizing the completion of several tasks before checkout can begin. Finally, the system is maintained in modular fashion, system errors and deficiencies can be traced to specific system modules, thus limiting the scope of the detailed error searching.
ย The development of coding techniques and assemblers allows ย one module to be rewritten with little knowledge of the code in another module ย Modules to be reassembled and replaced without reassembly of the entire system
9 Managerial Little need for communication When implementing individual modules Or changing individual modules 9 Product flexibility Change to one module will not cause change in another 9 Comprehensibility Whole system can be better understood Better designed All in all, lower cost
ย A KWIC index system is studied
Some basic concepts used in the analysis
ย Module ย Responsibility assignment ย Modularization ย System description ย Includes design decisions ย System level decisions
ย Input ย Accepts an ordered sets of lines ย Each line an ordered set of words ย Each word an ordered set of characters ย Any line can be circularly shifted ย Output ย a listing of all circular shifts of all lines ย In alphabetical order
ย Input
ย Output
work All play And no no play And Makes Jack a dull boy Jack a dull boy Makes dull boy Makes Jack a boy Makes Jack a dull And no play All work a dull boy Makes Jack
http://www.utdallas.edu/~agi012000/kwic3/index.html
Mod I Master Control
Input Output
Circular Shift Alphabetizing
core
1 (^2 )
4
ย Line Storage ย Input ย Circular Shifter ย Alphabetizer ย Output ย Master Control
But is it the same as Mod I?
ย Consists of functions or subroutines ย Provides means by which user of the module may call on it ย Examples: ย CHAR(r,w,c) ย SETCHAR(rpv, c, d) ย WORDS(r) ย Restrictions in calling the routines ย Additional routines ย Number of words in any line ย Number of lines currently stored ย Number of characters in any word ย DELINE ย DELWRD
ย Reads the original lines
ย Calls line storage module
ย Have them store internally
ย Functions analogs of functions in module 1 CSCHAR(l,w,c) CSSETUP ย create a line holder containing all of the circular shifts of lines
ย Consists of two functions ย ALPH ย Called first ย Alphabetizing ย ITH ย Serves as an index ย ITH(i) gives the index of the circular shift which comes ith in the alphabetical ordering
Give the desired printing of circular shifts
Similar to that of modularization one
Mod II Master Control
Input
Output
Circular Shift (^) Alphabetizing
Line Storage
Mod I Master Control
Input Output Circular Shift Alphabetizing
core
1 (^2 )
4
ย Both will work ย Algorithms used might be same ย Identical runnable representation ย Yet other representation different ย Changing ย Documenting ย understanding
ย Mod II: Information Hiding (IH) ย No longer correspond to steps in the processing ย Every module knows its design decision ย Other modules donโt have this knowledge ย Interface reveals as little as possible
ย Advise against ย decomposing a system based on flowchart ย Propose ย Taking the IH approach ย Begin with a list of difficult design decisions ย Or design decisions which are likely to change ย Each module hides such decision from others
ย More about information hiding
ย An example: OFP for A-7E aircraft
ย Stands for Onboard Flight Program ย A project for A-7E aircraft ย SW by the Naval Research Lab ย A real-time program ย processes flight data ย Controls displays for the pilot ย Computes the aircraft position ย Using internal navigation system ย Must be accurate!!
ย Top Level
Behavior Module
Hardware Module Software Design Module HM SM
BM
HM
BM
SM
Extended computer
Device Interface
Shared services
ApplicationData Types
Filter Behavior System generation
BankerData
Physical Utility
Software utility
Function driver
ย Criterion we mentioned before โ IH ย Likelihood to change ย System details likely to change independently should be secrets to itself ย Interfaces between modules include information less likely to change ย Data structure ย Only accessible to modules inside itself ย Others obtain information by calling its access methods
ย Roles played by individual modules ย Secrets associated with each module ย Facilities provided by each module Also called module specifications How to use the module What does the module do
ย Primary secrets ย Hidden information ย Specified to the software designer ย Secondary secrets ย Implementation decision ย When implementing the module
ย Two system examples ย Two modularizations ย IH criterion is advisable ย Flowchart approach is less desirable ย Likelihood to change is an measurement of effectiveness of modularization
ย The Modular Structure of Complex Systemsโ by D. L. Parnas, P.C. Clements, D. M. Weiss ย Enhancing Reusability with Information Hiding โ by D. L. Parnas, P.C. Clements, D. M. Weiss ย http://fxvcl.sourceforge.net/kwicIndex.html ย http://www.utdallas.edu/~vxs037000/kwic/class_diagram.htm ย http://www.ipsj.or.jp/members/Magazine/Eng/0906/article001. html ย http://www.cacs.louisiana.edu/~arun/courses/453.Fall01/home/ assignment2/kwic1.9alpha.doc
Help from Dr. Coppit