Home > Articles > Programming

Software Product Lines: Basic Terms and Ideas

In this introductory chapter from the book Software Product Lines the authors examine the definition of and the terminology associated with a software product line.
This chapter is from the book

We trumpeted software product lines in our introduction to Part I, raving about the benefits that were possible and hinting about some potential risks. In this chapter we will go beneath the surface and examine the associated ideas and terms more closely. We begin by answering the question: What is a software product line?

1.1 What Is a Software Product Line?

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

This definition is consistent with the definition traditionally given for any product line—a set of systems that share a common, managed set of features satisfying the specific needs of a particular market segment or mission. But it adds more; it puts constraints on the way in which the systems in a software product line are developed. Why? Because substantial production economies can be achieved when the systems in a software product line are developed from a common set of assets in a prescribed way, in contrast to being developed separately, from scratch, or in an arbitrary fashion. It is exactly these production economies that make software product lines attractive.

How is production made more economical? Each product is formed by taking applicable components from the base of common assets, tailoring them as necessary through preplanned variation mechanisms such as parameterization or inheritance, adding any new components that may be necessary, and assembling the collection according to the rules of a common, product-line-wide architecture. Building a new product (system) becomes more a matter of assembly or generation than one of creation; the predominant activity is integration rather than programming. For each software product line there is a predefined guide or plan that specifies the exact product-building approach.

Certainly the desire for production economies is not a new business goal, and neither is a product line solution. If you look carefully, you will find plenty of examples all around you.

Product Lines Everywhere

In his bestseller, Chaos: Making a New Science, James Gleick relates how some of the pioneers of chaos theory would, while relaxing in their favorite coffeehouse, compete to find the nearest example of a certain kind of chaotic system [Gleick 87, p. 262]. A flag whipping in the breeze, a dripping faucet, a rattling car fender—they seemed to be everywhere.

I can relate. Lately it seems that no matter where I turn I see a product line. At airports I see product lines of airliners (such as the Airbus A-318, A-319, A-320, and A-321, a family of aircraft that range from 100 to 220 seats but clearly share production commonalities) powered by product lines of jet engines and equipped with product lines of navigation and communication equipment. When I arrive at my destination, I rent an American midsize car that is always pretty much the same except for cosmetic factors and features, even though it could have any one of four nameplates on it. I wonder how much more expensive the cars would be if they had nothing in common. The hotel leaves a copy of the local newspaper at my door: the morning edition of the citywide version. Someone else will get the afternoon edition of the upstate version, but it will have most of the same stories, will have all of the same comics, and will come off the same presses. On my way to work I pass residential subdivisions where the houses are all variants on a few basic designs. Even the street signs are the same except for the names of the streets. While the actual street name is fundamental to a street sign's function, it is inconsequential to its fabrication and is just a variation point.

We know that product lines have been around in manufacturing almost since manufacturing began. Remember Eli Whitney's idea of interchangeable parts for rifles in the early 1800s? This idea made it possible to build a product line of firearms that shared components. Remember the IBM System/360 family of computers? From the Principles of Operation:

Models of System/360 differ in storage speed, storage width (the amount of data obtained in each storage access), register width, and capabilities for processing data concurrently with the operation of multiple input/output devices. Several CPU's permit a wide choice in internal performance. Yet none of these differences affects the logical appearance of these models to the programmer. An individual System/360 is obtained by selecting the system components most suited to the applications from a wide variety of alternatives in internal performance, functional ability, and input/output (I/O).

This was clearly a product line, and the operating system that powered it was a software product line. And town plans in which the buildings look like each other predate post-War suburbia by at least eight centuries. During the Pei Sung dynasty of northern China (960–1127 a.d.), a book called the "Ying-tsao fa-shih" was written by Li Chieh, the state architect of the emperor Hui-tsung, in 1100 a.d. and published in 1103 a.d. This was a set of building codes for official buildings. It described in encyclopedic detail the layouts, materials, and practices for designing and building official buildings. It listed standard parts and standard ways of connecting the parts as well as recognizing and parameterizing variations of the parts such as allowable lengths, load capacities, bracketing, decorations, allowed components based on the building's purpose, and the options available for various component choices. The book also included design construction details that provided a process for building design and implementation of that design. While it was influential in spreading the most advanced techniques of the time of its first publication in 1103, by codifying practice it may also have inhibited further development and contributed to the conservatism of later techniques. Some scholars even claim that because of it, Chinese architecture remained largely unchanged until the beginning of the twentieth century. (In a product line, you've got to know when your architecture has outlived its usefulness.)

However, like Gleick's scientists, I find some of the best examples of product lines in places where I go to eat. Here's something I saw on the menu at a little Mexican restaurant recently:

#16. Enchiladas verdes: Corn tortillas baked with a zesty filling, covered with a green tomatillo sauce. Your choice of chicken, beef, pork, or cheese.

#17. Enchiladas rojas: Corn tortillas baked with a zesty filling, covered with a red ancho chile sauce. Your choice of chicken, beef, or pork.

See what I mean? This restaurant clearly produces an "enchilada" product line. (Well, all right, "clearly" applies only to those of us who have been thinking about this for too long.) While admittedly a cheesy example (sorry), it actually provides a pretty good analogy with software product lines and the central concepts they embody.

The enchilada product line consists of seven separate products, differentiated by filling and sauce. This defines their variabilities. The corn tortillas are core assets because they're used in every product. The red and green sauces are also core assets because they're used in four and three products, respectively. And the meat fillings are also core assets, used in two products each. But the cheese is a product-specific asset, used only in the enchiladas verdes.

Some of the core assets have attached processes that indicate how they are to be instantiated for use in products. Here, the beef, pork, and chicken have attached processes that dictate how they're chopped, seasoned, and cooked. The processes call for different spices to be added depending on the sauce.

