Method and system for implementing software objects
First Claim
1. An object-oriented method for controlling execution of a program in a digital computer, comprising the steps of:
- defining a software object having one or more named properties;
defining a software method implementing a predetermined behavior without associating the software method with any particular class of software objects;
including in the definition of the software method an associated set of properties;
comparing the associated set of properties of the software method to the named properties of the software object; and
if the associated set of properties of the software method matches the named properties of the software object, executing the software method by applying the software method to the software object, whereby the behavior implemented by the software method is triggered by the properties of the software object.
2 Assignments
0 Petitions
Accused Products
Abstract
A system for implementing software objects using an object-prototype model. Objects are defined as collections of properties, each having a unique property name. A collection of property names defines a "shape." The use of shapes frees the representation of an object in memory from the order in which the properties of the object are declared. Methods are defined independently of objects and are applicable to a specified shape, rather than to objects that are derived from a class in which the method is defined. Methods can be applied to any object that has the specified shape or that has a superset of the properties defining the specified shape, regardless of the place of the object in any inheritance hierarchy. The definition of a shape can also include additional selection criteria, such as restrictions on the values of properties, so that the application of a method can be restricted to objects satisfying the specified criteria. The properties of objects can be divided into subgroups representing different aspects of the object and different subgroups of an object can be inherited from different parent objects, based upon either a has-a or an is-a hierarchy. The shape of an object is determine by all of its properties and is not confined by subgroup boundaries.
-
Citations
6 Claims
-
1. An object-oriented method for controlling execution of a program in a digital computer, comprising the steps of:
-
defining a software object having one or more named properties; defining a software method implementing a predetermined behavior without associating the software method with any particular class of software objects; including in the definition of the software method an associated set of properties; comparing the associated set of properties of the software method to the named properties of the software object; and if the associated set of properties of the software method matches the named properties of the software object, executing the software method by applying the software method to the software object, whereby the behavior implemented by the software method is triggered by the properties of the software object. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification