SlideShare a Scribd company logo
1 of 38
Software Design
SW Design
 Software design is an iterative process
through which requirements are translated
into a “blueprint” for constructing the
software.
 Initially, the blueprint depicts a holistic view of
software.
Process of Design Engineering
 During the design process the software
specifications are transformed into design models
 Models describe the details of the data structures,
system architecture, interface, and components.
 Each design product is reviewed for quality before
moving to the next phase of software development.
 At the end of the design process a design model
and specification document is produced.
 This document is composed of the design models
that describe the data, architecture, interfaces and
components.
Entity-
Relationship
Diagram
Data Flow
Diagram
State-Transition
Diagram
Data Dictionary
Process Specification (PSPEC)
Control Specification (CSPEC)
Data Object Description
THE ANALYSIS MODEL
procedural
design
interface
design
architectural
design
data
design
THE DESIGN MODEL
Design Specification Models
 Data design – created by transforming the analysis information
model (data dictionary and ERD) into data structures required to
implement the software. Part of the data design may occur in
conjunction with the design of software architecture. More
detailed data design occurs as each software component is
designed.
 Architectural design - defines the relationships among the
major structural elements of the software, the “design patterns”
than can be used to achieve the requirements that have been
defined for the system, and the constraints that affect the way in
which the architectural patterns can be applied. It is derived from
the system specification, the analysis model, and the subsystem
interactions defined in the analysis model (DFD).
Design Specification Models
 Interface design - describes how the software
elements communicate with each other, with other
systems, and with human users; the data flow and
control flow diagrams provide much of the
necessary information required.
 Procedural / Component-level design - created by
transforming the structural elements defined by the
software architecture into procedural descriptions of
software components using information obtained
from the process specification (PSPEC), control
specification (CSPEC), and state transition diagram
(STD).
7
Design - Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Abstraction
 Data Abstraction
 Procedural Abstraction
9
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Architecture Design
“The overall structure of the software and the ways in which that
structure provides conceptual integrity for a system.”
Design can be represented as
 Structural Models
 Defines the components of a system (e.g., modules, objects, filters) and
 How the components are packaged and interact with one another.
 Framework Models
 Increase level of abstraction
 Dynamic Models and Process Models
 Predicts behavioral and reliability aspects
 Functional Models
 Depicts functional Hierarchy.
11
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Patterns
 a pattern is “a common solution to a common
problem in a given context.” While architectural
styles can be viewed as patterns describing the
high-level organization of software (their
macroarchitecture), other design patterns can be
used to describe details at a lower, more local level
(their microarchitecture).
 Creational patterns (example: builder, factory,
prototype, and singleton)
 Structural patterns (example: adapter, bridge,
composite, decorator, façade, flyweight, and proxy)
 Behavioral patterns (example: command,
interpreter, iterator, mediator, memento, observer,
state, strategy, template, visitor)
Design Pattern
 Design Pattern enables a designer to
determine whether the pattern :
 is applicable to the current work
 can be reused
 can serve as a guide for developing a similar, but
functionally or structurally different pattern.
14
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Modular Design
 Easier to change
 Easier to build
 Easier to maintain
Modularity: Trade-offs
What is the "right" number of modules for a
specific software design?
Sizing Modules: Two
Views
MODULE
What's
inside??
How big
is it??
18
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Information Hiding
 Principle of information hiding says that a good split
of modules is when modules communicate with one
another with only the information necessary to
achieve the s/w function.
 So information hiding enforces access constraints to
both
 procedural detail with a module, and
 local data structure used by that module.
 Data hiding is a CRITERION for modular design.
 How to know what modules to create.
Information Hiding
module
controlled
interface
"secret"
• algorithm
• data structure
• details of external interface
• resource allocation policy
clients
a specific design decision
21
Information Hiding (Benefits)
 reduces the likelihood of “side effects”
 limits the global impact of local design
decisions
 emphasizes communication through controlled
interfaces
 discourages the use of global data
 leads to encapsulation—an attribute of high
quality design
 results in higher quality software