All of the products share an "architecture"—tortillas wrapped around a filling, covered with sauce. And they also share a "production plan": prepare filling, wrap filling in tortilla, cover with sauce, bake at 350 degrees for 15 minutes, garnish, serve.

This little product line provides economies of scope; the common ingredients let the restaurant stock a small number of food items delivered from a small number of suppliers. They provide personnel flexibility: the same person who makes the pork enchiladas rojas is, I would bet my house, the same person who makes the cheese enchiladas verdes. And because the choices are limited, many of the ingredients can be pre-prepared, allowing for rapid time-to-market, which in this case means time-to-table.

As a family, the products define a clear scope that leaves little doubt what's in and what's out. Chicken enchiladas are in. Beef enchiladas are in. And if you wanted cheese enchiladas with the red sauce instead of the green, well, that's probably open for discussion. As we'll see, a scope definition with a pronounced gray area is a healthy thing—but duck enchiladas with a white sauce are definitely out.

Finally, because the commonalities and variabilities are exquisitely clear, it's easy to see how this product line's scope could be expanded, by offering new fillings and new sauces and perhaps new combinations. You could even see how this efficient production capability could be used to launch an entirely new product line to capture a new market segment: replace the corn tortillas with flour tortillas, lose the sauce, add lettuce and tomato and other condiments, and open a new restaurant chain that sells "wraps."

If you already had a strong grasp of the concepts underlying software product lines, this little culinary diversion probably had no effect on you, except possibly to make you hungry. If you didn't, perhaps the concepts are now a bit more palpable for you. In either case, the next time you're at a coffeehouse or restaurant, try looking around to see how many product lines you can spot.

¡Buen provecho!

—pcc

But a software product line is a relatively new idea, and it should seem clear from our description that software product lines require a different technical tack. The more subtle consequence is that software product lines require much more than new technical practices.

The common set of assets and the plan for how they are used to build products don't just materialize without planning, and they certainly don't come free. They require organizational foresight, investment, planning, and direction. They require strategic thinking that looks beyond a single product. The disciplined use of the assets to build products doesn't just happen either. Management must direct, track, and enforce the use of the assets. Software product lines are as much about business practices as they are about technical practices.

Other Voices: Beyond Technology

The primary thesis of this book is that software product lines, although enmeshed in the highly technological field of software, rely on much more than technology to succeed. Martin Griss, a reuse expert at Hewlett-Packard and co-author of the highly regarded Software Reuse: Architecture, Process, and Organization for Business Success [Jacbobson 97], put it this way [Griss 95]:

...In almost all cases, a simple architecture, a separate component group, a stable application domain, standards, and organizational support are the keys to success. Correct handling of these (largely non-technical) issues is almost always more critical to successful reuse than the choice of specific language or design method, yet too many...experts choose to ignore these factors.

...Over the last 10 years, software reuse researchers and practitioners have learned that success with systematic reuse requires careful attention be paid to both technical and nontechnical issues. Furthermore, the nontechnical issues are more pervasive and complex than was realized at first. Without a systematic and joint focus on people, process, and product issues, a project will not succeed at managing the scope and magnitude of the changes and investment necessary to achieve reuse. Simply creating and announcing a reusable class library will not work. Without a "reuse mindset," organizational support, and methodical processes directed at the design and construction of appropriate reusable assets, the reuse investment will not be worthwhile.

...Often, sweeping changes in the software development organization are needed to institute large-scale, systematic reuse. These include business, process, management, and organizational changes....

Software product lines give you economies of scope, which means that you take economic advantage of the fact that many of your products are very similar—not by accident, but because you planned it that way. You make deliberate, strategic decisions and are systematic in effecting those decisions.

Other Voices: Japanese Software Factories and Economies of Scope

In 1991, Michael Cusumano's Japan's Software Factories [Cusumano 91] burst onto the scene, revealing the "secrets" of the Japanese software companies that, at the time, it was feared were going to bury American and European firms with their sky-high productivity rates. And what was their secret? Largely it was what we would call today a software product line approach, based on that feeling of déjà vu that all eventual product line managers share: "You know, I could swear we've built this product already." The driving concept of economies of scope was born. Cusumano wrote:

The Japanese software facilities discussed in this book differed in some respects, reflecting variations in products, competitive strategies, organizational structures, and management styles. Nonetheless, the approaches of Hitachi, Toshiba, NEC, and Fujitsu had far more elements in common than in contrast, as each firm attempted the strategic management and integration of activities required in software production, as well as the achievement of planned economies of scope—cost reductions or productivity gains that come from developing a series of products within one firm (or facility) more efficiently than building each product from scratch in a separate project. Planned scope economies thus required the deliberate (rather than accidental) sharing of resources across different projects, such as product specifications and designs, executable code, tools, methods, documentation and manuals, test cases, and personnel experience. It appears that scope economies helped firms combine process efficiency with flexibility, allowing them to deliver seemingly unique or tailored products with higher levels of productivity than if they had not shared resources among multiple projects.

Japanese managers did not adopt factory models and pursue scope economies simply out of faith. Detailed studies concluded that as much as 90 percent of the programs they developed in any given year, especially in business applications, appeared similar to work they had done in the past, with designs of product components falling into a limited number of patterns. Such observations convinced managers of the possibility for greater efficiencies, in scope if not in scale, and set an agenda for process improvement. Companies subsequently established facilities focused on similar products, collected productivity and quality data, standardized tools and techniques, and instituted appropriate goals and controls. As the factory discussions demonstrate, Japanese firms managed in this way not simply one or two special projects for a few years. They established permanent software facilities and research and development efforts, as well as emphasized several common elements in managing across a series of projects [not the least of which was a commitment to process improvement].

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020