DomainSpecific Software Architecture and Product Lines Software Architecture

  • Slides: 29
Download presentation
Domain-Specific Software Architecture and Product Lines Software Architecture Lecture 9 Copyright © Richard N.

Domain-Specific Software Architecture and Product Lines Software Architecture Lecture 9 Copyright © Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy. All rights reserved.

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific software engineering (DSSE) u The “Three Lampposts” of DSSE: Domain, Business, and Technology u Domain Specific Software Architectures Product Lines Relationship between DSSAs, Product Lines, and Architectural Styles Examples of DSSE at work 2

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific software engineering (DSSE) u The “Three Lampposts” of DSSE: Domain, Business, and Technology u Domain Specific Software Architectures Product Lines Relationship between DSSAs, Product Lines, and Architectural Styles Examples of DSSE at work 3

Software Architecture: Foundations, Theory, and Practice Product Lines l l A set of related

Software Architecture: Foundations, Theory, and Practice Product Lines l l A set of related products that have substantial commonality u In general, the commonality exists at the architecture level One potential ‘silver bullet’ of software engineering u Power through reuse of l Engineering knowledge l Existing product architectures, styles, patterns l Pre-existing software components and connectors 4

Software Architecture: Foundations, Theory, and Practice Domains vs. Product Lines Domains are in the

Software Architecture: Foundations, Theory, and Practice Domains vs. Product Lines Domains are in the problem space, product lines are in the solution space l Domain l u Consumer electronics u Avionics u Compilers u Video games Product Line u Philips TVs u Boeing 747 Family u GNU compiler suite u Suite of games built on same engine 5

Software Architecture: Foundations, Theory, and Practice Business vs. Engineering Product Lines l l l

Software Architecture: Foundations, Theory, and Practice Business vs. Engineering Product Lines l l l Business Product Line u A set of products marketed under a common banner to increase sales and market penetration through bundling and integration Engineering Product Line u A set of products that have substantial commonality from a technical/engineering perspective Generally, business product lines are engineering product lines and vice-versa, but not always u Applications bundled after a company acquisition u Chrysler Crossfire & Mercedes SLK V 6 6

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Traditional Software Engineering

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Traditional Software Engineering 7 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Traditional Software Engineering

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Traditional Software Engineering 8 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Product-line-based engineering 9

Software Architecture: Foundations, Theory, and Practice Business Motivation for Product Lines Product-line-based engineering 9 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Capturing Product Line Architectures l l l Common:

Software Architecture: Foundations, Theory, and Practice Capturing Product Line Architectures l l l Common: features common to all products A: features specific to product A B: features specific to product B Product A = Common + A Product B = Common + B 10 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice A Product-Line Architecture l Definition: A product-line architecture

Software Architecture: Foundations, Theory, and Practice A Product-Line Architecture l Definition: A product-line architecture captures the architectures of many related products simultaneously l Generally employs explicit variation points in the architecture indicating where design decisions may diverge from product to product 11

Software Architecture: Foundations, Theory, and Practice A Lunar Lander Product Line “Lite” “Demo” “Pro”

Software Architecture: Foundations, Theory, and Practice A Lunar Lander Product Line “Lite” “Demo” “Pro” 12 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Product Component Table l Helps us decide whether

Software Architecture: Foundations, Theory, and Practice Product Component Table l Helps us decide whether creating a product line is viable or feasible 13 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Group Components into Features l l Not a

Software Architecture: Foundations, Theory, and Practice Group Components into Features l l Not a mechanical process Attempt to identify (mostly) orthogonal features, or features that would be beneficial in different products 14 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Reconstitute Products from Features l Use technical and

Software Architecture: Foundations, Theory, and Practice Reconstitute Products from Features l Use technical and business knowledge to identify which combinations form feasible or marketable products that will be constructed 15 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Modeling Product Line Architectures l l Architectural models

Software Architecture: Foundations, Theory, and Practice Modeling Product Line Architectures l l Architectural models need to be diversified with information about variation points and features Not all ADLs have good support for this u Exceptions include l Koala l x. ADL 2. 0 u These ADLs have explicit support for capturing variation points 16

Software Architecture: Foundations, Theory, and Practice 17 Software Architecture: Foundations, Theory, and Practice ;

Software Architecture: Foundations, Theory, and Practice 17 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Selection l l Product-line selection is the process

