US 6,470,490 B1Grant
Contextual data representation and retrieval method
Issue Date:2002-10-22
•27 Claims
•2 Drawing Sheets
Abstract
A method for information representation and retrieval within a general-purpose digital computer. Information of all simple types is represented as points along dimensions, and compound information types are represented as the intersection of two or more dimensions in a multidimensional data space. A context of points is maintained externally, and is used selectively by an evaluator function which is used to return values which are bound to points in this data space, and to invoke conventional data processing functions which interact with the data space. Using the multidimensional representation and retrieval method, the processes and structures of conventional computing, such as variables, arrays, structures, lists, objects, and the like may be modeled or simulated.
Metadata
Inventor
- Victor E. Hansen
Application Information
Application Number:US 08/113,265
Filing Date:1993-08-27
Priority Date:1993-08-27
Art Unit:7
Classifications
IPC:
G06F 945
Field of Search:
395601395611395602395603395604395605395612395613395201395410717106707101
Patent Drawings (2 sheets)
Description
FIELD OF THE INVENTION
[0002] The present invention relates to the field of information representation and retrieval within a general-purpose digital computer. Information of all simple (one-dimensional) types is represented as points which are arrayed along dimensions (vectors), and compound information types are represented as the intersection of two or more dimensions in a multidimensional data space. A context, comprising one or more points may be established and maintained locally or globally, for use in evaluation of values within the data space. An evaluator function is used to return values which are bound to points in this data space, and to invoke conventional data processing functions which interact with the data space. The evaluator resolves values by selectively incorporating points from the context on an as-needed basis. Using the contextual representation and retrieval method, the processes and structures of conventional computing, such as variables, arrays, structures, lists, objects, and the like may be modeled or simulated.
BACKGROUND OF THE INVENTION
[0003] The representation of information within the memory of a general-purpose digital computer, and the organization and retrieval of that information is one of the classical problems of computing. The mere representation of alphanumeric characters which has become so commonplace was a major advance which required a complex mapping of (at first) seven bit values to corresponding characters and meta-characters in a standard, accepted order. The one-to-one mapping of the values [0,1,2 . . . 126] to the set of characters [NUL, SOH, STX . . . ˜] was not a simple task to standardize. It was not until 1965 that such a mapping became the ASCII standard.
[0004] The construction of data files using computers began with the sequential file, in which a series of records of a known and fixed length were concatenated together, and could be retrieved by the computation of an “offset” into the file, to arrive at the desired record. Thus, to arrive at the nth record in a file consisting of 80 byte records, one merely discarded the first (n×80) bytes read from the file, and retrieved the 80 bytes immediately following.
[0005] Later developments in data retrieval and storage technologies included the indexed sequential file which permitted variable length records without the need for sequential search in order to retrieve a desired record, and most recently, relational databases which use a common “key” field to relate multiple “tables” of information.
[0006] When coupled with a high level language capable of manipulating information and indices, the relational database can be a powerful tool for managing information. Each table is usually defined as a two-dimensional array of information, having columns which correspond to fields having a defined type, such as alpha, date, integer, real, and so on, while the rows correspond to individual records within the database. Relations are formed by the matching of values within designated fields of different tables. For instance, a typical business database may have a table for storing information about “people” comprising fields such as: Customer Number, First Name, Middle Initial, Last Name, Street Address, City, State, Zip Code, Telephone Number, and Social Security Number. Another table may list items purchased, and may include fields such as: Item Number, Number Purchased, Date Purchased, Item Price, Discount Applied, and Purchaser Customer Number. By knowing the Customer Number of a given customer (perhaps retrieved after a search for the customer's name in the “people” table, a listing of every item purchased by the customer may be retrieved from the “items purchased” table. Further relations are then possible in such an extended system to determine, for instance, the identity of the manufacturer of a particular item, the count of that item in current stock, and other information necessary to operation of a business.
[0007] Packaged together with tools for report formating, data manipulation, and user interface construction, relational databases are sometimes referred to as “Fourth Generation Languages” or simply “4GLs”. While such 4GLs have proven application in business computing, they are inadequate for certain “real world” tasks, and are cumbersome for others.
[0008] The present invention comprises a method for database retrieval which may be termed “super-relational”. It provides for an arbitrarily large number of simple information storage structures which may be combined in large numbers of ways, and economically stored and accessed using convention general-purpose digital computers (as opposed to special-purpose database systems such as the GScan or Teradata computer systems.)
BRIEF DESCRIPTION OF THE INVENTION
[0009] In the method of the present invention, all informational entities are treated as points along dimensional lines. For instance, every integer number is treated as a point along an “integer” dimension, every real number as a point along a “real” dimension, and every breed of dog as a point along a “breed_of_dog” dimension. In fact, dimensions can exist for any concept or item which requires representation in a data processing system. All that is required is that every point along a given dimension possess the same quality of interest as all other points along that dimension (consider such dimensions as “red_things” and “fruits”).
[0010] A point in the method of the present invention is of the notational form:
[0011] dimension: label
[0012] where dimension is the name of the dimension (e.g., integer, real, or fruits), and label specifies a particular point along the named dimension (e.g., “3”, “3.14159”, or “apple”).
[0013] A binding in the method of the present invention is an association of a value point υ with the intersection I of two or more other points p within the multidimensional space, so long as no two points are contained along the same dimension. A binding is represented by the notation:
[0014] [p1, p2, . . . pn]=υ
[0015] where the intersection I consists of the points p1, p2, pnenclosed in brackets being bound to the value point υ, and defining the intersection at value=υ(i.e., υ along the “value” dimension).
[0016] It is thus possible to reference a value υ by specifying a set of points p1, p2, . . . pn. A complete intersection is one in which all pnpoints are specified, while an incomplete intersection is one in which one or more points are missing.
[0017] The context set C in the method of the present invention is a set of points c such that no two points belong to the same dimension. A context is represented using the following notation:
[0018] [p1, p2, . . . pn|c1, c2, . . . cn]
[0019] which means that the method will evaluate the intersection p1, p2, . . . pnwithin the context of points c1, c2, . . . cn. If the intersection specified in p1, p2, . . . pnis complete, then no further operation need occur. However, if that intersection is incomplete, then one or more points taken from the context C may be used to complete the intersection. For instance, the binding:
[0020] [a, b, c]=value
[0021] cannot be referenced as [a, b] because the intersection is incomplete. Given a context of
[0022] [a, b |c, d, e]
[0023] however, the intersection may be evaluated by using c from the context.
[0024] At the core of the method of the present invention is the evaluator E, which is a process which, given an intersection I, determines the value υ, provided that I is a complete intersection, or is provided with a context C. That is,
[0025] E(I)=υ or E(I,C)=υ
[0026] The context C is preferably maintained externally to the evaluator, and points from the context are selected for use in evaluations on an as-needed basis. The evaluator must also be able to resolve ambiguities, that is, it must be able to choose between two or more possible (and complete) intersections in order to return a single value. Several approaches, such as simple point weighting are possible, and have been proven to be effective in the method of the present invention.
[0027] As will be more fully described below, the method of the present invention may be used to provide a function similar to that of a conventional relational database, but it may also be used to function as a programming language, object oriented framework, rule-based expert system shell, list processing engine, and many more extended functions now performed by special purpose hardware and software.
BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG. 1ashows a dimension structure.
[0029] FIG. 1bshows a point structure.
[0030] FIG. 1cshows an intersection structure.
[0031] FIG. 1c,eshows a binding structure.
[0032] FIG. 2 shows an area structure and a context structure.
DETAILED DESCRIPTION OF THE INVENTION
[0033] In describing the method of the present invention, several conventions in addition to those outlined above are useful. The following dimensions are used:
[0034] The NId (for Name Identification) dimension contains all points used to name things.
[0035] These points represent various labels, names, variables and the like used within computer applications.
[0036] The Dimension dimension contains a point for each dimension within the multidimensional space.
[0037] When it is necessary to have multiple points on a given dimension bound to the same value point, the notational convention used is:
[0038] dimension:p1, p2, . . . pn which defines an explicit list of points
[0039] or
[0040] dimension:p1. . . p2 which defines a range of points
[0041] or simply
[0042] dimension:{all} which defines all points on the dimension
| Point Data Structure | |
| #define V4DPI_PntType_Int 0 | /* Integer Point Value */ |
| #define V4DPI_PntType_Char 1 | /* Character String */ |
| #define V4DPI_PntType_Dict 2 | /* Dictionary Entry */ |
| #define V4DPI_PntType_Real 3 | /* Real Number */ |
| #define V4DPI_PntType_Isct 4 | /* Intersection (Grouping is number of |
| points in the intersection) */ | |
| #define V4DPI_PntType_Foreign 5 | /* Foreign data type (ex: qtyuom) */ |
| #define V4DPI_PntType_Special 6 | /* Special points (e.g. (ALL), (CURRENT)) */ |
| #define V4DPI_PntType_Shell 7 | /* This is a shell for other points */ |
| #define V4DPI_PntType_FrgnDataE1 8 | /* Field specification for foreign file */ |
| #define V4DPI_PntType_FrgnStructE1 9 | /* Structure specification for a foreign file */ |
| #define V4DPI_PntType_CmpndIsct 10 | /* Compound Intersection: dim=[ ... ], [ ... dim= ] |
| ... */ | |
| #define V4DPI_PntType_V3Mod 11 | /* V3 Module Call */ |
| #define V4DPI_PntType_V3ModRaw 12 | /* V3 Module Call with no translation (points passed “as is”) */ |
| #define V4DPI_PntType_Context 13 | /* A Context point */ |
| #define V4DPI_PntType_List 14 | /* A “special” (internally maintained) list */ |
| #define V4DPI_PntType_Pragma 15 | /* A point which holds junk for IntMods, |
| not to be pushed onto context */ | |
| #define V4DPI_PntType_IntMod 16 | /* A point which evaluates via internal (to |
| V4) module */ | |
| #define V4DPI_PntType_PntIdx 17 | /* A point which points to internal point |
| buffer (“expanded” by V4) */ | |
| #define V4DPI_PntType_MemPtr 18 | /* A memory pointer */ |
| #define V4DPI_PntType_V3PicMod 19 | /* A V3 PIC module (module stored in same area as point?) */ |
| #define V4DPI_PntType_BigText 20 | /* A big text string (see V3PicMod above) */ |
| #define V4DPI_PntType_PIntMod 21 | /* Partial Eval IntMod (last argument is continued evaluation) */ |
| #define V4DPI_PntType_Time 22 | /* Time/Transaction - Bindings searched in |
| reverse “chronological” order */ | |
| #define V4DPI_PntType_Binding 23 | /* Binding info - used for erasing/tracking bindings */ |
| #define V4DPI_PntType_Logical 24 | /* Logical (Yes/No) */ |
| #define V4DPI_PntVerify_InArea 1 | /* Verify point in Area */ |
| #define V4DPI_PntVerify_Dict 2 | /* Verify point in dictionary */ |
| #define V4DPI_PntVerify_Range 3 | /* Point must be within range */ |
| #define V4DPI_PntVerify_Ref 4 | /* Verify point as REF in another area */ |
| #define V4DPI_Grouping_Single 0 | /* Single Point */ |
EXAMPLES OF IMPLEMENTATION
Procedural Language (Data)
[0043] In using the method of the present invention to approximate the variable structures of conventional high-level programming languages, for example, one would establish dimensions and bindings as follows:
[0044] NId—a dimension for the names of things in the program.
[0045] Program—a dimension for points corresponding to each program in the system.
[0046] Proc—a dimension for points corresponding to each procedure declared in the programs.
[0047] Invoke—a dimension for points corresponding to each procedure invocation (created as the program executed).
[0048] The variables in the programs may then be thought of as the following bindings:
[0049] global heap [NId=var , Program=name]
[0050] local dynamic [NId=var , Proc=procedure , Invoke=frame]
[0051] local heap [NId=var, Proc=procedure]
[0052] In such a structure, if Program, Proc, and Invoke are established as part of the context C, then each type of variable may be referenced simply with NId points (that is, the variable name), in the same manner as in conventional programming. Maintenance of the context may be performed independently of the program (in a manner analogous to the operation of the internal code generated by compilers for managing frame, heap, stack and other memory control structures.)
Database Definition Example
[0053] DataEl=(5109,1, CHECK_NUMBER,APO_CHECK_NUMBER,1,0,1,0,4,0)
[0054] Bind [Field=CHECK_DATE FileRef=5109 DataEl]
[0055] DataEl=(5109,2, CHECK_DATE,EXEC_KO_DATE,1,0,1,4,4,0)
[0056] Bind [Field=CASH_ACCOUNT FileRef=5109 DataEl]
[0057] DataEl=(5109,3, CASH_ACCOUNT,APO_CASH_ACCOUNT,15,0,1,8,2,0)
[0058] Bind [Field=TTL_CHECK_AMT FileRef=5109 DataEl]
[0059] DataEl=(5109,4, TTL_CHECK_AMT,EXEC_KO_MONEY,1,0,1,12,4,2)
[0060] Bind [Field=TTL_DISCOUNT_AMT FileRef=5109 DataEl]
[0061] DataEl=(5109,5, TTL_DISCOUNT_AMT,EXEC_KO_MONEY,1,0,1,16,4,2)
[0062] Bind [Field=TTL_APPLY_AMT FileRef=5109 DataEl]
[0063] DataEl=(5109,6, TTL_APPLY_AMT,EXEC_KO_MONEY,1,0,1,20,4,2)
[0064] Bind (Field=SORT1 FileRef=5109 DataEl)
[0065] DataEl=(5109,7, SORT1, EXEC_KO_ALPHA,3,0,1,24,10,0)
[0066] Bind [Field=NAME FileRef=5109 DataEl] DataEl=(5109,8, NAME,EXEC_KO_ALPHA,3,0,1,34,30,0)
[0067] Bind [Field=ADDRESS1 FileRef=5109 DataEl]
[0068] DataEl=(5109,9, ADDRESS1, EXEC_KO_ALPHA,3,0,1,64,30,0)
[0069] Bind [Field=ADDRESS2 FileRef=5109 DataEl]
[0070] DataEl=(5109,10, ADDRESS2, EXEC_KO_ALPHA,3,0,1,94,30,0)
[0071] Bind [Field=CITY FileRef=5109 DataEl]
[0072] DataEl=(5109,11, CITY,EXEC_KO_ALPHA,3,0,1,124,30,0)
[0073] Bind [Field=ADDRESS3 FileRef=5109 DataEl]
[0074] DataEl=(5109,12, ADDRESS3, EXEC_KO_ALPHA,3,0,1,154,30,0)
[0075] Bind [Field=ADDRESS4 FileRef=5109 DataEl]
[0076] DataEl=(5109,13, ADDRESS4, EXEC_KO_ALPHA,3,0,1,184,30,0)
[0077] Bind [Field=ZIP FileRef=5109 DataEl] DataEl=(5109,14, ZIP,APO_GEN_UZIP,1,0,1,216,4,0)
[0078] Bind [Field=ZIPXTRA FileRef=5109 DataEl]
[0079] DataEl=(5109,15, ZIPXTRA,EXEC_KO_ZIPXTRA,3,0,1,220,16,0)
[0080] Bind [Field=STATE FileRef=5109 DataEl]
[0081] DataEl=(5109,16, STATE,EXEC_KO_UCALPHA,3,0,1,236,2,0)
[0082] Bind [Field=COUNT FileRef=5109 DataEl]
[0083] DataEl=(5109,17, COUNT,EXEC_KO_INTEGER,15,0,1,238,2,0)
[0084] Bind [Field=SEL_INDEX FileRef=5109 DataEl]
[0085] DataEl=(5109,18, SEL_INDEX,EXEC_KO_INTEGER,15,0,2,0,2,0)
[0086] Bind [Field=APOPNITM_ID FileRef=5109 DataEl]
[0087] DataEl=(5109,19, APOPNITM_ID,APO_APOPNITM_ID,1,0,2,4,4,0)
[0088] Bind [Field=VENDOR_INVOICE FileRef=5109 DataEl]
[0089] DataEl=(5109,20, VENDOR_INVOICE,APO_VENDOR_INVOICE,3,0,2,8,15,0)
[0090] Bind [Field=VENDOR_INV_DATE FileRef=5109 DataEl]
[0091] DataEl=(5109,21, VENDOR_INV_DATE,EXEC_KO_DATE,1,0,2,24,4,0)
[0092] Bind [Field=COMMENTS FileRef=5109 DataEl]
[0093] DataEl=(5109,22, COMMENTS,EXEC_KO_ALPHA,3,0,2,28,30,0)
[0094] Bind [Field=CHECK_AMT FileRef=5109 DataEl]
[0095] DataEl=(5109,23, CHECK_AMT,EXEC_KO_MONEY,1,0,2,60,4,2)
[0096] Bind [Field=DISCOUNT_AMT FileRef=5109 DataEl]
[0097] DataEl=(5109,24, DISCOUNT_AMT,EXEC_KO_MONEY,1,0,2,64,4,2)
[0098] Bind [Field=APPLY_AMT FileRef=5109 DataEl]
[0099] DataEl=(5109,25, APPLY_AMT,EXEC_KO_MONEY,1,0,2,68,4,2)
[0100] Bind [Field=ALL FileRef=5109 DataEl] DataEl=(5109,26, ALL,EXEC_KO_ALPHA,3,0,2,0,72,0)
[0101] Bind [Field=ITEM FileRef=5109 DataEl] DataEl=(5109,27, ITEM,STRUCT1,3,0,1,240,25200,2)
[0102] Bind [FileRef=5109 Structure=2] StructEl=(5109,2,27,72,350,240)
[0103] Bind [Field=DEF_AP_CHECK_PRINT FileRef=5109 DataEl]
[0104] DataEl=(5109,28, DEF _AP_CHECK_PRINT,STRUCTO,3,0,0,0,25440,2)
[0105] Bind [FileRef=5109 Structure=1] StructEl=(5109,1,28,25440,0,0)
[0106] Bind [Field=VENDOR_REF FileRef=5110 DataEl]
Procedural Language (Flow of Control)
[0107] In addition to the above data structures, flow of program control requires the following dimensions and bindings:
[0108] Level—a dimension for the nested level of Begin/End constructs.
[0109] Step—a dimension for the program statements in each procedure.
[0110] Label—a dimension for arbitrary labels
[0111] Bindings to provide flow are thus:
[0112] [Proc, Level, Step, NId=NextStep]=step
[0113] Goto: [Proc, Level, Step, NId=NextStep]=step
[0114] while a conditional branch evaluates to a Level and inserts this Level into the Context Set, CS.
[0115] Procedure entry and exit is similarly a manipulation of the Context such that on entry to a procedure, the Proc, Frame, Level, and Step are placed in CS, while the old CS is placed into a new CS. Return from a procedure is simply then, the restoration of the old CS.
Example of a Recursive Function (Within Evaluator)
[0116] Set Echo
[0117] Bind [Factorial Int:{all}] Mult(Int:{Binding}[Factorial|Minus(Int:{Binding}
[0118] Int:1)])
[0119] Bind [Factorial Int:1] Int:1
[0120] =[Factorial Int:5]
[0121] INT(12):120
Object Oriented Program Example
[0122] Dim Host Dict
[0123] Dim OpMode Dict Bind 5
[0124] Dim Method Dict Bind 5
[0125] Dim Keyword Dict Bind 5
[0126] Bind [DCL DataType:NewAddress] Alpha:“Alpha:50”
[0127] Bind [DataType DataType:newAddress] DataType:AdrField
[0128] Bind [Host:DecAlpha DCL DataType:UDate] Alpha:“int64”
[0129] ! Set up “Inheritance”
[0130] Bind [OpMode=OOPS NId={All} DataType:{All}] [NId={Binding}[DataType DataType:{Binding}]]
[0131] Bind [OpMode=OOPS NId={All} Keyword:{All}] [NId={Binding} [DataType Keyword:{Binding}]]
[0132] ! Set Up “Polymorphism”
[0133] Bind [Method=Format Keyword={All}] [Displayer Keyword={Binding}]
[0134] Context Push OOPS
[0135] Context Add OpMode=OOPS
[0136] ! mDefine Two “Instances”
[0137] Bind [Keyword=MinDays Desc] Alpha=“Minimum Days to Age”
[0138] Bind [Keyword=MinDays DataType] DataType:Integer
[0139] Bind [Keyword=MinDays Desc] Alpha=“Date of Aging”
[0140] Bind [Keyword=MinDays DataType] DataType:UDate
[0141] ! Manipulate Objects
[0142] =[Method=Format Keyword=MinDays]
[0143] V3MODULE(16):ITX_NUM
[0144] =[Method=Format Keyword=AgeDate]
[0145] V#MODULE(20):ITX_DATE
[0146] ={Dcl Keyword=AgeDate]
[0147] ALPHA(12):INT
[0148] Context Add Host:DecAlpha
[0149] =[Dcl Keyword=AgeDate]
[0150] ALPHA(16):“int64”
[0151] Context Pop
Time-based System Example
[0152] Dim Time Time
[0153] Dim Tran Time Unique
[0154] Dim B Binding
[0155] Bind [freddy time={now}] alpha=“now is the time”
[0156] Bind [TranID Tran={New}] int=123
[0157] Bind [TranId Tran={New}] int=2345
[0158] Bind [TranID Tran={New}] alpha-“ho ho ho”
[0159] =[TranId]
[0160] ALPHA(20):“ho ho ho”
[0161] =[freddy]
[0162] ALPHA(24):“now is the time”
[0163] Eval Remove_Point(B={LastBind})
[0164] =[TranId]
[0165] INT(12):2345
[0166] Bind [TranId Tran={New}] alpha=“the next one”
[0167] =[TranId]
[0168] ALPHA(24):“the next one”
[0169] Bind [Next Int={All}] [IntMod=Next_IsctVal Int={Binding}]
[0170] Bind [Describe Iter=[Next Int={Binding}],[IntMod=Echo Iter={Context}]|
[0171] [IntMod=MakeSeq_IsctVal@[TranId] Int=1 Int=2 Int=3]
[0172] Eval [Describe]
[0173] 2345
[0174] 123
Reference: Operators for Manipulation of Data and Structures
| itx_Point - Converting from V4 Point to Text |
| Syntax |
The V4 Interpreter
[0175] Macros
[0176] The V4 interpreter has sophisticated macro definition and expansion capabilities. Macros can be locally defined and used, or stored within a V4 area for use in later environments. The primary purpose of a V4 macro is to provide a clean, easy-to-use method for defining a concept as multiple bindings.
[0177] For example, referencing a data file (V4IS) through V4 requires several bindings to define the area name, the key(s) to the area, how substructures are to be defined, etc. These could be done explicitly as shown below for accessing a vendor database
[0178] Bind [Filename FileRef=9999] Alpha=“ . . . /nsd/apvenmas.dat”
[0179] Bind [Buffer FileRef=9999 VendorPCB={All}] VendorPCB={Binding}
[0180] Bind [Buffer FileRef=9999]
[0181] Open_V4IS([FileName FileRef=9999] [FileRef=9999 Structure=1] VendorPCB=0)
[0182] Bind [Record FileRef=9999 Vendor_Ref={All}]
[0183] Get_V4IS([Buffer FileRef=9999] [DataEl FileRef=9999 [FileRef=9999 Key=1 Part=1]]
[0184] Vendor_Ref={Binding} RecPtr=0)
[0185] Bind [Record FileRef=9999 Vendor_Id={All}]
[0186] Get_V4IS([Buffer FileRef=9999] [DataEl FileRef=9999 [FileRef=9999 Key=2
[0187] Part=1]] Vendor_Id={Binding} RecPtr=0)
[0188] Bind [Value Field={All} Vendor_Ref={All}]
[0189] Field_V4IS([Record FileRef=9999 Vendor_Ref={Binding}]
[0190] [DataEl FileRef=9999 Field={Binding}])
[0191] Bind [Value Field=(All) Vendor_Id={All}]
[0192] Field_V4IS([Record FileRef=9999 Vendor_Id={Binding}]
[0193] [DataEl FileRef=9999 Field={Binding}])
[0194] Bind [Value Field={All} Vendor_Ref={All} Month={All}]
[0195] S1bcField_V4IS([Record FileRef=9999 Vendor_Ref={Binding}]
[0196] [DataEl FileRef=9999 Field={Binding}] [DataEl FileRef=9999 Field=Purch_Month] Month={Binding})
[0197] Bind [Value Field={All} Vendor_Ref={All} Index={All}]
[0198] S1bxField_V4IS([Record FileRef=9999 Vendor_Ref={Binding}]
[0199] [DataEl FileRef=9999 Field={Binding}] Index={Binding})
[0200] and repeated for every data base to be access. Or, a macro could be defined once and then invoked for each database
[0201] {/ADCL(aFileRef, aFileName, aRefField, aIdField, aRepeatField, aRepeatIndex)
[0202] Bind [Buffer FileRef:aFileRef AreaPCB={All}] AreaPCB={Binding};
[0203] Bind [Buffer FileRef:aFileRef]
[0204] Open_V4IS(aFileName [FileRef:aFileRef Structure:1] AreaPCB:0);
[0205] Bind [Record FileRef:aFileRef aRefField:{All}]
[0206] Get_V4IS([Buffer FileRef:aFileRef]
[0207] [DataEl FileRef:aFileRef [FileRef:aFileRef Key:1 Part:1]] aRefField* RecPtr:0);
[0208] Bind [Value Field:{All} aRefField:{All}]
[0209] Field_V4IS([Record FileRef:aFileRef aRefField*] [DataEl FileRef:aFileRef Field*])
[0210] ;
[0211] if defined aIdField;
[0212] Bind [Record FileRef:aFileRef aIdField:{All}]
[0213] Get_V4IS([Buffer FileRef:aFileRef]
[0214] [DataEl FileRef:aFileRef [FileRef:aFileRef Key:2 Part:1]] aIdField* RecPtr:0);
[0215] Bind [Value Field:{All} aIdField:{All}]
[0216] Field_V4IS([Record FileRef:aFileRef aIdField*] [DataEl FileRef:aFileRef Field*]);
[0217] end;
[0218] if defined aRepeatField;
[0219] Bind [Value Field:{All} aRefField:{All} ARepeatField:{All}]
[0220] S1bcField_V4IS([Record FileRef:aFileRef aRefField*]
[0221] [DataEl FileRef:aFileRef Field*]
[0222] [DataEl FileRef:aFileRef Field:aRepeatField] aRepeatField*);
[0223] end;
[0224] if defined aRepeatIndex;
[0225] Bind [Value Field:{All} aRefField:{All} aRepeatIndex:{All}]
[0226] S1bxField_V4IS([Record FileRef:aFileRef aRefField*]
[0227] [DataEl FileRef:aFileRef Field*] aRepeatIndex*);
[0228] end;
[0229] }/ADCL
[0230] ADCL(5203, “v3_sapsdat:apvenmas.dat”, vendor_ref,IdField=vendor_id, RepeatIndex=Line)
[0231] Note that defining additional areas only requires a single additional line in which all necessary parameters are easily defined.
[0232] Defining a Macro
[0233] A macro definition consists of a macro definition line, a body, and a macro trailer line. The macro header line declares the macro name and any parameters which may be referenced throughout the macro body. The body consists of any number of V4 interpretive commands plus several special commands which are only available within macros. The trailer is a line indicating the end of the macro.
[0234] Macro Header Lines
[0235] The format of a macro header line is
[0236] {/macroname (param1, param2, . . . paramn)
[0237] where macroname is the name of the macro, param1, . . . paramn, are the names of the parameters which may be referenced within the macro. It is desirable to preface each parameter with a single letter prefix, normally the letter “a”. If all parameters are prefaced with the same letter then macro invocations can reference the parameters with or without the single letter prefix.
[0238] Macro Body Lines
[0239] The body of a macro is simply a list of V4 commands. In addition to the commands which actually do something are several commands for conditional execution such as “If” and “If1”. All commands in the macro body must be ended with a semicolon!
[0240] Macro Trailer Line
[0241] The macro trailer line ends the macro. The format is
[0242] }/macroname
[0243] where macroname must match the name in the header line.
[0244] Macro Invocation
[0245] A macro is invoked using a syntax similar to that of a procedure call
[0246] macroname(arg1, arg2, . . . )
[0247] macroname(paramname=arg, paramname=arg, . . . )
[0248] As shown above, two formats are possible. The first format simply lists the argument in the order in which they are defined in the macro header line. The second form permits the specification of parameter values by parameter name (with or without the single letter prefix). It is possible to mix and match the two formats. Arguments not explicitly assigned to a parameter are assigned to the “next” parameter. In practice it is a good idea to define macros with all mandatory arguments before optional arguments. Then in an invocation, the mandatory arguments can be given without parameter names and any optional arguments can be listed with names.
[0249] Using Macros in a V4 Area
[0250] See the Set MacroBind command for more information on saving macros in a V4 area and the Set MacroCall command for an explanation on how to reference them.
[0251] Extracting the Contents of a Macro
[0252] It is possible to extract the contents of a macro with the following
[0253] macroname( )>file
[0254] macroname( )>>file
[0255] The first form copies the contents of the macro to the file. The second form appends the contents to the file.
[0256] Commands
[0257] Area—Opening/Creating a V4 Area
[0258] Syntax
[0259] Area Read filename filename . . .
[0260] Area mode filename options
| mode | how the area is to be opened, Create to create a new | |
| area, Read to read an existing area, Update to read | ||
| and/or update an existing area, CreateIf to create an | ||
| area if it does not already exist, and Close to close an | ||
| area. | ||
| filename | the name of the area | |
| options | a list of options when creating a new area | |
[0261] Description
[0262] The Area command creates, opens, and closes area in a V4 environment. One or more areas can be open for reading with a single command. The V4 kernel area should always be the first area opened and can be references as filename “v4kernel”. A variety of options are available when creating a new area. These a summarized in the table below
| Hierarchy number | Assigns the area to a hierarchy. This is a |
| number from 1 to 7. The V4 kernel is always | |
| number 1. | |
| ExtDictUpd | Allow external dictionary updates. |
| IntDictUpd | Allow internal dictionary updates. |
| BindingUpd | Allow binding updates. |
| Primary | A primary area |
| Slave | A slave area. |
| Categories list | Categories are as listed |
| NoExtDictUpd | Do not permit external dictionary updates |
| NoIntDictUpd | Do not permit internal dictionary updates |
| NoBindingUpd | Do not permit bindings |
| NewMacro macroname | Specifies a macro to be invoked whenever the |
| area is created (for use with the CreateIf mode). | |
| BucketSize bytes | Specifies the bucket size of the area. The |
| total number of bindings permitted to a binding | |
| point is indirectly related to the bucket size. | |
| In most cases the default bucket size should | |
| be acceptable. | |
[0263] Example
[0264] Area Read v4kernel
[0265] Area Create Demo Hierarchy 5 Primary
[0266] Dimension—Declaring a New Dimension
[0267] Syntax
[0268] Dimension name type attributes
| name | the name of the dimension |
| type | the dimension type or how the dimension is to be used |
| attributes | a list of optional attributes |
[0269] This command is used to define new dimensions in an area. A dimension type must be one of the type from the table below (a detailed description of each type follows)
| Alpha | A character string |
| BigText | A large, multi-line chunk of text |
| Binding | A V4 Binding |
| Compound | A compound intersection used in iterations |
| Context | A context point, expanded into components upon evaluation |
| DataEl | A data element specification (the offset, length, datatype, |
| etc.) | |
| Dictionary | A dictionary point-stored as a number, displayed as a |
| keyword | |
| Foreign | A foreign data structure |
| Integer | An integer number |
| Intersection | An intersection |
| IntMod | An internal module |
| List | A list of values |
| Logical | A logical (true/false) value |
| MemPtr | A memory pointer |
| PIntMod | A partial internal module |
| PointIndex | A number representing a V4-allocated datastructure |
| Pragma | A pragmatic point (usually invisible) |
| Shell | A shell point, values are other points |
| Special | Points specified with the “{xxx}” construct |
| StructEL | A structure specification |
| Time | A time or transaction point |
| V3Mod | A link to a V3 module |
| V3PicMod | A link to the PIC definition of a V3 module |
| V3ModRaw | A link to a V3 module |
[0270] Attributes may be also specified to further refine the declaration. These are summarized below
| Acceptor module | Defines a V3 acceptor module for the dimension. |
| AutoContext point | Defines a V4 point to be used in auto-context look- |
| ups. See below for more information on this feature | |
| Binding num | Assigns a binding weight number to this dimension. |
| See below for more information. | |
| Displayer module | Defines a V3 displayer module for this dimension |
| Macro string | Declares a macro string to be used when creating |
| points. Not currently used. | |
| Multiple logical | Allows multiple values to be specified as a single |
| point (ex: dim:a,b,c) | |
| Range logical | Allows a range of values to be specified as a single |
| point (ex: dim:a . . . b) | |
| Unique | Allows the user to create new points on this |
| dimension with the (new) construct. | |
| Verify | Not currently used |
| Internal | Who knows |
| External | Opposite of Internal |
| Dimension | Who knows |
| Heirarchy n | Specifies the Heirarchy for this dimension |
| Category xxx | Not currently used |
| Review how | Not currently used |
[0271] Auto-Context
[0272] The AutoContext attribute can be used to indirectly specify how a point is to be “valued” during the evaluation of an intersection if that point is not currently defined in the context.
[0273] For example, if the Customer dimension has been defined as
[0274] Dimension Customer Integer AutoContext NId:NeedCustomer
[0275] and the following bindings have been made
[0276] Binding [NeedCustomer Dim:Customer Order:{any}] [BilltoCus Order*]
[0277] and if we are in the context of (Order:543210 Date: 4/15/93 Item:123) and attempt to match (through an evaluation)
[0278] [ItemPrice Item:123 Date: 1/1/93 . . . 12/31/93 Customer:56781]
[0279] then it would appear that no match can be made because we do not have any point in the Customer dimension in the current context. However, V4 will automatically attempt to evaluate
[0280] [NeedCustomer Dim:Customer]
[0281] and use the result as the value for the Customer dimension for this match. This would match the binding above, re-evaluate to determined the billto customer for the current order and if it equaled Customer:5678 permit the match to succeed.
[0282] Binding Numbers
[0283] Binding numbers are an important aspect of a large V4 environment. These numbers control bow a binding is to be stored. During a binding, V4 scans all points in the binding intersection from left to right and tracks the first dimension with the highest binding number. This becomes the dimension used as the primary “key” for storing the binding. For this reason, all dimensions with a binding number must be stored as a number—Integer, Dictionary, Time, etc. Alpha, foreign, data elements, etc. cannot have binding numbers.
[0284] Append—Appending a Point to a List
[0285] Syntax
[0286] Append isct point
[0287] isct an intersection evaluating to a list
[0288] point the point to be appended
[0289] Description
[0290] This command appends the specified point to the list referenced by isct. The intersection must evaluate to a list point or an error is generated.
[0291] Example
[0292] Dim ModuleList List
[0293] Bind [Module:xyz Package:pack1] ModuleList:( )
[0294] . . .
[0295] Append [Module:xyz Package:pack1] Variable:foo
[0296] Insert—Insert a Point to the Beginning of a List
[0297] Syntax
[0298] Insert isct value
[0299] isct an intersection evaluating to a list
[0300] point a point to be inserted at the beginning of the list
[0301] Description
[0302] This command inserts point at the beginning of a list pointed to by isct.
[0303] Bind—Bind an Intersection to a Value Point
[0304] Syntax
[0305] Bind isct point
[0306] isct an intersection
[0307] point a point to bound as the value of the intersection
[0308] Description
[0309] The Bind command binds an intersection to a value point.
[0310] Example
[0311] Bind [OHQty Item:xyz Location:loc23] Quantity:999
[0312] Context Add—Adding a Point to the Context
[0313] Syntax
[0314] Context Add point
[0315] point a point to be added to the current context
[0316] Description
[0317] The point is added to the current frame of the current context. If the point is an intersection then it is evaluated before being added to the context.
[0318] Example
[0319] Context Add [PreferredLocation Customer: 1234]
[0320] Context Examine—Examining the Current Context
[0321] Syntax
[0322] Context Examine
[0323] Description
[0324] This command generates a list of all points currently active in the context to the user's console.
[0325] Context Pop—Popping Frame(s) off of the Context
[0326] Syntax
[0327] Context Pop [name]
[0328] name the frame name to pop off to
[0329] Description
[0330] This command pops of the current context frame or pops off multiple frames until a frame with name is popped.
[0331] Context Push—Pushing a New Frame onto the Context
[0332] Syntax
[0333] Context Push name
[0334] name The name of the frame
[0335] Description
[0336] This pushes a new frame onto the current context with the specified name. Points added to the context after the “push” are associated with the frame and are removed from the context when the context frame is popped off.
[0337] Dump—Dumping all Intersections Containing a Given Dimension
[0338] Syntax
[0339] Dump dimension [filter]
[0340] dimension the search dimension. A scan of all bindings in all current areas will be made for any intersection containing the specified dimension.
[0341] filter an option filter intersection. If given then only intersections containing all of the points in filter will be output.
[0342] Description
[0343] The Dump command is used to exhaustively search all bindings in all open areas for the current context. Any binding containing dimension will be listed. If a filter is specified then an intersection must not only contain dimension but must also have points matching all points in filter.
[0344] Example
[0345] The example below will search for all bindings containing the Date dimension and additionally containing the point “Company:CDF” and any IMRef points. Dump Dim:Date [Company:CDF IMRef:(all)]
[0346] Evaluate—Evaluate an Intersection
[0347] Syntax
[0348] Evaluate intersection
[0349] intersection an intersection to be evaluated
[0350] Description
[0351] This command evaluates the specified intersection. An error is generated if the intersection cannot be completely evaluated.
[0352] Example
[0353] The example below calculates the price for item #1234 as of Mar. 1, 1993 for the BillTo customer of the current order Eval [Price IMRef:1234 Date: 3/1/93 [BilltoCusRef Order*]]
[0354] Exit—Exit from the V4 Interpreter
[0355] Syntax
[0356] Exit
[0357] Description
[0358] The “Exit” command closes all open areas and exits from the V4 interpreter.
[0359] Include—Execute Commands from a File
[0360] Syntax
[0361] Include file
[0362] file a file containing V4 interpreter commands to be executed
[0363] Description
[0364] This command redirects the command input to the specified file. All lines in the file will be executed as V4 commands, macro expansions or macro definitions. The “Include” command may be nested to any reasonable limit.
[0365] =—Evaluate an Intersection
[0366] Syntax
[0367] =intersection
[0368] intersection an intersection to be evaluated
[0369] Description
[0370] This command evaluates an intersection and outputs the resulting point to the user's console.
[0371] Set Echo—Enables Echoing of Command Lines
[0372] Syntax
[0373] Set Echo ON
[0374] Set Echo Off
[0375] Set Echo n
[0376] Set Echo ALL
[0377] Description
[0378] This command enables or disables the echoing of input lines to the V4 interpreter. The echo state of an Included file is one less then the state of the issuing the Include command. Setting the echo to ON enables echoing of the current level only. Setting the echo to ALL enables echoing for the current level and all nested levels. Setting the echo to a number n enables echoing for the current level and n−1 nested levels.
[0379] Set Parameter—Set a Global Substitution Parameter
[0380] Syntax
[0381] Set Parameter letter value
[0382] letter a letter from “A” to “Z” which denotes the parameter
[0383] value any value to be associated with the parameter
[0384] Description
[0385] Global parameters may be set and reset at any time within a V4 interpretive session. A parameter may be referenced by enclosing it's name with braces.
[0386] Example
[0387] Set Parameter A Vendor
[0388] Bind [Name {A}:123] Alpha:“Smith Supplies”
[0389] Set Result—Enable/Disable Echo of Bindings
[0390] Syntax
[0391] Set Results ON
[0392] Set Results OFF
[0393] Description
[0394] This Set option controls the outputting of binding information after each Bind command.
[0395] Set Trace—Enable/Disable Evaluation Tracing
[0396] Syntax
[0397] Set Trace mode
[0398] mode for different tracing modes. The current values are 0 to disable tracing, 1 for nominal tracing and 8 for fuller tracing.
[0399] Description
[0400] This command controls the handling of the trace facilities within the V4 intersection evaluator.
[0401] Set MacroBind—Controlling the Placement of Macro Definitions in an Area
[0402] Syntax
[0403] Set MacroBind isctmask point
[0404] isctmask in intersection mask that is used with the current macro name to form a complete intersection.
[0405] point a point used to store the macro. This point is usually specified as “dimension:{new}” to ensure that the macro is written as a new point in the same area that the above intersection is stored.
[0406] Description
[0407] This option is used to control how macros are stored in a V4 area. The intersection mask, isctmask, should contain an asterisk “*” which is replaced with the name of the current macro. The point is evaluated and the integer value associated with the point is used as a unique key to store the macro in the “BigText” format. The intersection and value are bind'ed together and the binding area selected is also used to store the actual macro.
[0408] Example
[0409] Dim Macro Int Unique
[0410] Set MacroBind [*Dim:Macro] Macro:{new}
[0411] Set MacroCall—Determine the Access of a Macro
[0412] Syntax
[0413] Set MacroCall isctmask
[0414] isctmask an intersection mask
[0415] Description
[0416] This command is used to control how macros are found by the V4 interpreter. In most cases, the intersection mask, isctmask, is identical to that of the Set MacroBind settings used to store the macros.
[0417] Example
[0418] Set MacroCall [*Dim:Macro]
[0419] Set TextBind—Control the Saving of a BigText Buffer in an Area
[0420] Set TextBind isctmask point
[0421] isctmask in intersection mask that is used with the current macro name to form a complete intersection.
[0422] point a point used to store the macro. This point is usually specified as “dimension:{new}” to ensure that the macro is written as a new point in the same area that the above intersection is stored.
[0423] Description
[0424] Example
[0425] Set TextBind [Macro:{Context} Dim:Macro] [Macro:{New}]
| Dimension Types |
|---|
[0426] Alpha—Character String
[0427] Usage
[0428] Upper and lowercase alphanumerics usually enclosed in single or double quotes. If no quotes are specified then the keyword is converted to uppercase and stored.
[0429] Storage Method
[0430] Strings of up to 255 bytes are stored in contiguous bytes with the length of the string in the first byte.
[0431] Example
[0432] Dim ModuleName Alpha
[0433] Bind [Name Module:1233] Alpha:“ConversionMod”
[0434] Special Case
[0435] The Alpha dimension is a defined within the V4 kernel. A quoted string not prefaced with a dimension name is assumed to be a point on the Alpha dimension. Alpha:“Now is the time” is the same as
[0436] “Now is the time”
[0437] BigText—Large Text Arrays
[0438] Usage
[0439] This dimension type is used to store large amounts of text (via the BigBuf format) as a V4 point.
[0440] Storage Method
[0441] The point itself is stored as an integer value and is used as a key to obtain the actual data.
[0442] Binding—A Binding Point
[0443] Usage
[0444] Binding points cannot be explicitly referenced. These are internal points created whenever an intersection is bound to a value point. The last binding point created can be referenced via
[0445] binddim::{Binding}
[0446] Storage Method
[0447] Bind points are stored as a special data structure
| struct V4DPI_BindPointVal | /* Format of Value for a |
| */ | Binding Point |
| {unsigned short Dim ; | /* Dimension */ |
| unsigned short BindId ; | /* Binding Id in list */ |
| int DimPntVal ; | /* Point Value for binding list |
| (these first 3 fields used to form key) */ | |
| unsigned short AreaId ; | /* AreaId of area containing |
| binding list */ | |
| } ; | |
[0448] Compound—Compound Intersections for Iterating
[0449] Usage
[0450] Storage Method
[0451] Example
[0452] ! How to sequence thru a sequential Text file
[0453] Bind [Sequence FileName={ALL}] [IntMod=MakeSeq_TextFile
[0454] FileName={BINDING}]
[0455] Bind [Next Sequence=NextFile FileDesc={ALL}] [IntMod=Next_TextFile
[0456] FileDesc={BINDING}]
[0457] Bind [Loop SeqPnt={ALL}] Iter=[Next SeqPnt={BINDING}],[IntMod=Echo
[0458] Iter={Context}]
[0459] Bind [List FileName={ALL}] Iter=[Next SeqPnt={Binding}],[IntMod=Echo
[0460] Iter={Context}] | [Sequence FileName={BINDING}]
[0461] =[List FileName=
[0462] Context—A Context Point
[0463] Usage
[0464] A context point is composed of a list of other points. When a context point is used as a component point of an intersection to be evaluated, each of its components are added to the context. Thus it is not explicitly a point to be matched.
[0465] Storage Method
[0466] Context points are stored as a any other V4 list.
[0467] DataEl—A Data Element
[0468] Usage
[0469] (fileref, element, name, dimname, v3datatype, keynum, owner, offset, bytes, decimals)
| fileref | the file reference number | |
| element | the element number for this field | |
| name | the name of this field | |
| dimname | the dimension name (or V3 object name) | |
| v3datatype | the V3 datatype code (see /DT_xxx/) | |
| keynum | the key number if field is a key | |
| owner | the structure id owning this field | |
| offset | the offset within the owner structure | |
| bytes | the number of bytes for this field | |
| decimals | the number of decimal places implied in this field | |
[0470] The point is stored as a small datastructure containing the fields above in a packed format.
[0471] Dictionary—A Dictionary Entry
[0472] Usage
[0473] A dictionary entry is a any keyword which is internally stored in a V4 dictionary and then treated as an integer number. This number is encoded with the area hierarchy and unique dictionary entry number so that dictionary entries can be correctly maintained in a multi-area V4 environment.
[0474] Dictionary entries usually take up less space than alpha keywords but take longer to format on input and output because of the additional lookup required. Dictionary entries are most often used when a alpha field requires binding potential. Use of the dictionary permits the designer to reference points as keywords yet let V4 treat the points as integers.
[0475] Storage Method
[0476] Dictionary entries are four-byte integers.
[0477] Foreign—Foreign Data accessed programmatically.
[0478] Integer—Integer Numbers
[0479] Usage
[0480] Integer numbers are input and used as in any other language.
[0481] Storage Method
[0482] Currently V4 supports four-byte integers.
[0483] Example
[0484] Dim MonthofYear Integer
[0485] Intersection—A V4 Intersection
[0486] Usage
[0487] An intersection is composed of
[0488] a left bracket which begins the intersection one or more points
[0489] an optional vertical line
[0490] optional points after the vertical line
[0491] a closing right bracket which ends the intersection
[0492] An intersection cannot contain more than one point in any given dimension!
[0493] Storage Method
[0494] Intersections are stored in the value portion of a point. Since there is a maximum size of a point (which is determined when the V4 program is built) there is a limit to the complexity of an intersection.
[0495] IntMod—V4 Internal Module
[0496] Usage
[0497] The IntMod dimension provides the designer with a variety of computational primitives directly within V4. An IntMod point is treated as a two valued intersection. The first value references the particular internal module. The second value is a list of points which are the arguments to the module. Since the second argument is a list there are no restrictions regarding duplication of dimension.
[0498] The syntax for a IntMod has been defined to keep it similar to that of a procedural language
[0499] modulename (arg1 arg2 . . . argn)
[0500] List—A list of points
[0501] Usage
[0502] A list is simply a list of points enclosed in parentheses. There are no restrictions on the points within a list and points may be intersections or other lists.
[0503] Logical—Logical True & False
[0504] Usage
[0505] This dimension type is used to store simple boolean True/False. Points may be specified by any of the following keyword
[0506] True
[0507] False
[0508] Yes
[0509] No
[0510] Storage Method
[0511] Point of this type are stored as integer zero or one.
[0512] MemPtr—Memory Pointer
[0513] Usage
[0514] Memory pointers are used to reference specific memory locations. These are primarily for special V3 or V4 modules (such as the V4 IntMod handling V4IS). Memory pointers cannot be defined on input. On output they are displayed as hexadecimal values.
[0515] Storage Method
[0516] Memory pointers are stored as 32-bit or 64-bit pointers depending on the host platform.
[0517] PIntMod—Partial Internal Module
[0518] Usage
[0519] The PIntMod dimension type is used
[0520] Example
[0521] Dim Real Int
[0522] Dim Service Dict
[0523] Bind [GasPrice] Real:105
[0524] Bind [GasPrice Type:Unleaded] [ ]Plus(Real:10)
[0525] Bind [GasPrice Service:Full] [ ]Plus(Real:7)
[0526] Bind [GasPrice Service:Full] [ ]Plus Real:7]
[0527] PointIndex—Index to Internal Point
[0528] Usage
[0529] Points of this type are created by special V3 and V4 modules where extensive and possibly mysterious allocations and workings are required. One example is in the generation of sequences from lists. A V4 sequence must be a single point representing several points some of which may change with time. The PointIndex point type permits V4 to assign a unique id to a point and be able to link that point to an internal V4 datastrucuture which may change size/position with time.
[0530] Storage Method
[0531] Points of this type are stored as integers. However each active point of this type links up to a memory chunk which may be of considerable size.
[0532] Pragma
[0533] Usage
[0534] This is an internal dimension type used for points needed by V4 to make certain things work. The normal user of V4 will not encounter this type of point.
[0535] Storage Method
[0536] There is no standard model for this point type.
[0537] Shell—A Dummy Dimension for Holding another Point
[0538] Usage
[0539] This dimension type is a “dummy” dimension whose points are simply points on other dimensions. It is used primarily to differentiate multiple points which may share common dimensions in an intersection (remember that an intersection cannot contain more than one point in any given dimension).
[0540] Storage Method
[0541] This type simply stores another point as its value.
[0542] Special—Special Points
[0543] Usage
[0544] All points with values of the “{xxx}” form are assigned the point type Special. V4 evaluates points of this type to actual V4 points at the appropriate time.
[0545] Storage Method
[0546] All special points are represented in the V4 point header area.
[0547] StructEl—Structure Elements
[0548] Usage
[0549] This point type is used to represent V3 data structures (as opposed to the fields within a structure). The components of this point type are as follows (fileref, structnum, element, bytes, occurs, countfield, offset)
| fileref | the file reference number | |
| structnum | a unique structure number | |
| element | a unique element number | |
| bytes | the total number of bytes in one occurrence of this | |
| structure | ||
| occurs | the total number of times this structure occurs in | |
| parent | ||
| countfield | a reference to a count field (if one exists) | |
| offset | the starting offset in the parent structure | |
[0550] This point type is represented as a special V4 packed data structure.
[0551] Time—Time/Transaction Ids
[0552] Usage
[0553] Points of this type represent time or transaction ids. Bindings containing these points are matched somewhat differently than other bindings. The difference is that if a dimension point is not explicitly in the context then it's “current” value is assumed and the point on that dimension which is closest to the “current” value, but not greater is matched. What this means is that if no specific context point is specified then the most recent point on that dimension is the favored point.
[0554] This is basically how we handle time—if no specific time is mentioned then the current time is assumed and the last “statement” given is the one we are referring to. If a particular time is given (be it past or future) then that becomes the temporary reference point.
[0555] Storage Method
[0556] Time points are stored as integer values. Time points in a binding cause the calculation of the binding weight to be altered so that the most recent is always checked first.
[0557] Example
[0558] Dim Time Time
[0559] Dim Tran Time Unique
[0560] Bind [TranIld Tran={New}] int=123
[0561] Bind [TranId Tran={New}] int=2345
[0562] Bind [TranId Tran={New}] alpha=“ho ho ho”
[0563] =[TranId]
[0564] Alpha:“ho ho ho”
[0565] Dim B Binding
[0566] =Remove_Point(B=(LastBind))
[0567] =[Tranld]
[0568] Int:2345
[0569] V3Mod—Evaluation through a V3 Module
[0570] Usage
[0571] This point type allows V4 bindings to access V3 modules for any type of computations. The arguments to the V3 module are the additional dimension points in the call. The exact format is
[0572] [v3mod:module Dim:result argpt argpt . . . ]
| v3mod | is a dimension of type V3Mod | |
| module | is the name of the V3 module to be called | |
| result | is the dimension of the returned value from V3. The V4 | |
| evaluator converts the V3 value into a format consistent | ||
| with this dimension | ||
| argpt | arguments to be passed to the V3 module. These are | |
| converted from V4 formats to V3 formats. | ||
[0573] Storage Method
[0574] These points are stored as character strings representing the V3 module.
[0575] Example
[0576] Bind [ItemPrice IMRef={ALL}]
[0577] [V3Mod=CalcPrice Dim=Int
[0578] [PriceType [PriceRule]] [Discount [PriceRule]] IMRef={BINDING}]
[0579] /* CalcPrice—Dummy Module to Calcuate Item Price based on “rules” */
[0580] {/CalcPrice(rule,discount,imref)
[0581] p
[0582] return(123456);
[0583] }
[0584] V3PicMod—Link to V3 Module Code within V4 Area
[0585] Usage
[0586] This point type is used to represent V3 module “code” stored in PicMod (position independent code) format within a V4 area.
[0587] Storage Method
[0588] These points are integers where the value is used to create a key into a V4 area to access the module definition.
[0589] V3ModRaw—Call to V3 Module
[0590] Usage
[0591] This point type is similar to the V3Mod point type in that it calls V3 modules. It differs in that no conversions are done between V3 and V4 datatypes. All arguments passed to V3 are as V4 points, and any result from V3 is expected to be a valid V4 point.
[0592] Storage Method
[0593] Points are stored as character strings corresponding to the V3 module name.
[0594] Internal Modules
[0595] Echo—Echoing Points to User's Console
[0596] Syntax
[0597] Echo (point point . . . )
[0598] pomt A point to be converted to text display format and output to the user's console.
[0599] Description
[0600] Evaluates all argument points and displays them on the user's console
[0601] Eval—Executes a Command String
[0602] Syntax
[0603] Eval (stringpt)
[0604] stringpt A character string point which is passed to the V4 command interpreter for evaluation.
[0605] Description
[0606] The stringpt is evaluated and the resulting string is passed to be V4 command evaluator.
[0607] Example
[0608] Eval(Alpha:“Include test”)
[0609] Next_TextFile—Obtaining the Next Line of a Text File
[0610] Syntax
[0611] alpha=Next_TextFile(filedesc)
[0612] alpha The alpha value of corresponding to the next line in the sequence described by filedesc
[0613] filedesc A descriptor describing the text file—previously generated by MakeSeq_TextFile
[0614] Description
[0615] This module returns as a point on the Alpha dimension, the next line in the text file described by filedesc. At end-of-file this module does not evaluate.
[0616] Example
[0617] Context Push MakeSeq_TextFile(“file.txt”)=Next_TextFile(seqpnt* )
[0618] MakeSeq_TextFile—Making a Sequence from a Text File
[0619] Syntax
[0620] seqpnt=MakeSeq_TextFile (filename)
[0621] seqpnt A sequence point returned corresponding to the file
[0622] filename A string referencing an existing text file.
[0623] Description
[0624] The filename point is evaluated and the resulting alpha string is treated as a file name. The file is opened by V4 and a sequence point is created from the open file.
[0625] ListPoint_GetEl—Obtaining a Specific Point in List
[0626] Syntax
[0627] point=ListPoint_GetEl (list index)
[0628] point The point corresponding to the indexthelement in list
[0629] list a list of points
[0630] index the element number in the list to return (1 is the first, 2 for the second, etc.)
[0631] Description
[0632] Returns the index point in list.
[0633] Example
[0634] =ListPoint GetEl(List:(‘now’ ‘is’ ‘the’) int:2) Alpha:‘is’
[0635] ListPointSize—Obtaining the Number of Points in a List
[0636] Syntax
[0637] size=ListPointSize (listpoint dimpoint)
[0638] point The point corresponding to the indexthelement in list
[0639] list a list of points
[0640] index the element number in the list to return (1 is the first, 2 for the second, etc.)
[0641] Description
[0642] Returns the size of the listpoint as a point on dimpoint.
[0643] Next_ListPoint—Getting the Next Point in a Sequence
[0644] Syntax
[0645] point=Next_ListPoint (seqlist index seqpnt)
[0646] point The point corresponding to the indexthelement in list
[0647] seqlist a sequence list
[0648] index the element number in the list to return (1 is the first, 2 for the second, etc.)
[0649] seqpnt the sequence point
[0650] Description
[0651] Returns the next point in the sequence.
[0652] FastNext_ListPoint—Getting the Next Point in a Sequence (Fast Version)
[0653] Syntax
[0654] point=FastNext_ListPoint seqpnt
[0655] point The point corresponding to the indexthelement in list
[0656] seqpnt a sequence point
[0657] Description
[0658] Returns the next point in the sequence without going through all of the nonsense of Next_ListPoint.
[0659] MakeSeq_ListPoint—Making a Sequence from a List
[0660] Syntax
[0661] seqpnt=MakeSeq_ListPoint (list)
[0662] point The point corresponding to the indexthelement in list
[0663] list a list of points to be converted to a sequence
[0664] Description
[0665] Creates a new sequence from list and returns a new sequence point which may be used to sequence through the list.
[0666] Skip_ListPoint—Skipping Points in a Sequence
[0667] Syntax
[0668] point=Skip_ListPoint (seqlist skipnum seqpnt)
[0669] point The point corresponding to the indexthelement in list
[0670] seqlist a sequence list
[0671] skipnum a positive or negative number of points to skip in the list
[0672] seqpnt the sequence point
[0673] Description
[0674] Skips points, forwards or backwards in the list.
[0675] Pos_ListPoint—Positions to a Specific Point in a Sequence
[0676] Syntax
[0677] point=Pos_ListPoint (seqlist posnum seqpnt)
[0678] point The point corresponding to the indexthelement in list
[0679] seqlist a list of points
[0680] posnum the position in the list
[0681] seqpnt the sequence point
[0682] Description
[0683] Positions to a specific point in a list/sequence. The first point is posnum=1.
[0684] Add_ListPoint—Adding Points to a Sequence
[0685] Syntax
[0686] point=Add_ListPoint (seqlist skipnum seqpnt addpoint)
[0687] point The point corresponding to the indexthelement in list
[0688] seqlist a list of points
[0689] skipnum the number of points to skip
[0690] seqpnt the sequence point
[0691] addpoint the point to be added
[0692] Description
[0693] Adds a point to a sequence.
[0694] Open_V4IS—Opening a V4IS Area
[0695] Syntax
[0696] dimptr=Open_V4IS (filename structses dim)
[0697] dimptr a point on the dim dimension corresponding to the pcb for the open file
[0698] filename an alpha file/area name to be opened
[0699] structses a structure element point describing the particular file in the area to be opened.
[0700] dim a dimension to be used for a return value
[0701] Description
[0702] Opens the V4IS area specified by filename, allocates an internal buffer as specified by structses and returns a pointer to the pcb associated with the open area as a point on dimension dim.
[0703] Get_V4IS—Getting a Record Buffer from a V4IS Area
[0704] Syntax
[0705] dimptr=Get_V4IS (pcbptr keyfielddes keyvalue dim)
[0706] dimptr a pointer to the record on point dim.
[0707] pcbptr a pointer to the pcb for the area
[0708] keyfiledes a data element descriptor corresponding to the key
[0709] keyvalue the key to be used
[0710] dim a dimension for the return result
[0711] Description
[0712] Gets the specified record in the area. If the record cannot be found then the module does not evaluate.
[0713] Field_V4IS—Pulling a Field Value from a Buffer
[0714] Syntax
[0715] valuept=Field_V4IS (recptr despt)
[0716] valuept a point corresponding to the value retrieved from the buffer. The dimension of the point is determined by the dimension embedded in the despt.
[0717] recptr a pointer to the record buffer
[0718] despt a data-element descriptor
[0719] Description
[0720] This module pulls a field from a record buffer and returns the result as a point on the dimension specified within the data element descriptor point.
[0721] S1bcField_V4IS—Pulling a Field Value from a Substructure (by Content)
[0722] Syntax
[0723] valuept=S1bcField_V4IS (recptr des searchdes searchval)
[0724] valuept the point extracted from the substructure
[0725] recptr a record pointer
[0726] des the data element descriptor for the point to be extracted
[0727] searchdes a dataelement descriptor for the field within the substructure to be searched
[0728] searchval the value to look for within the substructure
[0729] Description
[0730] This module is used to find a particular instance of a field in a repeating substructure based on the value of another field within the same substructure.
[0731] Example
[0732] Suppose an inventory record had a repeating substructure for historical information. One field in the substructure was the month, another was the ytd sales as of that month. The S1bcField_V4IS module can be used to get the ytd sales for a particular month without having to explicitly search the substructure.
[0733] S1bcField_V4IS([CurrentRec] [YTDSales Dim:IM] [MonthofSale Dim:IM] Month*)
[0734] Field_V4IS—Pulling a Field Value from a Substructure (by Index)
[0735] Syntax
[0736] valuept=S1bxFieldV4IS (recptr des index)
[0737] recptr the record pointer
[0738] des the data element to be extracted
[0739] index the element number in the substructure to return (1 is the first, 2 for the second, etc.)
[0740] Description
[0741] This module extracts the indexthoccurrence of the des from the record buffer.
[0742] Set_Context—Setting a Context Point
[0743] Syntax
[0744] Set_Context (point)
[0745] point Any V4 point
[0746] Description
[0747] Adds the point to the current context (current frame).
[0748] Load_V3PicMod—Loading a V3 Module from a V4 Area
[0749] Syntax
[0750] Load_V3PicMod (modulept)
[0751] module A point specifying the module name (text)
[0752] Description
[0753] Loads the specified module from a V4 area into the current V3 runtime environment.
[0754] Example
[0755] v3_set_parameter(/undefined_module/,
[0756] “Eval Load_V3PicMod([V3Mod=* Module])”);
[0757] UnLoad_V3PicMod—Unloading a V3 Module from the Runtime Environment
[0758] Syntax
[0759] UnLoad_V3PicMod (modulename)
[0760] modulename the alpha name of the module
[0761] Description
[0762] Unloads a module from the current running V3 environment.
[0763] MakeSeq_DimUnique—Making a Sequence of Points within a Dimension
[0764] Syntax
[0765] listseq=MakeSeq_DimUnique (dim listdim)
[0766] listseq a point representing the sequence
[0767] dim a dimension which has been declared with the Unique attribute and has had one or more points created with the dim:(new) construct.
[0768] listdim a dimension to be used for returning the value.
[0769] Description
[0770] Dimensions declared with the Unique attribute are tracked by the V4 handlers. Each time a new point is created, it is stored in an internal list. This module is used to create a sequence of all such points (for all areas currently loaded into the V4 context).
[0771] DimUnique—Making a List from a Dimension
[0772] Syntax
[0773] listpt=DimUnique (dim listdim)
[0774] listp A point representing a list of all of the points on the specified dimension
[0775] dim the dimension to use (specified as “Dim:xxx”)
[0776] listdim a dimension to use for the returned list (specified as “Dim:xxx”)
[0777] Description
[0778] This module makes a list of all the points on a particular dimension.
[0779] Plus—Adding/Concatenating Points
[0780] Syntax
[0781] result=Plus(arglist)
[0782] result the resulting point
[0783] arglist a list of points to be added together.
[0784] Description
[0785] The Plus module adds or concatenates all points in the arglist. If all points are numeric then the result is the sum of the points returned in the dimension of the first argument. If the points are not all numeric then the result is the concatenation of the string representation of the point.
[0786] Minus—Numeric Subtraction
[0787] Syntax
[0788] result=Minus (arg1 arg2)
[0789] result the result returned in the dimension of the first argument
[0790] arg1 the first number
[0791] arg2 the second number which is to be subtracted from the first
[0792] Description
[0793] The result point is the integer subtraction of arg2 from arg1.
[0794] Mult—Numeric Multiplication result=Mult (arg1 arg2)
[0795] result the resulting point in the dimension of the first argument
[0796] arg1 the first number
[0797] arg2 the second argument to be multiplied by the first.
[0798] Description
[0799] This module simply multiplies its two arguments.
[0800] Example
[0801] ! Simple Recursive Function
[0802] Bind [Factorial Int:{all}] Mult(Int:{Binding} [Factorial I Minus(Int:{Binding} Int:1)]
[0803] )
[0804] Bind [Factorial Int:1] Int:1
[0805] =[Factorial Int:5]
[0806] Next_IsctVal—Return the Next Evaluation of an Intersection Sequence.
[0807] Syntax
[0808] point=Next_IsctVal (seqpnt)
[0809] point the point corresponding to the next evaluation
[0810] seqpnt a sequence point
[0811] Description
[0812] This module is used to perform the next evaluation on the sequence and return the result.
[0813] MakeSeq_IsctVal—Make a Sequence from an Intersection
[0814] Syntax
[0815] seqpnt=MakeSeq_IsctVal (isct seqpntdim optionalstart optionalend)
[0816] seqpnt the resulting sequence point
[0817] isct an intersection to be used as the basis of the sequence
[0818] seqpntdim a dimension for the returned result
[0819] optionalstart an optional starting index
[0820] optionalend an optional ending index number
[0821] Description
[0822] This module is used to make a sequence of all possible evaluations of an intersection. The first point would be the normal evaluation of the intersection in the current context. The next point would be whatever would have been the result if the first result was not evaluated.
[0823] The optionalstart and optionalend points may be given to control where the sequence starts and stops.
[0824] Example
[0825] This module may be used to sequence through a set/list of values bound with a time dimension point. The net effect would be that each next point would be the next prior point in time.
[0826] Remove_Point—Remove a Point from a V4 Area
[0827] Syntax
[0828] Remove_Point (point)
[0829] point the point to be removed
[0830] Description
[0831] Removes the specified point from a V4 area. Currently, the only points which can be removed as binding points . . .
[0832] Logical_And—Perform Logical And'ing
[0833] Syntax
[0834] point=LogicalAnd (arg1 arg2 [resultdim])
[0835] point the result of logically anding arg1 and arg2. If a resultdim point is given then . . .
[0836] arg1 the first argument of the and
[0837] arg2 the second argument of the and
[0838] resultdim the dimension for the resulting point
[0839] Description
[0840] Performs a logical and'ing of its two arguments.
[0841] Logical_Or—Logical Or Two Points
[0842] Syntax
[0843] point=LogicalOr (arg1 arg2 [resultpoint])
[0844] point the result of the logical or
[0845] arg1 the first argument of the or
[0846] arg2 the second argument of the or
[0847] resultpoint a dimension for the resulting point
[0848] Description
[0849] Logically or's the two argument points.
[0850] Logical_Not—Evaluate logical not of argument
[0851] Syntax
[0852] point=LogicalNot (arg1 [resultpoint])
[0853] point the result of complementing the first argument
[0854] arg1 the point to be complemented
[0855] resultpoint a dimension for the result
[0856] Description
[0857] Logically compliments its argument.
[0858] IfTrue—Conditional Evaluation
[0859] Syntax
[0860] point=IfTrue (logical truepoint falsepoint)
[0861] point The point resulting in the evaluation of either the truepoint or the falsepoint
[0862] logical a point evaluating to logical true or logical false, or a number greater than 0
[0863] truepoint a point to be evaluated if logical is true.
[0864] falsepoint a point to be evaluated if logical is false.
[0865] Description
[0866] This module evaluates its first argument, logical. If the result is true then truepoint is evaluated. If the result is false then falsepoint is evaluated.
[0867] Note
[0868] If either truepoint or falsepoint are intersections, they should be quoted.
[0869] IfDefined—Conditional Evaluation
[0870] Syntax
[0871] point=IfDefined (isctpoint definedpoint undefpoint)
[0872] point=IfDefined (isctpoint undefpoint)
[0873] point the resulting point
[0874] isctpoint a quoted intersection to be “tested”
[0875] definedpoint the point to be evaluated and returned if isctpoin is defined
[0876] undefpoint the point to be evaluated and returned if isctpoint is not defined.
[0877] Description
[0878] This module first determines if the quoted isctpoint is defined (can be evaluated). If yes then the definedpoint is evaluated and returned. In the case where definepoint is not given then the evaluation of isctpoint is return. In either case, if the intersection cannot be evaluated then the result is the evaluation of undefpoint.
[0879] Error—Generate and Display an Error
[0880] Syntax
[0881] Error (arglist)
[0882] arglist a list of arguments to be concatenated and output.
[0883] Description
[0884] Concatenates and outputs the points in arglist and then generates a V4 error.
[0885] Echo—Concatenate and display arguments on User's Console
[0886] Syntax
[0887] Echo(arglist)
[0888] arglist a list of points
[0889] Description
[0890] Concatenates and displays the points in arglist on the user's console.
[0891] EvalList—Evaluate all Points in a List
[0892] Syntax
[0893] EvalList (list)
[0894] list a list of points to be evaluated
[0895] Description
[0896] This module simply steps through all points in list and evaluates each one.
[0897] ForEachPushAndEval—Iterate Points in List & Evaluate
[0898] Syntax
[0899] ForEachPushAndEval (list evallist)
[0900] list a list of points
[0901] evallist a list of points to be evaluated
[0902] Description
[0903] This module steps through each point in list, pushes it onto the context and then evaluates each point in evallist. It operates similarly to a loop construct in procedural languages.
[0904] ForEachApply—Sequence Through List and Apply Points to Intersection
[0905] Syntax
[0906] reslist=ForEachApply (list isct [context])
[0907] reslist a list of points resulting from repetitive evaluations of isct with the additional point
[0908] list The point corresponding to the indexthelement in list
[0909] isct an intersection to be evaluated (with the addition of the points from list)
[0910] context an optional context point or list of points.
[0911] Description
[0912] This module steps through each point in list, adds the point to isct, and then evaluates the temporary intersection. The last argument, context, may be given to specify context points for the duration of this module.
[0913] ForEachPushAndApply—Iterate Sequence/List and Evaluate Intersection
[0914] Syntax
[0915] reslist=ForEachPushAndApply (list eval optcontext)
[0916] reslist a list of points resulting from the repeated evaluations of eval.
[0917] list a list of points
[0918] eval an intersection to be evaluated for each point
[0919] optcontext an optional context point or list
[0920] Description
[0921] This module steps through each point in list, pushes the point onto the current context, and then evaluates eval. The resulting reslist is a list of points resulting from the evaluations.
[0922] Sum—Sum all Points in a List
[0923] Syntax
[0924] result=Sum(list initpoint)
[0925] result the sum of all the points in the list
[0926] list a list of points to be summed
[0927] initpoint a point specifying the initial point of the sum, usually of the form “dimension:0”
[0928] Description
[0929] The “Sum” module sets the result to the initial point, initpoint, and then adds each numeric point in the list into the result.
[0930] Min—Find Smallest Point in a List
[0931] Syntax
[0932] result=Min (list)
[0933] result the smallest point in the list
[0934] list a list of numeric points
[0935] Description
[0936] This module returns the smallest numeric point in the list.
[0937] Max—Find Largest Point in a List
[0938] Syntax
[0939] result=Max (list)
[0940] result the largest point in the list
[0941] list any list of numeric points
[0942] Description
[0943] This module returns the largest numeric point in the argument list.
[0944] ListFromRange—Create List from Range of Values
[0945] Syntax
[0946] list=ListFromRange (low high resultdim)
[0947] list the resulting list point
[0948] low the first or low point in the list
[0949] high the last or high point in the list
[0950] resultdim the dimension of the result
[0951] Description
[0952] This module creates a list from the specified begin and end points of a range.
[0953] ListFromStartNumber—Create List from Starting Point and Number
[0954] Syntax
[0955] list=ListFromStartNumber(start number resultdim)
[0956] list the resulting list point
[0957] start the starting point of the list
[0958] number the number of points in the list
[0959] resultdim the dimension for the result
[0960] Description
[0961] This module creates a list from a starting point and number of points.
REFERENCE
Introduction
[0962] Structure Definitions—Token Generator
| dcl struct V4LEX_TknCtrlBlk { | |
| int tcb_lines; | /* Total lines processed thru TCB */ |
| int tcb_tokens; | /* Total tokens */ |
| short opcode; | /* Opcode-V_Oper_xxx is type is punctuation */ |
[0963] A Computer Program Listing Appendix on a CD Rom has been filed with the U.S. Patent and Trademark Office in duplicate and the Information contained therein is incorporated herein by reference. The files, their date of creation and their sizes bytes are as follows:
[Inline image omitted. See PDF.]
[Inline image omitted. See PDF.]
STATEMENT OF INDUSTRIAL UTILITY
[0964] The present invention may be useful in data manipulation and representation on a general-purpose digital computer.
[0965] It will be appreciated by those skilled in the art that the present invention has been described with reference to specific examples which are not intended as limitations, and which are but a few of the variations which are possible without departing from the spirit of the invention. Accordingly, the scope of the invention should be determined only with reference to the appended claims.
Claims
I claim as my invention:
1. A method for representing an information item within the memory of a digital computer comprising the steps of:
(a) creating one or more DIMENSION data structures comprising at least a dimension name, and point type, and zero or more points;
(b) creating one or more POINT data structures comprising at least a dimension name, and a value;
(c) creating one or more BINDING data structures comprising at least a value point, and one or more points wherein all such points have different dimension names from one another, and wherein all such points are collectively labelled an INTERSECTION;
(d) selecting a group of DIMENSIONS useful for representing said information item, and creating POINTS representative of said information item within each of said selected DIMENSIONS;
(e) storing within said memory a BINDING representative of said information item, comprising a value POINT representative of said information item, and an INTERSECTION comprising all of said POINTS from said selected DIMENSIONS.
2. The method of claim 1 wherein one or more information items are stored within the memory of a digital computer, comprising the additional steps of:
(a) creating one or more AREA data structures comprising at least one or more BINDINGS; and
(b) storing within said AREAs, said BINDINGS representative of said information items.
3. The method of claim 1 wherein said BINDING data structures further contain a binding weight for designating the relative strength of said binding to the strength of other BINDING data structures.
4. The method of claim 3 wherein said BINDINGS are stored within said AREAS in rank order according to their associated binding weights.
5. The method of claim 1 further comprising creating one or more POINT data structures having one or more types selected from the group of “ALPHA”, “COMPOUND”, “DATAEL”, “DICTIONARY”, “BLOb”, “INTEGER”, “INTERSECTION”, “INTMOD”, “POINTINDEX”, “SHELL”, “SPECIAL”, “STRUCTEL”, “CODEMODULE”, “UNFORMATTEDCODEMODULE”, “CONTEXT”, “LIST”, “PRAGMA”, “MEMPTR”, “POSITION INDEP CODE MODULE”, “BIGTEXT”, “PINTMOD”, “TIME”, “BINDING”, and “LOGICAL”.
6. The method of claim 1 further comprising a method for evaluating an INTERSECTION comprising searching said memory for a BINDING containing only each and every POINT within said INTERSECTION, and if such a BINDING is present within said memory, returning the value POINT stored in said BINDING.
7. The method of claim 1 further comprising the steps of:
(a) creating a CONTEXT data structure comprising a dynamic list of POINTS, no two of which are in the same DIMENSION; and
(b) storing said CONTEXT data structure separately from and independently of said information item.
8. The method of claim 7 wherein said CONTEXT references one or more AREAs for consideration during evaluation.
9. The method of claim 7 further comprising a method for evaluating a first INTERSECTION and a CONTEXT, comprising searching said memory for a BINDING containing each and every POINT within said first INTERSECTION and one or more POINTS selected from within said context, and if such a BINDING is present within said memory, returning the value POINT stored in said BINDING.
10. The method of claim 9 wherein the fewest number of said POINTS within said CONTEXT are selected.
11. The method of claim 10 wherein the POINTS within said context are stored in a predetermined order, and are selected in said order.
12. The method of claim 10 wherein all values stored in all BINDINGS containing each and every POINT within said first INTERSECTION and one or more POINTS selected from within said CONTEXT are returned, together with a list of the selected CONTEXT POINTS for each value.
13. The method of claim 12 wherein said returned list is evaluated according to a predefined ranking schema to determine the single best returned value.
14. The method of claim 13 wherein said returned list is ordered in decreasing order of binding weight.
15. The method of claim 1 wherein at least one DIMENSION data structure contains at least one entry point to a set of executable computer instructions.
16. The method of claim 1 wherein at least one DIMENSION data structure contains at least one entry point to a data retrieval system containing a computer database.
17. The method of claim 16 wherein said DIMENSION data structure contains a call to an SQL database server.
18. The method of claim 16 wherein said DIMENSION data structure contains access methods for retrieval from an object database.
19. The method of claim 3 wherein said binding weight is equal to a predetermined scalar value associated with said information item.
20. The method of claim 19 wherein evaluation of an INTERSECTION relies on partial inequality of binding weight.
21. The method of claim 19 wherein said scalar value is representative of time.
22. The method of claim 19 wherein said scalar value is representative of a transaction count.
23. The method of information representation of claim 1 further comprising a method for undoing information storage in the memory of a digital computer wherein one or more POINTs is removed from the BINDING DIMENSION, thereby deleting the BINDINGs represented by said removed POINTs from memory.
24. The method of claim 1 further including a security operation wherein each desired operation of a computer system is preceded by evaluation of an INTERSECTION of the form Logical:Yes/No, wherein the CONTEXT contains information such as user, terminal, privileges, objects, operations, and executable code necessary to proper evaluation of said INTERSECTION.
25. The method of claim 1 wherein a SEQUENCE is defined as a POINT used to iterate through a list of POINTS, and SEQUENCE operators comprise Next, Prior, Count, and Position.
26. The method of claim 25 wherein the current CONTEXT is capable of modifying the SEQUENCE operators to change the order in which said list of POINTS is accessed.
27. The method of claim 7 wherein said CONTEXT is determined by implication from an INTERSECTION by iteratively evaluating undefined POINTS in said INTERSECTION through substitution of the value of the autocontext POINT in the DIMENSION of each such undefined POINT until no POINTS in said INTERSECTION remain undefined or the evaluation of an autocontext point fails or the evaluation of the said INTERSECTION fails.
Patent Citations (7)
| Patent | Date | Inventor | Cited By |
|---|---|---|---|
| US4817036(A) | 1989-03-01 | Millett et al. | Examiner |
| US5187747(A) | 1993-02-01 | Capello et al. | Examiner |
| US5197005(A) | 1993-03-01 | Shwartz et al. | Examiner |
| US5251268(A) | 1993-10-01 | Colley et al. | Examiner |
| US5455958(A) | 1995-10-01 | Flurry et al. | Examiner |
| US5481704(A) | 1996-01-01 | Pellicano | Examiner |
| US5555403(A) | 1996-09-01 | Cambot et al. | Examiner |