期刊文献+

基于分层架构模式识别的软件架构重构技术 被引量:5

Software Architecture Reconstruction Technology Based on Layered Architecture Pattern Recognition
下载PDF
导出
摘要 本文提出一种基于分层架构模式识别的软件架构重构技术.该技术以目标软件的源代码作为输入,过滤与分层架构无关的代码,再利用代码词汇信息挖掘程序实体之间的语义关联,通过代码主题提取并计算程序实体之间的职责相似度,依据相似度将程序实体聚类形成组件.在软件组件化的基础上结合分层模式的ILD属性识别软件层次和软件架构模式.在模式识别的基础上,定位系统中存在的违规作为重构点,生成相应的重构建议并实施重构.最后,本文在Github与SourceForge开源社区中选取10个开源软件系统作为实验对象,验证了本文提出的基于分层架构模式识别的软件架构重构技术在模式识别有效性、重构点识别效果和重构建议实施效果方面与传统方法相比有较大提升,能够有效的帮助软件开发人员识别软件架构模式、获取重构点、生成重构建议,并协助开发人员进行架构重构实施,改善系统违规情况,提升软件质量. This paper proposes software architecture reconstruction technology based on layered architecture pattern recognition.The input of the recognition is the source code and the unnecessary source code will be filtered out at first.Then the approach relies on lexical information from the source code to mine the semantic relation between system entities and using a topic model to extract the responsibility of entities,which is then used to cluster these entities into cohesion components.Later,the approach supplements the structural information between components to generate the component graph and use the ILD property to recognize the actual software layers.Based on the results of pattern recognition and the principle of layered pattern,position the nonstandard existing in the system as the reconstruction point,and relevant reconstruction suggestions to assist the designers and developers in the reconstruction implementation.Finally,this paper selects 10 open source software systems in Github and SourceForge as experimental objects to verify the effectiveness of the technology in this paper.This technology can greatly improve the effectiveness of pattern recognition,the recognition effect of illegal refactoring points and the implementation effect of refactoring suggestions.This technology can also assist developers in the implementation of architecture reconstruction to a certain extent,improve the situation of the system violations,and improve the quality of the software.
作者 王丽 杜鹏程 许一鸣 李必信 WANG Li;DU Peng-cheng;XU Yi-ming;LI Bi-xin(School of Computer Science and Engineering,Southeast University,Nanjing,Jiangsu 210096,China;Jiangsu Automation Research Institute,Lianyungang,Jiangsu 222061,China)
出处 《电子学报》 EI CAS CSCD 北大核心 2021年第1期201-208,共8页 Acta Electronica Sinica
基金 国家自然科学基金(No.61572126,No.61872078) “十三五”装备预研共用技术(No.41402020501)。
关键词 架构重构 分层架构模式 架构模式识别 重构点定位 architecture refactoring layered pattern recognition of architectural patterns refactoring point positioning
  • 相关文献

参考文献4

二级参考文献13

  • 1王映辉,王立福.软件体系结构演化模型[J].电子学报,2005,33(8):1381-1386. 被引量:23
  • 2Chenchen Xiao, Vassilios Tzerpos. Software clustering based on dynamic dependencies [ A]. 9th European Conference on Soft- ware Maintenance and Reengineefing (CSMR) [ C ]. ElK, Pro- ceedings. IEEE Computer Society,2005. 124 - 133.
  • 3Chiragkumar Patel, Abdelwahab Hamou-Lhadj, et al. Software clustering using dynamic analysis and static dependencies [ A]. 13th European Conference on Software Maintenance and Reengineering (CSMR) [ C ]. Kaiserslautem, Germany. IEEE Computer Society,2005.27- 36.
  • 4Nicolas Anquetil, Timothy Lethbridge. Experiments with clus- tering as a software remodulafizafion method [ A]. 6th Working Conference on Reverse Engineering (WCRE) [ C ]. Atlanta, Georgia,USA. mEE CS, 1999.235 - 255.
  • 5Thomas Eisenbarth, Rainer Koschke, Daniel Simon. Locating features in source code [ J]. IEEE Trans Software Eng, 2003, 29(3) :210 - 224.
  • 6Bernhard Ganter, Rudolf Wille. Formal Concept Analysis: Mattmnatical Foundations E M ]. NJ, USA: Springer-Verlag New York, Inc Secaucus, 1999.129 - 244.
  • 7W Zhihua, V Tzerpos. An effectiveness measure for software clustering algorithms [ A]. 12th International Workshop on Pro- gram Comprehension (1WPC) [ C]. Bad, Italy: IEEE Computer Society, 2004. 194 - 203.
  • 8JHotDraw Project [ CP/OL ] 2013-03-06. Dynamo (Dynamic Aspect Mining Tool) [CP/OL]. http:// star. fbk. eu/dynamo/,2013-03-06.
  • 9Dynamo (Dynamic Aspect Mining Tool) [CP/OL]. http:// star. fbk. eu/dynamo/,2013-03-06.
  • 10Julien Repond, Hfillipe Dugerdil, Pietro Descombes. Use-case and scenario meta-modeling for automated processing in a re- verse engineering tool [ A]. 4th Annual India Software Engi- neering Conference (ISEC) [ C ]. Kerala, India: ACM Press, 2011.135 - 144.

共引文献9

同被引文献47

引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部