DocumentCode :
1937018
Title :
Towards a Client Driven Characterization of Class Hierarchies
Author :
Mihancea, Petru Florin
Author_Institution :
LOOSE Res. Group, Politehnica Univ. of Timisoara
fYear :
0
fDate :
0-0 0
Firstpage :
285
Lastpage :
294
Abstract :
Object-oriented legacy systems are hard to maintain because they are hard to understand. One of the main understanding problems is revealed by the so-called "yo-yo effect" that appears when a developer or maintainer wants to track a polymorphic method call. At least part of this understanding problem is due to the dual nature of the inheritance relation i.e., the fact that it can he used both as a code and/or as an interface reuse mechanism. Unfortunately, in order to find out the original intention for a particular hierarchy it is not enough to look at the hierarchy itself; rather than that, an in-depth analysis of the hierarchy\´s clients is required. In this paper we introduce a new metrics-based approach that helps us characterize the extent to which a base class was intended for interface reuse, by analyzing how clients use the interface of that base class. The idea of the approach is to quantify the extent to which clients treat uniformly the instances of the descendants of the base class, when invoking methods belonging to this common interface, We have evaluated our approach on two medium-sized case studies and we have found that the approach does indeed help to characterize the nature of a base class with respect to interface reuse. Additionally, the approach can be used to detect some interesting patterns in the way clients actually use the descendants through the interface of the base class
Keywords :
inheritance; object-oriented programming; software maintenance; base class; class hierarchy; client driven characterization; interface reuse mechanism; metrics-based approach; object-oriented legacy system; polymorphic method call; Computer industry; Data mining; Information analysis; Quality assessment; Software design; Software quality;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Program Comprehension, 2006. ICPC 2006. 14th IEEE International Conference on
Conference_Location :
Athens
ISSN :
1092-8138
Print_ISBN :
0-7695-2601-2
Type :
conf
DOI :
10.1109/ICPC.2006.48
Filename :
1631136
Link To Document :
بازگشت