一种基于切片技术度量Java耦合性的框架  被引量:36

A Framework for Measuring Java Couple Based on Program Slicing Technique

在线阅读下载全文

作  者:李必信[1] 杨朝晖[1] 谭毅[1] 朱平[1] 李宣东[1] 郑国梁[1] 

机构地区:[1]南京大学计算机软件新技术国家重点实验室

出  处:《计算机学报》2001年第3期259-265,共7页Chinese Journal of Computers

基  金:国家"八六三"高技术研究发展计划资助! (863 -3 0 6-QN2 0 0 0 -2 );江苏省自然科学基金! (BK990 3 8)

摘  要:在研究面向对象的度量问题时 ,人们通过简单的统计方法和基于信息流的方法来度量其中的一些特征 ,例如基本度量、CK度量和 Ao Ki度量等 .文中采用一种基于程序切片的方法来度量 Java的耦合性问题 ,通过对 Java源程序中存在的耦合关系的度量 。Object oriented software metrics is one of the important research directions in software engineering domain, and is widely used in software quality assurement,software testing, and software reuse, etc. Coupling and cohesiveness are two important properties in object oriented software metrics, and we can evaluate software module or system by measuring their coupling and cohesive properties. People usually use basic statistical or information flow method to measure object oriented properties to study object oriented metrics, such as basic metric, CK metrics and Aoki metrics etc, but there are many limitations in these basic methods. Especially, they are faulty in many facets. So we introduce a new measuring method more suitable for object oriented program in this paper. First, we study all coupling relationship existing in Java program source codes, and find that there are three kinds of coupling relationship, i.e., interact coupling, inheritance coupling and component coupling. We find it very suitable to study interact coupling by computing the program slices, so we establish measure equations by the number of elements in the join set or in the union set of the two slices. We measure coupling between two variables,two methods,two classes,or two pakages by computing program slices with respect to them. Then, a new framework based on program slicing technique is introduced to measure coupling in Java. Finally, a kind of more precise object oriented metric method than those based on information flow is obtained by measuring coupling relationship in object oriented programs.

关 键 词:面向对象 程序切片 JAVA语言 耦合性 程序设计方法 

分 类 号:TP311.11[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象