Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Analysis Patterns-Patterns in Software Engineering-Lecture 19 Slides-Computer Engineering, Slides of Software Engineering

Analysis Patterns, Supporting Patterns, Layered Architectures, Type Model Design Templates, Association Patterns, Associative Type, Keyed Mapping, Historic Mapping, Raman Ramsin, Lecture Slides, Patterns in Software Engineering, Department of Computer Engineering, Sharif University of Technology, Iran.

Typology: Slides

2011/2012

Uploaded on 02/19/2012

hester
hester 🇮🇷

4.5

(13)

85 documents

1 / 21

Toggle sidebar

Related documents


Partial preview of the text

Download Analysis Patterns-Patterns in Software Engineering-Lecture 19 Slides-Computer Engineering and more Slides Software Engineering in PDF only on Docsity! Patterns in Software Engineering Lecturer: Raman Ramsin Lecture 19 Analysis Patterns Part 2 Department of Computer Engineering 1 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns Th ti tt d ib h t t k l i tte suppor ng pa erns escr e ow o a e ana ys s pa erns and apply them: Layered Architecture for Information Systems: These patterns consider the architecture for a client/server information system and how such a system can be layered to improve its maintainability. Patterns for Type Model Design Templates: These patterns focus on how conceptual models can be implemented, suggesting common patterns to turn analysis patterns into software. Association Patterns: These patterns focus on examining modeling techniques themselves and how advanced modeling constructs can be viewed as patterns. Department of Computer Engineering 2 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Layered Architectures - Tiered Architectures Two Tier Three Tier Department of Computer Engineering 5 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Layered Architectures - Presentation & Application Logic Problem: Application software handles both interpretation of the domain model and driving the user interface. Solution: Separate the application tier into presentation (user interface) and application logic (dealing with the domain model). Structure the application logic as a set of facades for the presentation. Department of Computer Engineering 6 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Layered Architectures - Presentation & Application Logic Department of Computer Engineering 7 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Type Model Design Templates – Implementing Generalizations Problem: Implementing generalization, especially if multiple and dynamic classification is involved. Solution: Use inheritance. Use classes for each combination of subtypes with multiple inheritance . Use an internal flag. Delegate to a hidden class (state pattern). Copy and replace. Department of Computer Engineering 10 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Type Model Design Templates – Object Creation P bl C i bjro em: reat ng an o ect. Solution: Use a creation method with arguments for all mandatory and immutable mappings . Department of Computer Engineering 11 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Type Model Design Templates – Object Destruction Problem: Destroying an object. Solution: Have a specific destruction method. Define how much the delete should cascade. Department of Computer Engineering 12 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Association Patterns - Associative Type Problem: Adding features to an association. Solution: Create a type for the association. Use a special notation. Department of Computer Engineering 15 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Association Patterns - Associative Type Department of Computer Engineering 16 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Association Patterns - Keyed Mapping P bl R i l i i h k d ffro em: epresent ng va ues n a mapp ng t at are eye o another type. Solution: Use a keyed mapping . Department of Computer Engineering 17 Sharif University of Technology Patterns in Software Engineering – Lecture 19 Supporting Patterns: Association Patterns - Historic Mapping Department of Computer Engineering 20 Sharif University of Technology Patterns in Software Engineering – Lecture 19 R fe erence Fowler, M., Analysis Patterns: Reusable Object Models, Addison- Wesley, 1997. Department of Computer Engineering 21 Sharif University of Technology