摘要
Classes are the basic modules in Object-Oriented (OO) software, which consist of attributes and methods. Thus, in OO environment, the cohesion is mainly about how tightly the attributes and methods of classes cohere with each other. This letter discusses the relationships between attributes and attributes, attributes and methods, methods and methods of a class,and the properties of these relationships. Based on these properties, the letter proposes a new framework to measure the cohesion of a class. The approach overcomes the limitations of previous class cohesion measures, which consider only one or two of the three relationships in a class.
Classes are the basic modules in Object-Oriented (OO) software, which consist of attributes and methods. Thus, in OO environment, the cohesion is mainly about how tightly the attributes and methods of classes cohere with each other. This letter discusses the relationships between attributes and attributes, attributes and methods, methods and methods of a class, and the properties of these relationships. Based on these properties, the letter proposes a new framework to measure the cohesion of a class. The approach overcomes the limitations of previous class cohesion measures, which consider only one or two of the three relationships in a class.
基金
Supported in part by the National Natural Science Foundation of China(NSFC)(No.60073012),Natural Science Foundation of Jiangsu (BK2001004).