摘要
类内聚被认为是面向对象软件的重要属性.内聚反应了类中成员相联系的紧密程度.讨论了面向对象范型软件度量的类内聚度量的研究现状.学术界已提出了几种关于面向对象范型类内聚度量,这些度量都是以类中关联成员为度量基础.多数的类内聚度量是基于实例变量访问准则.研究了上述内聚度量,总结定义了两种基本的方法关联准则:属性使用准则和方法调用准则.
Class cohesion is considered as one of important object-oriented software attributes. Cohesion refers to the degree of the relatedness of the members in a class. It discuss the status about class cohesion of software metrics in object-oriented paradigm in this paper. Several metrics have been proposed in the literature in order to measure class cohesion in object-oriented systems. They capture class cohesion in terms of connections among members within a class. The major existing class cohesion metrics are essentially based on instance variables usage criteria. It defines two fundamental connected methods criteria in this paper: attribute usage criteria and methods invocation criterion.
出处
《西南民族大学学报(自然科学版)》
CAS
2004年第5期557-560,共4页
Journal of Southwest Minzu University(Natural Science Edition)
关键词
软件度量
面向对象
类内聚
内聚缺乏度
software metrics and measurement
objected-oriented
class cohesion
lack of cohesion in methods