22
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
23
Functional
Independence
COHESION - the degree to w hich a
module performs one and only one
function.
COUPLING - the degree to w hich a
module is "connected" to other
modules in the system.
Cohesion
 Internal glue with which component is constructed
 All elements of component are directed toward and
essential for performing the same task
Range of Cohesion
High Cohesion
Low
Functional
Sequential
Communicational
Procedural
Temporal
Logical
Coincidental
Examples of Cohesion-1
Function A
Function
B
Function
D
Function
C
Function
E
Coincidental
Parts unrelated
Function A
Function A’
Function A’’
logic
Logical
Similar functions
Time t0
Time t0 + X
Time t0 + 2X
Temporal
Related by time
Function A
Function B
Function C
Procedural
Related by order of functions
Examples of Cohesion-2
Function A part 1
Function A part 2
Function A part 3
Functional
Sequential with complete, related functions
Function A
Function B
Function C
Communicational
Access same data
Function A
Function B
Function C
Sequential
Output of one is input to another
Coupling
 Degree of dependence among components.
No dependencies Loosely coupled-some dependencies
Highly couples-many dependencies
Ways components can be dependent
 References made from one to another
 Component A invokes B
 A depends on B for completion of its function or process
 Amount of data passed from one to another
 Component A passes to B: a parameter, contents of an array, block of
data
 Amount of control one has over the other
 Component passes a control flag to B
 Value of flag tells B the state of some resource or subsystem, process
to invoke, or whether to invoke a process
 Degree of complexity in the interface between components
 Components C and D exchange values before D can complete
execution
Range of Coupling
High Coupling
Loose
Low
Content
Common
External
Control
Stamp
Data
Uncoupled
Content Coupling : (worst) When a module
uses/alters data in another module
Common Coupling : 2 modules communicating
via global data
External Coupling :Modules are tied to an
environment external to the software
Control Coupling : 2 modules communicating
with a control flag
Stamp Coupling : Communicating via a
data structure passed as a parameter. The
data structure holds more information than
the recipient needs.
Data Coupling : (best) Communicating
via parameter passing. The parameters
passed are only those that the recipient
needs.
No data coupling : independent modules.
Summary
The measure of strength
of the association of
elements within a module
The measure of
interdependence of one
module to another
It is the degree to which
the responsibility of a
single component form a
meaningful unit
It describes the
relationship between
software components
It is a property or
characteristic of an
individual module
It is a property of a
collection of modules
COHESION COUPLING
34
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Refinement
 Refinement is a process of elaboration
 It is a top-down design strategy
 A program is developed by successfully refining levels of procedural
details
Stepwise Refinement
Open Door
walk to door;
reach for knob;
open door;
walk through;
close door.
repeat until door opens
turn knob clockwise;
if knob doesn't turn, then
take key out;
find correct key;
insert in lock;
endif
pull/push door
move out of way;
end repeat
Fundamental
Concepts Abstraction
 Architecture
 Patterns
 Modularity
 Information hiding
 Functional independence
 Refinement
 Refactoring
Refactoring
 Fowler [FOW99] defines refactoring in the
following manner:
 "Refactoring is the process of changing a software system in
such a way that it does not alter the external behavior of the
code [design] yet improves its internal structure.”
 When software is refactored, the existing
design is examined for
 redundancy
 unused design elements
 inefficient or unnecessary algorithms
 poorly constructed or inappropriate data structures
 or any other design failure that can be corrected to yield a
better design.

More Related Content

What's hot

Design concept -Software Engineering
Design concept -Software EngineeringDesign concept -Software Engineering
Design concept -Software EngineeringVarsha Ajith
 
4 agile modeldevelopement-danielleroux
4 agile modeldevelopement-danielleroux4 agile modeldevelopement-danielleroux
4 agile modeldevelopement-daniellerouxIBM
 
Software design principles
Software design principlesSoftware design principles
Software design principlesRitesh Singh
 
software design principles
software design principlessoftware design principles
software design principlesCristal Ngo
 
Software Design and Modularity
Software Design and ModularitySoftware Design and Modularity
Software Design and ModularityDanyal Ahmad
 
Design and Implementation in Software Engineering
Design and Implementation in Software EngineeringDesign and Implementation in Software Engineering
Design and Implementation in Software EngineeringKourosh Sajjadi
 
Design concepts and design principles
Design concepts and design principlesDesign concepts and design principles
Design concepts and design principlesDhruvin Nakrani
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering arvind pandey
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineeringDarshit Metaliya
 
software engineering
software engineeringsoftware engineering
software engineeringAbinaya B
 
Software engg. pressman_ch-9
Software engg. pressman_ch-9Software engg. pressman_ch-9
Software engg. pressman_ch-9Dhairya Joshi
 
Chapter 4 software design
Chapter 4  software designChapter 4  software design
Chapter 4 software designCliftone Mullah
 
A metric based approach for measuring the conceptual integrity of software ar...
A metric based approach for measuring the conceptual integrity of software ar...A metric based approach for measuring the conceptual integrity of software ar...
A metric based approach for measuring the conceptual integrity of software ar...ijseajournal
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principlessaurabhshertukde
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteriaUmaselvi_R
 

What's hot (20)

Design concept -Software Engineering
Design concept -Software EngineeringDesign concept -Software Engineering
Design concept -Software Engineering
 
4 agile modeldevelopement-danielleroux
4 agile modeldevelopement-danielleroux4 agile modeldevelopement-danielleroux
4 agile modeldevelopement-danielleroux
 
Design techniques
Design techniquesDesign techniques
Design techniques
 
Software design principles
Software design principlesSoftware design principles
Software design principles
 
software design
software designsoftware design
software design
 
software design principles
software design principlessoftware design principles
software design principles
 
Software Design and Modularity
Software Design and ModularitySoftware Design and Modularity
Software Design and Modularity
 
Design and Implementation in Software Engineering
Design and Implementation in Software EngineeringDesign and Implementation in Software Engineering
Design and Implementation in Software Engineering
 
Design concepts and design principles
Design concepts and design principlesDesign concepts and design principles
Design concepts and design principles
 
Software architecture
Software architectureSoftware architecture
Software architecture
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineering
 
Ch10
Ch10Ch10
Ch10
 
software engineering
software engineeringsoftware engineering
software engineering
 
Software engg. pressman_ch-9
Software engg. pressman_ch-9Software engg. pressman_ch-9
Software engg. pressman_ch-9
 
Chapter 4 software design
Chapter 4  software designChapter 4  software design
Chapter 4 software design
 
A metric based approach for measuring the conceptual integrity of software ar...
A metric based approach for measuring the conceptual integrity of software ar...A metric based approach for measuring the conceptual integrity of software ar...
A metric based approach for measuring the conceptual integrity of software ar...
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principles
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
 

Similar to Software design i (2) (1)

Software Design
Software Design Software Design
Software Design Anas Bilal
 
software design: design fundamentals.pptx
software design: design fundamentals.pptxsoftware design: design fundamentals.pptx
software design: design fundamentals.pptxDr.Shweta
 
Unit_4_Software_Design.pptx
Unit_4_Software_Design.pptxUnit_4_Software_Design.pptx
Unit_4_Software_Design.pptxtaxegap762
 
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxUNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxLeahRachael
 
Function oriented design
Function oriented designFunction oriented design
Function oriented designVidhun T
 
Unit-III(Design).pptx
Unit-III(Design).pptxUnit-III(Design).pptx
Unit-III(Design).pptxFajar Baskoro
 
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...JOHNLEAK1
 
CS8494 SOFTWARE ENGINEERING Unit-3
CS8494 SOFTWARE ENGINEERING Unit-3CS8494 SOFTWARE ENGINEERING Unit-3
CS8494 SOFTWARE ENGINEERING Unit-3SIMONTHOMAS S
 
Software design, software engineering
Software design, software engineeringSoftware design, software engineering
Software design, software engineeringRupesh Vaishnav
 
