Creating a hybrid Functional-OO Design
- Do a functional decomposition and draw a structure chart.
- Using the Data Model from the Analysis phase, identify
entities which are good candidates for data abstraction.
(E.g., the Board in the Traffic Jam puzzle).
- Write an initial definition for the ADT (abstraction,
structure, elements).
- Using the Structure Chart, identify the modules which
will become the operations which act on the ADT. (E.g.,
Update_Board). Add the list of these operations to the
ADT definition.
- Revise the module names in the structure chart by
prefixing the ADT name to the module names. (E.g.,
Update_Board becomes Board.Update).
- Complete the ADT definition and code it in your
implementation language.
- Write module headers for all the remaining modules in the
structure chart (those which are NOT operations on some
ADT). Code these in your implementation language.
- Compile the design.