Browse Prior Art Database

Attribute Management of Object in 3GL

IP.com Disclosure Number: IPCOM000115187D
Original Publication Date: 1995-Mar-01
Included in the Prior Art Database: 2005-Mar-30
Document File: 2 page(s) / 50K

Publishing Venue

IBM

Related People

Ohkado, A: AUTHOR

Abstract

A program is disclosed that enables 3GL (C, etc.) to have object oriented interface using objects with arbitrary number and names of attributes. This program make it possible for 3GL programmers to add any number of attributes with any name to the standard classes.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 57% of the total text.

Attribute Management of Object in 3GL

      A program is disclosed that enables 3GL (C, etc.) to have
object oriented interface using objects with arbitrary number and
names of attributes.  This program make it possible for 3GL
programmers to add any number of attributes with any name to the
standard classes.

      This program identify an attribute by its name and all
attributes must be named.  To manage attributes, this program uses 1)
Hash table to manage names and 2) Type table to record type of each
attribute.  In the inside of this program, the attribute is
identified
by name.  To obtain attribute number i from attribute name N,
  1.  Use hashing function f to compute hash value h;  h = f(N)
  2.  Then look up the hash table using hash value h.  If the name
for
       the entry is not N, look for synonym.

      When the programmer defines the attribute, the attribute name
is converted to attribute number and the type is stored in the i-th
element of type table (i.e., TypeTable(i) = type;).

      The instance of attribute is implemented as the list of cells
from object where each cell has the attribute number and the
attribute value.

To set attribute value:
  1.  Obtain attribute number from attribute name.  If attribute is
not
       registered, define the attribute to type table with the
default
       type.
  2.  Search through the list of cells for the attribute number.
      a.  If the cell with the attribu...