Software engg. pressman_ch-10
Software engg. pressman_ch-10Software engg. pressman_ch-10
Software engg. pressman_ch-10Dhairya Joshi
 
data design and component design.pptx
data design and component design.pptxdata design and component design.pptx
data design and component design.pptxubaidullah75790
 

Similar to Software design i (2) (1) (20)

Software Design
Software Design Software Design
Software Design
 
software design: design fundamentals.pptx
software design: design fundamentals.pptxsoftware design: design fundamentals.pptx
software design: design fundamentals.pptx
 
06 fse design
06 fse design06 fse design
06 fse design
 
Unit_4_Software_Design.pptx
Unit_4_Software_Design.pptxUnit_4_Software_Design.pptx
Unit_4_Software_Design.pptx
 
Software design
Software designSoftware design
Software design
 
rEFUP.pdf
rEFUP.pdfrEFUP.pdf
rEFUP.pdf
 
Design engineering
Design engineeringDesign engineering
Design engineering
 
Design
DesignDesign
Design
 
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptxUNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
UNIT 3-DEMONSTRATING A COMPREHENSIVE UNDERSTANDING OF SOFTWARE DESIGN.pptx
 
Function oriented design
Function oriented designFunction oriented design
Function oriented design
 
Unit-III(Design).pptx
Unit-III(Design).pptxUnit-III(Design).pptx
Unit-III(Design).pptx
 
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...
1-SDLC - Development Models – Waterfall, Rapid Application Development, Agile...
 
Unit-3.doc
Unit-3.docUnit-3.doc
Unit-3.doc
 
UNIT 3 SE.pptx
UNIT 3 SE.pptxUNIT 3 SE.pptx
UNIT 3 SE.pptx
 
CS8494 SOFTWARE ENGINEERING Unit-3
CS8494 SOFTWARE ENGINEERING Unit-3CS8494 SOFTWARE ENGINEERING Unit-3
CS8494 SOFTWARE ENGINEERING Unit-3
 
Slides chapter 9
Slides chapter 9Slides chapter 9
Slides chapter 9
 
Software design, software engineering
Software design, software engineeringSoftware design, software engineering
Software design, software engineering
 
Software design
Software designSoftware design
Software design
 
Software engg. pressman_ch-10
Software engg. pressman_ch-10Software engg. pressman_ch-10
Software engg. pressman_ch-10
 
data design and component design.pptx
data design and component design.pptxdata design and component design.pptx
data design and component design.pptx
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Software design i (2) (1)

  • 2. SW Design  Software design is an iterative process through which requirements are translated into a “blueprint” for constructing the software.  Initially, the blueprint depicts a holistic view of software.
  • 3. Process of Design Engineering  During the design process the software specifications are transformed into design models  Models describe the details of the data structures, system architecture, interface, and components.  Each design product is reviewed for quality before moving to the next phase of software development.  At the end of the design process a design model and specification document is produced.  This document is composed of the design models that describe the data, architecture, interfaces and components.
  • 4. Entity- Relationship Diagram Data Flow Diagram State-Transition Diagram Data Dictionary Process Specification (PSPEC) Control Specification (CSPEC) Data Object Description THE ANALYSIS MODEL procedural design interface design architectural design data design THE DESIGN MODEL
  • 5. Design Specification Models  Data design – created by transforming the analysis information model (data dictionary and ERD) into data structures required to implement the software. Part of the data design may occur in conjunction with the design of software architecture. More detailed data design occurs as each software component is designed.  Architectural design - defines the relationships among the major structural elements of the software, the “design patterns” than can be used to achieve the requirements that have been defined for the system, and the constraints that affect the way in which the architectural patterns can be applied. It is derived from the system specification, the analysis model, and the subsystem interactions defined in the analysis model (DFD).
  • 6. Design Specification Models  Interface design - describes how the software elements communicate with each other, with other systems, and with human users; the data flow and control flow diagrams provide much of the necessary information required.  Procedural / Component-level design - created by transforming the structural elements defined by the software architecture into procedural descriptions of software components using information obtained from the process specification (PSPEC), control specification (CSPEC), and state transition diagram (STD).
  • 7. 7 Design - Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 8. Abstraction  Data Abstraction  Procedural Abstraction
  • 9. 9 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 10. Architecture Design “The overall structure of the software and the ways in which that structure provides conceptual integrity for a system.” Design can be represented as  Structural Models  Defines the components of a system (e.g., modules, objects, filters) and  How the components are packaged and interact with one another.  Framework Models  Increase level of abstraction  Dynamic Models and Process Models  Predicts behavioral and reliability aspects  Functional Models  Depicts functional Hierarchy.
  • 11. 11 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 12. Patterns  a pattern is “a common solution to a common problem in a given context.” While architectural styles can be viewed as patterns describing the high-level organization of software (their macroarchitecture), other design patterns can be used to describe details at a lower, more local level (their microarchitecture).  Creational patterns (example: builder, factory, prototype, and singleton)  Structural patterns (example: adapter, bridge, composite, decorator, façade, flyweight, and proxy)  Behavioral patterns (example: command, interpreter, iterator, mediator, memento, observer, state, strategy, template, visitor)
  • 13. Design Pattern  Design Pattern enables a designer to determine whether the pattern :  is applicable to the current work  can be reused  can serve as a guide for developing a similar, but functionally or structurally different pattern.
  • 14. 14 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 15. Modular Design  Easier to change  Easier to build  Easier to maintain
  • 16. Modularity: Trade-offs What is the "right" number of modules for a specific software design?
  • 18. 18 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 19. Information Hiding  Principle of information hiding says that a good split of modules is when modules communicate with one another with only the information necessary to achieve the s/w function.  So information hiding enforces access constraints to both  procedural detail with a module, and  local data structure used by that module.  Data hiding is a CRITERION for modular design.  How to know what modules to create.
  • 20. Information Hiding module controlled interface "secret" • algorithm • data structure • details of external interface • resource allocation policy clients a specific design decision
  • 21. 21 Information Hiding (Benefits)  reduces the likelihood of “side effects”  limits the global impact of local design decisions  emphasizes communication through controlled interfaces  discourages the use of global data  leads to encapsulation—an attribute of high quality design  results in higher quality software
  • 22. 22 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 23. 23 Functional Independence COHESION - the degree to w hich a module performs one and only one function. COUPLING - the degree to w hich a module is "connected" to other modules in the system.
  • 24. Cohesion  Internal glue with which component is constructed  All elements of component are directed toward and essential for performing the same task
  • 25. Range of Cohesion High Cohesion Low Functional Sequential Communicational Procedural Temporal Logical Coincidental
  • 26. Examples of Cohesion-1 Function A Function B Function D Function C Function E Coincidental Parts unrelated Function A Function A’ Function A’’ logic Logical Similar functions Time t0 Time t0 + X Time t0 + 2X Temporal Related by time Function A Function B Function C Procedural Related by order of functions
  • 27. Examples of Cohesion-2 Function A part 1 Function A part 2 Function A part 3 Functional Sequential with complete, related functions Function A Function B Function C Communicational Access same data Function A Function B Function C Sequential Output of one is input to another
  • 28. Coupling  Degree of dependence among components. No dependencies Loosely coupled-some dependencies Highly couples-many dependencies
  • 29. Ways components can be dependent  References made from one to another  Component A invokes B  A depends on B for completion of its function or process  Amount of data passed from one to another  Component A passes to B: a parameter, contents of an array, block of data  Amount of control one has over the other  Component passes a control flag to B  Value of flag tells B the state of some resource or subsystem, process to invoke, or whether to invoke a process  Degree of complexity in the interface between components  Components C and D exchange values before D can complete execution
  • 30. Range of Coupling High Coupling Loose Low Content Common External Control Stamp Data Uncoupled
  • 31. Content Coupling : (worst) When a module uses/alters data in another module Common Coupling : 2 modules communicating via global data External Coupling :Modules are tied to an environment external to the software Control Coupling : 2 modules communicating with a control flag
  • 32. Stamp Coupling : Communicating via a data structure passed as a parameter. The data structure holds more information than the recipient needs. Data Coupling : (best) Communicating via parameter passing. The parameters passed are only those that the recipient needs. No data coupling : independent modules.
  • 33. Summary The measure of strength of the association of elements within a module The measure of interdependence of one module to another It is the degree to which the responsibility of a single component form a meaningful unit It describes the relationship between software components It is a property or characteristic of an individual module It is a property of a collection of modules COHESION COUPLING
  • 34. 34 Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 35. Refinement  Refinement is a process of elaboration  It is a top-down design strategy  A program is developed by successfully refining levels of procedural details
  • 36. Stepwise Refinement Open Door walk to door; reach for knob; open door; walk through; close door. repeat until door opens turn knob clockwise; if knob doesn't turn, then take key out; find correct key; insert in lock; endif pull/push door move out of way; end repeat
  • 37. Fundamental Concepts Abstraction  Architecture  Patterns  Modularity  Information hiding  Functional independence  Refinement  Refactoring
  • 38. Refactoring  Fowler [FOW99] defines refactoring in the following manner:  "Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code [design] yet improves its internal structure.”  When software is refactored, the existing design is examined for  redundancy  unused design elements  inefficient or unnecessary algorithms  poorly constructed or inappropriate data structures  or any other design failure that can be corrected to yield a better design.

