Lecture 7 Functional and Design Descriptions

Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development (3rd Edition)

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
Copyright W. Howden 1 Lecture 7: Functional and OO Design Descriptions
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 2 Executable Units • Functional – Procedures – Functions – Subroutines • Modules – Collections of procedures – Interface procedures • Object Oriented – Classes – Interfaces – Class methods • Components – Collections of classes – Interface classes
Background image of page 2
Copyright W. Howden 3 Functional Design • Module connection/relationship models • Design development – Top down design – Program refinement • Module/Procedure call/use diagrams • Algorithm design descriptions – Pseudo-Code – Nassi-Schneiderman diagrams – Decision Tables
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 4 Object Oriented Design • Component connection/relationship models • Design development – interaction sequence, collaboration diagrams – visibility analysis • Design Diagrams – Class Structure • Method design descriptions – algorithm design descriptions
Background image of page 4
Copyright W. Howden 5 Functional Design Diagrams – Function Interactions • Tree structure • Nodes are procedures or modules • Arcs are calls or uses • Arc notation: shows flow of data from one node to another: data couples • Computational and control flow couples
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 6
Background image of page 6
Copyright W. Howden 7 DS Top Down Design DS process Dater or Admin process Dater process GetADate or SetMember Data process Filemanager process Admin process Add or Delete process FileManager process
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 8 DS PseudoCode and Program Refinement Member Data getADate(DaterPreferences daterPrefs) { Record record; Boolean match = false; record = filemanager(“getFirst”); see if record matches daterPrefs and set match while ((record =/ null) and (match == false)) { record = filemanager(“getNext); see if record matches daterPrefs and set match } if (match = = false) return null else return record; }
Background image of page 8
Copyright W. Howden 9 Data Visibility For Functional Programs • Data item: a function f uses or accesses a data item. How do we enable it to access and manipulate this data. – Local variable: declare one and assign data to it – Parameter: accessed passed data using formal parameter, or assign it to a local variable – Assign and reference data via a global variable
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 10 Type Visibility of Functional Programs • Variable declarations involve a type • Type definition visibility – Global generic types – Global struct definitions (C ) – Local struct definitions – Includes files
Background image of page 10
Copyright W. Howden 11 Object Oriented Design Diagrams – Class Models • Graph structure • Nodes correspond to classes • Arcs are relationships between classes • Visibility analysis in class diagrams – Solid arc from A to B indicates A has a class variable whose values are instances of B – Dotted arcs indicate other kinds of visibility implementations
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright W. Howden 12 Diagram Details • Nodes/Classes – Attributes: associated simple variables – Names and signatures of methods – Similar to Domain model classes, + methods • Arcs – type of relationship, roles, multiplicity • Separate details: for readability
Background image of page 12
Copyright W. Howden
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 46

Lecture 7 Functional and Design Descriptions - Lecture 7:...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online