Engineering Design Resolution & Design Principles: © 2007 Pearson Education, Inc. Publishing As Pearson Addison-Wesley
Engineering Design Resolution & Design Principles: © 2007 Pearson Education, Inc. Publishing As Pearson Addison-Wesley
Objectives
To distinguish architectural and detailed design To catalog the contents of architectural and detailed design specifications To present acronyms for design specifications To present engineering design principles To arrange these principles in a taxonomy to help understand and remember them
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Topics
Architectural and detailed design in the engineering design process Architectural design specifications Detailed design specifications Engineering design principles Basic principles Constructive principles A software engineering design principles taxonomy
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
SRS
Analyze SRS
Analysis
Generate/Improve Candidate Architectures Evaluate Candidate Architectures Architectural Design Select Architecture [else] [adequate architecture] Finalize Architecture
Generate/Improve Detailed Design Alternatives Evaluate Detailed Design Alternatives Select Detailed Design [else] [else] [adequate detailed design] [adequate architecture] Finalize Design Design Document Detailed Design
Architectural Design
Architectural design is the activity of specifying a programs major parts; their responsibilities, properties, and interfaces; and the relationships and interactions among them.
Detailed Design
Detailed design is the activity of specifying the internal elements of all major program parts; their structure, relationships, and processing; and often their algorithms and data structures.
Mid- and low-level design Black boxes Detailed design shades into coding
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
DeSCRIPTR
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
DeSCRIPTR-PAID
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
make a design better able to meet stakeholder needs and desires. Constructive principles state, based on experience, that certain engineering design characteristics make a design better.
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Basic Principles
FeasibilityA design is acceptable only if it can be realized. AdequacyDesigns that meet more stakeholder needs and desires, subject to constraints, are better. EconomyDesign that can be built for less money, in less time, with less risk, are better. ChangeabilityDesign that make a program easier to change are better.
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
10
Constructive Principles
Modularity principlesGood design are modular; these principles help evaluate whether designs specify good modules. Implementability principlesGood designs are easier to build; these principles help evaluate whether designs will be easy to implement. Aesthetic principlesGood design are beautiful; these principles help pick out beautiful designs.
11
Modularity
A modular program is composed of well-defined, conceptually simple, and independent units that communicate through well-defined interfaces.
12
Advantages of Modularity
Easier to understand and explain Easier to document Easier to change Easier to test and debug More reusable Easier to tune
13
What Is a Module?
A module is a program unit with parts.
Immediate parts are those directly below the whole in the parts hierarchy. Program
Sub-programs or sub-systems
Packages, compilation units
Classes, functions Attributes, operations, blocks - Lines of code
14
Modularity Principles 1
Small ModulesDesigns with small modules are better. Information HidingEach module should shield the details of its internal structure and processing from other modules. Least PrivilegeModules should not have access to unneeded resources.
15
Modularity Principles 2
CouplingModule coupling should be minimized.
Coupling is the degree of connection between
pairs of modules.
16
Implementability Principles
SimplicitySimpler designs are better. Software reuse is the use of existing artifacts to build new software products; reusable artifacts are called assets. Design with ReuseDesigns that reuse existing assets are better. Design for ReuseDesigns that produce reusable assets are better.
17
Aesthetic Principles
BeautyBeautiful (simple and powerful) design are better. Are there other aesthetic principles?
Symmetry Balance Proportion
18
19
20
Summary 1
Architectural design is high-level specification of major program parts. Detailed design is mid-level and low-level specification of program units. DeSCRIPTR specifications for architectural design DeSCRIPTR-PAID specifications for detailed design
21
Summary 2
The basic principles of Adequacy, Economy, Feasibility, and Changeability are about meeting stakeholder needs. The constructive principles are based on engineering experience.
Modularity principles: Small Modules, Information Hiding, Least Privilege, Coupling, and Cohesion Implementability principles: Simplicity, and Design with and for Reuse. Aesthetic principle: Beauty.
2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
22