Software Architecture: Foundations, Theory, and Practice Selection l l Product-line selection is the process of extracting a single product architecture (or smaller product line) from an architectural model that contains explicit points of variation ADLs such as Koala and x. ADL 2. 0 can do selection automatically with tools 18 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Product Lines for Evolution l Products in a

Software Architecture: Foundations, Theory, and Practice Product Lines for Evolution l Products in a product line don’t have to exclusively capture alternatives u They can also capture variation over time 19 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Product Lines for Evolution 20 Software Architecture: Foundations,

Software Architecture: Foundations, Theory, and Practice Product Lines for Evolution 20 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Product Lines for ‘What-If’ Analysis l In addition

Software Architecture: Foundations, Theory, and Practice Product Lines for ‘What-If’ Analysis l In addition to alternative products and different versions of the same product, product lines can capture different potential products u Selection can be used to quickly generate product architectures for potential products u These can be checked for certain properties or subjected to more rigorous analysis for feasibility or quality u Can also be used to generate new product ideas 21

Software Architecture: Foundations, Theory, and Practice Implementation Issues l Important to partition implementations along

Software Architecture: Foundations, Theory, and Practice Implementation Issues l Important to partition implementations along variationpoint boundaries Bad Good 22 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Implementation Issues (cont’d) l Keeping evolving architectures and

Software Architecture: Foundations, Theory, and Practice Implementation Issues (cont’d) l Keeping evolving architectures and version-controlled source repositories (e. g. , RCS, CVS, Subversion) in sync 23 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Unifying Products with Different Heritage l l Often,

Software Architecture: Foundations, Theory, and Practice Unifying Products with Different Heritage l l Often, the idea to create a product line emerges after several products have been implemented and commonality is noticed Strategies include u No product line l It may be more expensive to create a product line or there may not be enough commonality u One master product l One product architecture becomes the basis for the product line u Hybrid l A new product line architecture emerges out of many products l Seems ideal but can be hard in practice 24

Software Architecture: Foundations, Theory, and Practice Architectural Styles, DSSAs, Product Lines l l l

Software Architecture: Foundations, Theory, and Practice Architectural Styles, DSSAs, Product Lines l l l Architectural Styles u Can be general or domain-specific u Provides general guidelines for diverse kinds of applications; focus on –ility development DSSAs u Domain specific; includes elaborate domain model and specific reference architecture Product lines u Explicit set of related products with common aspects Style DSSA / Ref Arch Product Line 25

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific

Software Architecture: Foundations, Theory, and Practice Objectives l l Concepts u What is domain-specific software engineering (DSSE) u The “Three Lampposts” of DSSE: Domain, Business, and Technology u Domain Specific Software Architectures Product Lines Relationship between DSSAs, Product Lines, and Architectural Styles Examples of DSSE at work 27

Software Architecture: Foundations, Theory, and Practice Koala l l An ADL and tool-set for

Software Architecture: Foundations, Theory, and Practice Koala l l An ADL and tool-set for developing product lines of consumer electronics A successor to Darwin in terms of structural modeling One of the first ADLs to capture points of variation explicitly Has tight bindings to implementations such that architecture descriptions can be “compiled” into application skeletons 28

Software Architecture: Foundations, Theory, and Practice Lunar Lander in Koala l l No product

Software Architecture: Foundations, Theory, and Practice Lunar Lander in Koala l l No product line features yet Note similarities to Darwin, x. ADL 2. 0 u x. ADL 2. 0 Archipelago visualization is derived from Koala interface IData. Store{ void set. Altitude(int altitude. In. Meters); int get. Altitude(); void set. Burn. Rate(int new. Burn. Rate); int get. Burn. Rate(); . . . } 29 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.

Software Architecture: Foundations, Theory, and Practice Lunar Lander PL in Koala l l l

Software Architecture: Foundations, Theory, and Practice Lunar Lander PL in Koala l l l Switch construct routes calls to one of two potential data stores ‘Diversity interface’ lets game logic component select callee from external config component Same IData. Store interface ensures call compatibility 30 Software Architecture: Foundations, Theory, and Practice ; Richard N. Taylor, Nenad Medvidovic, and Eric M. Dashofy; (C) 2008 John Wiley & Sons, Inc. Reprinted with permission.