Joining a plurality of type hierarchies in an object oriented programming language without inheriting from a base class and without modification to the type hiearchies
First Claim
1. A system for creating a pretense of joining a plurality of type hierarchies in a single hierarchy, the system comprising a computer including a processor, a memory and input/output facilities, each type in each type hierarchy having a template describing objects that are instances of the type, comprising:
- at least one reference class to refer to the type hierarchies as if the referred type hierarchies were inherited from a common base class such that separate and unrelated ones of the type hierarchies can be joined together without modifying the type hierarchies, wherein the referred type hierarchies are not physically modified to refer to the common base class wherein the reference class further includesa discriminator which can refer to instances of at least one such type within one of the type hierarchies, wherein the discriminator discriminates between the type hierarchies; and
for each type hierarchy, an initialization function which takes as an argument a reference to an instance of any of the types in the type hierarchy, wherein the initialization function is performed by loading the discriminator with the argument; and
the initialization function is performed by loading the discriminator with the argument; and
the processor being operative to read the reference class and responsive to the initialization function included for each type hierarchy to load the discriminator with the argument of the initialization function.
5 Assignments
0 Petitions
Accused Products
Abstract
A system and method using a computer for joining a plurality of hierarchies of types is described. Each type in each type hierarchy includes a template for objects. At least one reference class is defined as computer-readable instructions stored in a memory of a computer for defining a class and includes a discriminator which can refer to instances of at least one such type within one of the type hierarchies and including, for each type hierarchy, an initialization function which takes as an argument a reference to an instance of any of the types in the type hierarchy. The initialization function included for each type hierarchy is performed by loading the discriminator with the argument of the initialization function.
-
Citations
31 Claims
-
1. A system for creating a pretense of joining a plurality of type hierarchies in a single hierarchy, the system comprising a computer including a processor, a memory and input/output facilities, each type in each type hierarchy having a template describing objects that are instances of the type, comprising:
-
at least one reference class to refer to the type hierarchies as if the referred type hierarchies were inherited from a common base class such that separate and unrelated ones of the type hierarchies can be joined together without modifying the type hierarchies, wherein the referred type hierarchies are not physically modified to refer to the common base class wherein the reference class further includes a discriminator which can refer to instances of at least one such type within one of the type hierarchies, wherein the discriminator discriminates between the type hierarchies; and for each type hierarchy, an initialization function which takes as an argument a reference to an instance of any of the types in the type hierarchy, wherein the initialization function is performed by loading the discriminator with the argument; and the initialization function is performed by loading the discriminator with the argument; and the processor being operative to read the reference class and responsive to the initialization function included for each type hierarchy to load the discriminator with the argument of the initialization function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of using a computer for creating a pretense of joining a plurality of type hierarchies in a single hierarchy, each type in each type hierarchy comprising a template describing objects that are instances of the type, comprising the steps of:
-
defining at least one reference class to refer to the type hierarchies as if the referred type hierarchies were inherited from a common base class in a single hierarchy such that separate and unrelated ones of the type hierarchies can be joined together without modifying the type hierarchies, wherein the referred type hierarchies are not physically modified to refer to the common base class wherein the reference class further includes a discriminator which can refer to instances of at least one such type within one of the type hierarchies, wherein the discriminator discriminates between the type hierarchies, for each type hierarchy, an initialization function which takes as an argument a reference to an instance of any of the types in the type hierarchy, wherein the initialization function is performed by loading the discriminator with the argument; and performing the initialization function included for each type hierarchy by loading the discriminator with the argument of the initialization function. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A computer-readable storage medium for encoding program code for creating a pretense of joining a plurality of type hierarchies in a single hierarchy, each type in each type hierarchy comprising a template describing objects that are instances of the type, comprising:
-
instructions that define at least one reference class to refer to the type hierarchies as if the referred type hierarchies were inherited from a common base class in a single hierarchy such that separate and unrelated ones of the type hierarchies can be joined together without modifying the type hierarchies, wherein the referred type hierarchies are not physically modified to refer to the common base class wherein the reference class further includes a discriminator which can refer to instances of at least one such type within one of the type hierarchies, wherein the discriminator discriminates between the type hierarchies, for each type hierarchy, an initialization function which takes as an argument a reference to an instance of any of the types in the type hierarchy, wherein the initialization function is performed by loading the discriminator with the argument; and instructions that perform the initialization function included for each type hierarchy by loading the discriminator with the argument of the initialization function. - View Dependent Claims (26, 27, 28, 29, 30, 31)
-
Specification