• Keine Ergebnisse gefunden

Software Product Lines Software Product Line Engineering and Architectures Bodo Igler and Burkhardt Renz

N/A
N/A
Protected

Academic year: 2021

Aktie "Software Product Lines Software Product Line Engineering and Architectures Bodo Igler and Burkhardt Renz"

Copied!
34
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Software Product Lines

Software Product Line Engineering and Architectures

Bodo Igler and Burkhardt Renz

Hochschule Rhein-Main and Technische Hochschule Mittelhessen

Wintersemester 2020/21

(2)

Questions

How can you produce many different but related software products? (mass production)

How can you do this,

if you have to satisfy special customer requirements?

(customization)

if the products have to be cheapandgood? (cost efficieny, quality)

if you have to react quickly to changing requirements? (time to market)

Answer: Adopt a Software Product Line Approach.

(3)

Table of Contents

Introduction Examples Terminology Approach

Commonality and Variability Motivation

Commonality and Variability Analysis Features

Putting Things Together Architecture

The Big Picture Conclusion

(4)

Overview

Introduction Examples Terminology Approach

Commonality and Variability Motivation

Commonality and Variability Analysis Features

Putting Things Together Architecture

The Big Picture Conclusion

(5)

Example

Car Manufacturing

Example

Integrated Development Environment

(6)

Product Lines

Mass Customization mass production customization

Platform

base of technologies

other technologies use this base

Product Line

Family of products which share common features (commonalities).

(7)

Software Product Lines

Software Platform

set of software subsystems and interfaces common structure

facilitates efficient development and production of derivative products

comprises several artifacts code

architecture requirements manuals test cases . . .

(8)

Software Product Line Engineering

Software Product Line

A software product line is a set of software-intensive sys- tems sharing a common, managed set of features that sat- isfy needs of a particular market segment or mission and that are developed from a common set of core assets in a prescribed way.

–Paul Clements, Linda Northrop

Software Product Line Engineering develop family of software applications apply mass customization

use software platform

(9)

Overall Process

Software Product Line Engineering =

Domain Engineering

“produce the platform”

= requirements + design

+ implementation + test

+

Application Engineering

“produce a single product”

= requirements + design

+ implementation + test

(10)

Domain Engineering

Results

definition of commonality

“What is common to all products?”

definition of variability

“What is different? What is allowed to vary?”

“How does it vary? How is it allowed to vary?”

⇒ platform = reusable artifacts (domain artifacts, “skeleton”)

During Each Step

detail variability from previous step add – if necessary – internal variability

(11)

Application Engineering

Results

the product (application artifacts, “skeleton + flesh”) feedback to domain engineering

During Each Step

bind variability of each domain artifact

⇒obtain application artifacts fill in templates

implement interfaces provide configuration files . . .

(12)

Overview

Introduction Examples Terminology Approach

Commonality and Variability Motivation

Commonality and Variability Analysis Features

Putting Things Together Architecture

The Big Picture Conclusion

(13)

Motivation

Questions:

How do I find the appropriate commonalities?

How do I find the appropriate variability?

Answer: Commonality and Variability Analysis.

Question:

How do I document commonalities and variability?

Answer: Feature Model.

(14)

General Idea

Input

variantsof one product = product family (Parnas 1976)

Process

1 Commonality Analysis:

find commonalities categorize commonalities

2 Variability Analysis:

find special properties categorize special properties

Output

appropriate abstraction

(15)

Examples

Example

IDE Requirements

Example

Database Frontend

(16)

Terminology

(Positive) Variability common degree of freedom

Negative Variability

a degree of freedom is violated under certain circumstances

External Variability

required by and/or visible to customer

Internal Variability

neither required by nor visible to customer

(17)

Terminology

Variation Point

something that varies, a degree of freedom e.g. color, payment method

Variant

potential property of something that varies e.g. “red”, “green” or “credit card”, “cash”

Binding

fix a variation point by specifying/instantiating a (legal) variant

Binding Time

e.g. design, coding, compilation, installation, run-time

(18)

Features

Question:

Why doesn’t UML do the job?

Answer:

Standard UML shows one model.

We have to show all relevant variations.

Question:

What can do the job?

Answer:

Feature Model.

(19)

Features

Feature

“end-user visible characteristic of a system”

Composed Feature

composition of sub-features

Atomic Feature

