Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand,...Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand, test and maintain programs. A new kind of dependence analysis method for UML class diagrams is developed. A set of dependence relations is definedcorresponding to the relations among classes. Thus, the dependence graph of UML class diagram can be constructed from these dependence relations. Based on this model, both slicing and measurement coupling are further given as its two applications.展开更多
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 w...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.展开更多
文摘Though Unified Modeling Language (UML) has been widely used in software development, the major problems confronted lie in comprehension and testing. Dependence analysis is an important approach to analyze, understand, test and maintain programs. A new kind of dependence analysis method for UML class diagrams is developed. A set of dependence relations is definedcorresponding to the relations among classes. Thus, the dependence graph of UML class diagram can be constructed from these dependence relations. Based on this model, both slicing and measurement coupling are further given as its two applications.
基金Supported in part by the National Natural Science Foundation of China(NSFC)(No.60073012),Natural Science Foundation of Jiangsu (BK2001004).
文摘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.