Editor's Notes

  1. Abstraction - allows designers to focus on solving a problem without being concerned about irrelevant lower level details (procedural abstraction - named sequence of events, data abstraction - named collection of data objects) Refinement - process of elaboration where the designer provides successively more detail for each design component Modularity - the degree to which software can be understood by examining its components independently of one another Software architecture - overall structure of the software components and the ways in which that structure provides conceptual integrity for a system Control hierarchy or program structure - represents the module organization and implies a control hierarchy, but does not represent the procedural aspects of the software (e.g. event sequences) Structural partitioning - horizontal partitioning defines three partitions (input, data transformations, and output); vertical partitioning (factoring) distributes control in a top-down manner (control decisions in top level modules and processing work in the lower level modules). [Follow the link for more details on these concepts] Data structure - representation of the logical relationship among individual data elements (requires at least as much attention as algorithm design) Software procedure - precise specification of processing (event sequences, decision points, repetitive operations, data organization/structure) Information hiding - information (data and procedure) contained within a module is inaccessible to modules that have no need for such information abstraction—data, procedure, control architecture—the overall structure of the software patterns—”conveys the essence” of a proven design solution modularity—compartmentalization of data and function Information hiding—controlled interfaces Functional independence—single-minded function and low coupling refinement—elaboration of detail for all abstractions Refactoring—a reorganization technique that simplifies the design
  2. abstraction—data, procedure, control architecture—the overall structure of the software patterns—”conveys the essence” of a proven design solution modularity—compartmentalization of data and function Information hiding—controlled interfaces Functional independence—single-minded function and low coupling refinement—elaboration of detail for all abstractions Refactoring—a reorganization technique that simplifies the design
  3. abstraction—data, procedure, control architecture—the overall structure of the software patterns—”conveys the essence” of a proven design solution modularity—compartmentalization of data and function Information hiding—controlled interfaces Functional independence—single-minded function and low coupling refinement—elaboration of detail for all abstractions Refactoring—a reorganization technique that simplifies the design
  4. abstraction—data, procedure, control architecture—the overall structure of the software patterns—”conveys the essence” of a proven design solution modularity—compartmentalization of data and function Information hiding—controlled interfaces Functional independence—single-minded function and low coupling refinement—elaboration of detail for all abstractions Refactoring—a reorganization technique that simplifies the design
  5. Modularity Divide and Conquer Software Architecture embodies modularity Software is divided into separately named and addressable components often called modules, that are integrated to satisfy problem requirements
  6. GOAL Low Coupling High Cohesion