cannot be divided into sub-features

(20)

Feature Model Requirements

A Feature Model is

to represent all features

to represent the relationships between features to distinguish between commonality and variability to be independent of implementation technology

to be suitable during requirements engineering, design, code and test

(21)

Feature Model

A Feature Model comprises set of features

set of feature constraints, usually:

type of composition:

mandatory, optional, alternative, logical or any logical formula with features as atoms:

feature1feature2feature3, . . .

(22)

Feature Diagram

Remark

there are different feature diagram types there is no standard available yet

feature diagrams can be connected to standard UML diagrams

Typical Approach diagram = tree feature = node relationship = edge

(23)

Example

Example

orthogonal variability model (Pohl, Böckle, van der Linden et al)

V

VP Intrusion Detection

VP Door Locks

Camera

Surveillance Motion

Sensors Cullet

Detection Basic Advanced Keypad Fingerprint

Scanner Security

Package VP

V V V V V V

requires_v_v requires_v_v

(24)

Overview

Introduction Examples Terminology Approach

Commonality and Variability Motivation

Commonality and Variability Analysis Features

Putting Things Together Architecture

The Big Picture Conclusion

(25)

Adapt Functionality I

Use the Template Method Pattern

platform = application framework + base classes/interfaces variation points = (abstract) methods of base

classes/interfaces

bind variation points = provide specific method implementations

binding time = compile-time

example: MFC document-view architecture

(26)

Adapt Functionality II

Use a Plug-In Architecture

platform = framework + basic plug-ins

variation points = extension points of basic plug-ins bind variation points = provide specific plug-ins binding time = run-time

example: Eclipse 3.x based on OSGi

(27)

Adapt Domain Model

Use a Domain Specific Language (DSL)

platform = machine which understands DSL variation points = potential of DSL

bind variation points = write specific DSL program binding time options

machine = interpreter machine = code generator

(28)

Software Product Line Dimensions

Composition Architecture Components System

Life Cycle

Development

Deployment Evolution

(29)

Software Product Line Dimensions

Views Business Architecture Process Organization

(30)

Advise

Key Success Factors Product Scoping Architectural Choice Level of Generalization

Communication between Domain and Application Engineering

(31)

What have we seen today?

Terminology

Software Product Line Commonality & Variability Feature Modelling

Examples

motivation for software product lines

commonality & variability analysis at different levels feature modelling for product lines

architecture hints for product lines

(32)

Related Concepts

Related Concepts

Software Architecture (OSGi, SOA, . . . ) Model Driven Engineering

Software Factories . . .

Challenges

holistic approach

manage variability in all artifacts find the right architecture . . .

(33)

Bibliography

Clements, Northrop:

Software Product Lines: Practices and Patterns Addison-Wesley 2002.

Pohl, Böckle, van der Linden:

Software Product Line Engineering Springer 2005.

Bosch:

Design & Use of Software Architectures Pearson 2000.

(34)

Bibliography

Apel, Batory, Kästner, Saake:

Feature-Oriented Software Product Lines: Concepts and Implementation

Springer 2013.

Czarnecki, Eisenecker:

Generative Programming Addison-Wesley 2000.

Kang, Cohen, Hess, Novak, Petersen:

Feature-Oriented Domain Analysis SEI, Carnegie-Mellon University 1990.

Parnas:

On the Design and Development of Program Families. in:

IEEE Transactions on Software Engineering, 2(1), 1976.

Referenzen

ÄHNLICHE DOKUMENTE

Applying traditional analysis techniques, such as type checking and model checking, to each product involves redundant effort and is often not feasible to the combinatorial explosion

The underlying assumption of this survey is that every software analysis known from single-system engineering, such as type check- ing, static analysis, model checking, and

 Variants of a product line share common features.  Feature models describe features and

 Modules can be composed within a new context of another project (variability).. Design Patterns for Variability.. Observer Pattern. “Define[s] a one-to-many dependency

a) ~ “A software product line (SPL) is a set of software-intensive systems that share a common, managed set of features satisfying the specific needs of a particular market segment

Variants are developed by merging feature branches into each variant branch.. For each variant, a build target or routine is

• Retrospective modifications of the framework and component model are problematic... Task 1f) Components and Services. Proactive SPL development Reactive SPL development

• //every method invocation inside the method Server.broadcast() unless the target is an instance of class Connection pointcut