计算机应用 ›› 2012, Vol. 32 ›› Issue (03): 827-830.DOI: 10.3724/SP.J.1087.2012.00827

• 计算机软件技术 • 上一篇    下一篇

基于投影寻踪的Web软件复杂性度量

曾一,胡小威,李鹃   

  1. 重庆大学 计算机学院,重庆 400044
  • 收稿日期:2011-06-29 修回日期:2011-09-05 发布日期:2012-03-01 出版日期:2012-03-01
  • 通讯作者: 胡小威
  • 作者简介:曾一(1961-),男,重庆人,教授,主要研究方向:软件工程、软件测试;胡小威(1988-),男,安徽安庆人,硕士研究生,主要研究方向:软件度量;李鹃(1986-),女,重庆人,硕士研究生,主要研究方向:软件度量。

Web software complexity metrics based on projection pursuit

ZENG Yi, HU Xiao-wei, LI Juan   

  1. College of Computer Science, Chongqing University, Chongqing 400044, China
  • Received:2011-06-29 Revised:2011-09-05 Online:2012-03-01 Published:2012-03-01

摘要: 传统的软件复杂性度量方法主要是针对C/C++、Ada等语言开发的非Web应用。以面向对象的基于Struts框架的Web软件为研究对象,提出了适合于Web-Struts软件的3个方面的复杂性度量指标,并提出了一种基于带交叉算子人工鱼群和投影寻踪(PP)算法的Web应用软件复杂性度量方法。把Web软件多个复杂性度量指标综合成一维综合投影值,利用样本数据求解最佳投影方向,确定评价等级的综合投影值区间,根据测试样本综合投影值与区间值比较,获得综合评价结果。实例评价结果表明,所提方法具有较强的适用性和应用性。

关键词: 软件复杂性度量, 面向对象, Struts框架, 投影寻踪, 交叉算子, 人工鱼群算法

Abstract: Web software complexity metrics does play a very important role in the software development. The traditional software complexity metrics method mainly targets on the non-Web applications which use language like C/C++ and Ada. This paper took object-oriented Web software based on Struts framework as research subject and put forward three complexity metrics suitable for the Web-Struts software. Besides, this paper also proposed a method for computing Web software complexity metrics based on Artificial Fish Swarm Algorithm (AFSA) with cross operator and Projection Pursuit (PP) algorithm. After integrating multiple complexity metrics into one-dimension comprehensive projection value, the optimized projection direction could be acquired through sample data. Then the comprehensive projection value of evaluation grades could also be determined. According to the comparison between the comprehensive projection values of the testing samples and the interval of level, the comprehensive metrics result could be finally obtained. The example evaluation results prove the feasibility and effectiveness of the proposed method.

Key words: software complexity metric, object-oriented, Struts frame, Projection Pursuit (PP), cross operator, Artificial Fish Swarm Algorithm (AFSA)

中图分类号: