DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦83d3b7a8e⟧ Ada Source

    Length: 12288 (0x3000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Generic_Kbs, seg_02cf92, seg_02d0fa

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Generic_Expression;
with Generic_Fact_Base;
with Generic_Rule_Base;
with Generic_Predicate;  
with Slot;
generic

    Max_Slots                      : Positive := 20;
    Max_Condition_Elements_By_Rule : Positive := 10;  
    Max_Condition_Elements         : Positive := 200;
    Max_Rules                      : Positive := 50;

    type Class_Names is (<>);
    Null_Class_Name : Class_Names := Class_Names'Last;

    type User_Defined_Expression_Operators is (<>);

    with function User_Defined_Unary_Evaluate
                     (Using_Operator : User_Defined_Expression_Operators;
                      Right          : Slot.Object) return Slot.Object is <>;

    with function User_Defined_Binary_Evaluate
                     (Using_Operator : User_Defined_Expression_Operators;
                      Left, Right    : Slot.Object) return Slot.Object is <>;

    with function User_Defined_Image
                     (Op : User_Defined_Expression_Operators) return String is
       User_Defined_Expression_Operators'Image;

    type User_Defined_Predicate_Operators is (<>);

    with function User_Defined_Unary_Match
                     (Using_Operator : User_Defined_Predicate_Operators;
                      Value          : Slot.Object) return Boolean is <>;

    with function User_Defined_Binary_Match
                     (Using_Operator : User_Defined_Predicate_Operators;
                      Value          : Slot.Object;
                      Against        : Slot.Object) return Boolean is <>;

    with function User_Defined_Image
                     (Op : User_Defined_Predicate_Operators) return String is
       User_Defined_Predicate_Operators'Image;

    type Rule_Bundles is (<>);

package Generic_Kbs is

    package Expression is  
       new Generic_Expression
              (User_Defined_Operators => User_Defined_Expression_Operators,
               User_Defined_Unary_Evaluate => User_Defined_Unary_Evaluate,
               User_Defined_Binary_Evaluate => User_Defined_Binary_Evaluate,
               User_Defined_Image => User_Defined_Image);

    package Predicate is new Generic_Predicate
                                (User_Defined_Operators =>
                                    User_Defined_Predicate_Operators,
                                 User_Defined_Unary_Match  
                                     => User_Defined_Unary_Match,
                                 User_Defined_Binary_Match  
                                     => User_Defined_Binary_Match,
                                 User_Defined_Image     => User_Defined_Image,
                                 Expression_Object      => Expression.Object,
                                 Slot_Object_Expression => Expression.Value,
                                 Alias_Expression       => Expression.Value,
                                 Evaluate               => Expression.Evaluate,
                                 Put                    => Expression.Put);

    package Fact_Base is  
       new Generic_Fact_Base (Class_Names      => Class_Names,
                              Null_Class_Name  => Class_Names'Last,
                              Max_Slots        => Max_Slots,
                              Predicate_Object => Predicate.Object,
                              Null_Predicate   => Predicate.Null_Predicate,
                              Predicate_Match  => Predicate.Match,
                              Predicate_Put    => Predicate.Put);

    package Rule_Base is
       new  
           Generic_Rule_Base
              (Max_Rules => Max_Rules,
               Max_Condition_Elements_By_Rule =>  
                  Max_Condition_Elements_By_Rule,
               Max_Condition_Elements => Max_Condition_Elements,
               Rule_Bundles => Rule_Bundles,
               Fact_Name => Fact_Base.Class.User_Object,
               Fact_Collection => Fact_Base.Class.User_Objects,
               Empty_Fact_Collection => Fact_Base.Class.No_User_Objects,
               Fact_Put => Fact_Base.Class.Default_Put,
               Fact_Query => Fact_Base.Query.Object,
               Null_Fact_Query => Fact_Base.Query.Null_Query,
               Fact_Queries => Fact_Base.Query.Objects,
               Null_Premiss => Fact_Base.Query.Null_Queries,
               Retrieve => Fact_Base.Working_Memory.Retrieve,
               Queries_Put => Fact_Base.Query.Put);

    subtype Fact_Query      is Fact_Base.Query.Object;
    subtype Fact_Queries    is Fact_Base.Query.Objects;
    subtype Fact_Name       is Fact_Base.Class.User_Object;
    subtype Fact_Collection is Fact_Base.Class.User_Objects;
    subtype Rule_Id         is Rule_Base.Rule_Id;

    Empty_Fact_Collection : constant Fact_Collection :=
       Fact_Base.Class.No_User_Objects;
    No_Rule               : Rule_Id renames Rule_Base.No_Rule;

end Generic_Kbs;

E3 Meta Data

    nblk1=b
    nid=9
    hdr6=e
        [0x00] rec0=1c rec1=00 rec2=01 rec3=068
        [0x01] rec0=01 rec1=00 rec2=04 rec3=02a
        [0x02] rec0=19 rec1=00 rec2=03 rec3=030
        [0x03] rec0=0f rec1=00 rec2=07 rec3=06c
        [0x04] rec0=10 rec1=00 rec2=0a rec3=00c
        [0x05] rec0=11 rec1=00 rec2=05 rec3=078
        [0x06] rec0=08 rec1=00 rec2=0b rec3=000
        [0x07] rec0=01 rec1=00 rec2=02 rec3=046
        [0x08] rec0=17 rec1=00 rec2=09 rec3=000
        [0x09] rec0=06 rec1=00 rec2=07 rec3=000
        [0x0a] rec0=87 rec1=5d rec2=d0 rec3=000
    tail 0x21525d5a68413642f695b 0x42a00088462063c03
Free Block Chain:
  0x9: 0000  00 02 03 fc 80 2d 3a 20 45 78 70 72 65 73 73 69  ┆     -: Expressi┆
  0x2: 0000  00 06 00 2d 80 04 65 63 74 3b 04 00 23 20 20 20  ┆   -  ect;  #   ┆
  0x6: 0000  00 08 03 fc 80 0e 44 69 66 66 65 72 65 6e 74 5f  ┆      Different_┆
  0x8: 0000  00 00 00 1a 80 17 20 20 6e 65 77 20 47 65 6e 65  ┆        new Gene┆