计算机工程与应用 ›› 2008, Vol. 44 ›› Issue (20): 64-66.DOI: 10.3778/j.issn.1002-8331.2008.20.019

• 理论研究 • 上一篇    下一篇

一种面向对象继承复杂性的综合度量

曾 一,吴光金   

  1. 重庆大学 计算机学院,重庆 400033
  • 收稿日期:2007-10-09 修回日期:2008-01-15 出版日期:2008-07-11 发布日期:2008-07-11
  • 通讯作者: 曾 一

Synthetical measurement of complexity of object-oriented inheritance

ZENG Yi,WU Guang-jin   

  1. College of Computer Science,Chongqing University,Chongqing 400033,China
  • Received:2007-10-09 Revised:2008-01-15 Online:2008-07-11 Published:2008-07-11
  • Contact: ZENG Yi

摘要: 通过对面向对象系统和当前存在的面向对象度量方法进行分析,提取出与面向对象继承复杂性度量相关的量度。修改并整合这些量度,提出了一种类级继承复杂性和系统级继承复杂性度量方法。经过修改后得出反映继承复杂性的量度有:继承成员个数(NIM)、覆盖成员个数(NOM)、成员名重复数(NRN)、继承路径长度(LIP)、访问方式改变数(NMA)。由此,通过整合可以得到对类级继承复杂性和系统级继承复杂性度量方法。最后,通过与其他度量方法进行比较,说明了该方法对面向对象继承复杂性的度量更为适合。

关键词: 继承复杂性, 量度, 度量, 合成

Abstract: Extract the metrics which are relative to the measurement of oriented-object inheritance by analyzing object-oriented system and existed measurement method of object-oriented.By modifying and recombining these metrics,put forward class level inheritance complexity and system level complexity of inheritance.After modification and recombination,obtain several metrics that reflect the inheritance’s complexity:NIM(Number of Inherited Members),NOM(Number of Overriding Members),NRN(Number of Repeat Names of member),LIP(Length of Inheritance Path),and NMA(Number of Modified Access mode).Therefore,we can find the measurement method of class level inheritance complexity and system level inheritance complexity by synthesizing these metrics.In the end,validate this method by comparing with other measurement methods.

Key words: complexity of inheritance, measurement, metric, synthesis