摘要
类是面向对象软件中的模块,包含属性和方法。类内聚度量是对类属性和方法相关程度的度量。通过对类方法和属性的分类及其与类状态之间的关系分析,提出了类核的概念和状态依赖的类内聚度量方法。该方法有利于克服类内聚度量复杂性和判断模糊性问题,并可以在设计阶段对类的内聚进行度量。
Classes are the basic modules in a oriented-objected software,which consist of attributes and methods. Measuring the class cohesion is the measuring extent of relativity for the attributes and methods of a class.According to classifying attributes and methods,analyzing their relationships with state graph of the same class,this paper defines the core of a class and proposes a novel approach to measuring the class cohesion based on state-dependence.Our approach not only benefit overcome the judging mistiness and complexity about measuring the class cohesion,but also can be conducted during design.
出处
《计算机工程与应用》
CSCD
北大核心
2005年第30期24-27,161,共5页
Computer Engineering and Applications
基金
国家自然科学基金(编号:P90104028)
关键词
类
状态
内聚度量
类核
class, state, measuring cohesion, class core