首页 | 本学科首页   官方微博 | 高级检索  
     

一种基于切片技术度量Java耦合性的框架
引用本文:李必信,杨朝晖,谭毅,朱平,李宣东,郑国梁.一种基于切片技术度量Java耦合性的框架[J].计算机学报,2001,24(3):259-265.
作者姓名:李必信  杨朝晖  谭毅  朱平  李宣东  郑国梁
作者单位:1. 中国科学技术大学计算机科学与技术系;南京大学
2. 南京大学
基金项目:国家“八六三”高技术研究发展计划资助! (863 -3 0 6-QN2 0 0 0 -2 ),江苏省自然科学基金! (BK990 3 8)
摘    要:在研究面向对象的度量问题时,人们通过简单的统计方法和基于信息源的方法来度量其中的一些特征,例如基本度量、CK度量和AoKi度量等。文中采用一种基于程序切片的方法来度量Java的耦合性问题,通过对J ava源程序中存在的耦合关系的度量,得到了一种比传统方法更精确的耦合度量方法。

关 键 词:面向对象  程序切片  Java语言  耦合性  程序设计方法
修稿时间:2000年4月27日

A Framework for Measuring Java Couple Based on Program Slicing Technique
LI Bi Xin , YANG Zhao Hui TAN Yi ZHU Ping LI Xuan Dong ZHENG Guo Liang.A Framework for Measuring Java Couple Based on Program Slicing Technique[J].Chinese Journal of Computers,2001,24(3):259-265.
Authors:LI Bi Xin  YANG Zhao Hui TAN Yi ZHU Ping LI Xuan Dong ZHENG Guo Liang
Affiliation:LI Bi Xin 1),2) YANG Zhao Hui 1) TAN Yi 1) ZHU Ping 1) LI Xuan Dong 1) ZHENG Guo Liang 1) 1)
Abstract: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.
Keywords:object-orientation  program slicing  coupling  Java
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号