摘要
软件产品线的特征之间存在依赖关系,因此在面向特征编程(FOP)中,特征模块之间在代码结构上存在密切关联。另一方面,具有可变性的特征在应用产品中的绑定与否会对依赖关系的实现造成破坏性的影响,导致FOP在实施过程中可能出现特征组合失效问题。对该问题的产生进行分析,总结出3种主要的依赖场景。另外,提出一种特征模块垂直分解方法,其核心机制在于将可变性引入特征模块内部,根据需求组装实现代码,从而可避免出现组合失效问题。最后,通过一个出版社利润考核系统产品线实例验证了方法的有效性。
There exist dependencies between software product line features, thus the feature modules in feature-oriented programming (FOP) is closely related in the code or structure level. On the other hand, whether the variable features are bound in the applications has destructive impact on the implementation of the feature dependencies, causing the po- tential problem of feature composition failures during FOP process. This paper analyzed the problem and concluded three main dependency scenarios, besides, proposed a vertical decomposition method for feature modules to solve the problem. Its key mechanism is to introduce variability into the inner part of feature modules, thus the problem can be a- voided by composing the codes according to the specific requirements. Furthermore, the method was applied on a soft- ware product line of publishing-house profit evaluation systems to validate its effectiveness.
出处
《计算机科学》
CSCD
北大核心
2013年第6期142-147,共6页
Computer Science
基金
国家“八六三”高技术研究发展计划项目(2011AA010101)资助
关键词
面向特征编程
软件产品线
特征模块组装
特征依赖
Feature-oriented programming, Software product line, Feature module composition, Feature dependency