Supporting the Grow-and-Prune Model in Software Product Lines Evolution Using Clone Detection

Thilo Mende, Felix Beckwermert, R. Koschke, G. Meier
{"title":"Supporting the Grow-and-Prune Model in Software Product Lines Evolution Using Clone Detection","authors":"Thilo Mende, Felix Beckwermert, R. Koschke, G. Meier","doi":"10.1109/CSMR.2008.4493311","DOIUrl":null,"url":null,"abstract":"Software product lines (SPL) can be used to create and maintain different variants of software-intensive systems by explicitly managing variability. Often, SPLs are organized as an SPL core, common to all products, upon which product-specific components are built. Following the so called grow-and-prune model, SPLs may be evolved by copy&paste at large scale. New products are created from existing ones and existing products are enhanced with functionalities specific to other products by copying and pasting code between product-specific code. To regain control of this unmanaged growth, such code may be pruned, that is, identified and refactored into core components upon success. This paper describes tool support for the grow-and- prune model in the evolution of software product lines by identifying similar functions which can be moved to the core. These functions are identified in two steps. First, token-based clone detection is used to detect pairs of functions sharing code. Second, Levenshtein distance measures the textual similarity among these functions. Sufficient similarity at function level is then lifted to the architectural level. The approach is evaluated by three case studies, one using an open source email client to simulate the initial creation of an SPL, and two monitoring existing industrial product lines from the embedded domain.","PeriodicalId":350838,"journal":{"name":"2008 12th European Conference on Software Maintenance and Reengineering","volume":"241 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-04-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"76","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2008 12th European Conference on Software Maintenance and Reengineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CSMR.2008.4493311","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 76

Abstract

Software product lines (SPL) can be used to create and maintain different variants of software-intensive systems by explicitly managing variability. Often, SPLs are organized as an SPL core, common to all products, upon which product-specific components are built. Following the so called grow-and-prune model, SPLs may be evolved by copy&paste at large scale. New products are created from existing ones and existing products are enhanced with functionalities specific to other products by copying and pasting code between product-specific code. To regain control of this unmanaged growth, such code may be pruned, that is, identified and refactored into core components upon success. This paper describes tool support for the grow-and- prune model in the evolution of software product lines by identifying similar functions which can be moved to the core. These functions are identified in two steps. First, token-based clone detection is used to detect pairs of functions sharing code. Second, Levenshtein distance measures the textual similarity among these functions. Sufficient similarity at function level is then lifted to the architectural level. The approach is evaluated by three case studies, one using an open source email client to simulate the initial creation of an SPL, and two monitoring existing industrial product lines from the embedded domain.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
利用克隆检测支持软件产品线进化中的生长-修剪模型
软件产品线(SPL)可以通过显式地管理可变性来创建和维护软件密集型系统的不同变体。通常,SPL被组织为所有产品通用的SPL核心,并在此基础上构建特定于产品的组件。遵循所谓的生长-修剪模型,SPLs可能通过大规模的复制-粘贴来进化。新产品是在现有产品的基础上创建的,通过在特定于产品的代码之间复制和粘贴代码,现有产品可以使用特定于其他产品的功能进行增强。为了重新控制这种失控的增长,这样的代码可能会被删减,也就是说,在成功后识别并重构为核心组件。本文通过识别可移动到核心的类似功能,描述了在软件产品线演进过程中对生长-修剪模型的工具支持。通过两个步骤确定这些函数。首先,基于令牌的克隆检测用于检测共享代码的函数对。其次,Levenshtein距离度量这些函数之间的文本相似度。然后将功能级别上的足够相似性提升到架构级别。该方法通过三个案例研究进行了评估,一个使用开源电子邮件客户端来模拟SPL的初始创建,另外两个从嵌入式领域监控现有的工业产品线。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Modularity-Oriented Refactoring Quantifying Maintainability in Feature Oriented Product Lines Assessing the Support of ER and UML Class Diagrams during Maintenance Activities on Data Models A Flexible Framework to Support Collaborative Software Evolution Analysis Towards a Benchmark for Evaluating Design Pattern Miner Tools
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1