期刊文献+

复杂网络与软件度量分析 被引量:4

Complex networks and software metrics analysis
下载PDF
导出
摘要 用复杂网络理论研究软件系统的复杂性,选取两款面向对象开源软件框架webwork和spring作为研究对象,无(有)向图节点代表类,边代表类间的依赖和关联等关系,将系统抽象为网络图,并对其拓扑结构进行分析.研究表明:无(有)网络具有较大的聚类系数和较小的平均路径长度,具有小世界特性.由于框架都使用了依赖注入和控制反转,程序中类之间的关系,完全由spring容器来控制,而不是由代码控制,容器运行时会根据spring提供的配置信息注入到组件中.用依赖注入的一个结果是改变了编译阶段部分类之间的相互关系,由原来的关联实体类到关联加载配置文件类,从而影响节点的度包括入度和出度,使无(有)向图的边(弧)数改变.实验结果表明:度分布统计特性仍然具有无标度特性. Complex network theory is used to study the complexity of the software system in this paper. The selected object-oriented open-source software framework both webwork and spring as the research object, undirected (directed) graph nodes representing classes, relationships be- tween classes edges representing dependency, association, etc., the system is abstracted to the network graph and its topology is analyzed. Studies show that undirected (directed) network has a large clustering coefficient and a smaller average path length, which are characteristics of a small world. Because of the inversion control and dependency injection used in the framework, program relations between classes, entirely controlled by the spring container, rather than by code control, will be injected into the container runtime according to configuration information provided by the spring assembly. Using dependency injection is to change the relationship be- tween the compilation phases of the class such as an associated entity class changed to the class of associated load configuration file. Thus it influences the degree of the nodes including in-degree and out-degree and change the number of undirected (directed) graph edges (arcs) has been changed. The results show that the statistical properties of the degree distribution still have scale- free characteristics.
出处 《北京交通大学学报》 CAS CSCD 北大核心 2016年第5期23-28,共6页 JOURNAL OF BEIJING JIAOTONG UNIVERSITY
基金 国家"863"高技术研究发展计划项目资助(2015AA043701)
关键词 软件度量 复杂网络 度分布 聚类系数 software metrics complex network degree distribution clustering coefficients
  • 相关文献

参考文献23

  • 1你如果无法度量它,就无法管理它[EB/OL].(2013-03-27)[2015-12-30].https://book,douban.com/review/5823792/.
  • 2It you can't measure it,you can't manage it[EB/OL].(2013-03-27)[2015-12-30].https://book,douban.com/ review/5823792/.
  • 3EMERSON T J.A discriminate metric for module com-prehension[C].Proceedings of 7th International Conference on SW-Engineering,1984:294-431.
  • 4MA Y HE K,DU D.A qualitative method for measuring the structural complexity of software systems based on complex networks[C].Software Engineering Conference,2005:257-263.
  • 5HALSTEAD M H.Elements of software science[M].New York: Elsevier North-Holland,1997:2-10.
  • 6MCCABE T J.A complexity measure[J].IEEE Transactions on Software Engineering,1976,2(4):308-320.
  • 7HENRY S M,KAFURA D.Software structure metrics based on information flow [J].IEEE Transactions on Software Engineering,1981,7(5):510-518.
  • 8KAVITHA A,SHANMUGAM A.Dynamic coupling measurement of object oriented software using trace e-vents[C].International Symposium on Applied Machine Intelligence and Informatics?2008:255-259.
  • 9YAU S S,COLLOFELLO J S.Some stability meas-ures for software maintenance [J].IEEE Transactions on Software Engineering,1980,6(6):545-552.
  • 10CHID AMBER S R,KEMERER C F.A metrics suite for object oriented design [J].IEEE Transactions on Software Engineering,1994,20(6):476-492.

共引文献10

同被引文献25

引证文献4

二级引证文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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