DocumentCode :
3203580
Title :
Obtaining generic classes automatically through a parameterization operator. A focus on constrained genericity
Author :
Crespo, Y. ; Rodriguez, Jeffrey J. ; Marques, Joan M.
Author_Institution :
Dept. de CC. de la Comput., Univ. de La Habana, Cuba
fYear :
1999
fDate :
22-25 Sept. 1999
Firstpage :
166
Lastpage :
176
Abstract :
Generic classes allow one, through type parameter instantiation, to obtain new classes that are adapted to different contexts. Therefore, genericity is an important support for class reuse. When the possibility of reusing a class to deal with elements of different domains arises, it is desirable to have the appropriated generic class. Nevertheless, the construction of generic classes is a task that must be planned in advance. Hence, the possibility of reusing a class in other domain can appear, but maybe the class is not prepared for this. In this paper, we present the definition of a class restructuring operator which allows one to obtain generic classes from non-generic classes. The operator is named “parameterize”. In particular, we present the operator definition for an environment that supports the reuse of Eiffel classes. First, we present briefly the operator and then we focus on those aspects concerned with how to obtain a restriction class to constrain generic parameters. All these aspects are introduced by using examples.
Keywords :
abstract data types; mathematical operators; object-oriented programming; software reusability; Eiffel classes; class restructuring operator; class reuse; constrained genericity; generic classes; generic parameter constraints; object-oriented programming; parameterization operator; reorganizing hierarchies; restriction class; type parameter instantiation; Encapsulation; Fellows; Libraries; Object oriented modeling; Object oriented programming; Performance loss; Safety; Security;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Technology of Object-Oriented Languages and Systems, 1999. TOOLS 31. Proceedings
Conference_Location :
Nanjing
Print_ISBN :
0-7695-0393-4
Type :
conf
DOI :
10.1109/TOOLS.1999.796480
Filename :
796480
Link To Document :
بازگشت