文档介绍:第 10 期
张
静等: 面向对象耦合性度量工具的设计与实现
・ 229・
面向对象耦合性度量工具的设计与实现*
张
静, 黄志球, 王传栋, 张江涛
( 南京航空航天大学计算机系, 江苏南京 210016)
摘
要: 软件度量是保障软件质量的重要手段。结合软件度量技术, 设计并实现一个面向对象耦合性度量工
具, 用于全面度量面向对象系统的耦合性。给出了此度量工具的体系结构, 详细讲述了该工具各个模块的设计
与实现方法, 其中着重讲述了中间信息库的设计, 给出了度量结果示例。最后介绍了该度量工具的特点。
关键词: 面向对象; 软件质量; 耦合性度量
中图法分类号: TP311
文献标识码: A
文章编号: 1001- 3695( 2005) 10- 0229 - 02
Design and Implementation of Coupling Metrics Tool for OO System
ZHANG Jing, HUANG Zhi-qiu, WANG Chuan-dong, ZHANG Jiang-tao
( Dept. puter Science, Nanjing University of Aeronautics & Astronautics, Nanjing Jiangsu 210016, China)
Abstract: Software metrics is an important means to ensure software quality. A Coupling Metrics Tool is designed and imple-
mented to measure the coupling of Object-Oriented system. The architecture of the tool, the design and implementation of the
tool is described in detail, especially the design of intermediate information representation. A demonstration of metrics results
is given. At last the characteristics of the tool is introduced.
Key words: OO( Object-Oriented) ; Software Quality; Coupling Metrics
随着计算机软件的广泛应用, 人们对其质量提出了新的更
高的要求, 这就导致了软件度量领域研究工作的开展。软件度
量的最终目标是提高软件质量。在软件开发过程中, 工具的支
量, 本文设计并实现了一种以中间信息库为核心的耦合性度量
工具, 其基本思想是基于程序源代码, 同时利用中间信息库保
存软件度量结果。
持是实施度量的一个必要手段。软件质量是软件的内部属性
和特征的组合。现有经典的面向对象度量集都是针对软件不
同的内部属性进行度量的, 耦合性就是其中一个重要的内部属
1
工具体系结构
( 1) 源代码分析器: