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

⟦b1a61aa6e⟧ Ada Source

    Length: 6144 (0x1800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Primary_Predicate, seg_03bb5e, seg_03c0c6, seg_03c531, seg_03c6d8, separate Generic_Fact_Base.Predicate

Derivation

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

E3 Source Code



separate (Generic_Fact_Base.Predicate)
package body Primary_Predicate is
    function Make_Alias_Definition (The_Alias : Alias.Name) return Object is
    begin
        return Object'(Kind => Alias_Definition, The_Alias => The_Alias);
    end Make_Alias_Definition;


    function Make_Conjunction (Left, Right : Predicate.Object) return Object is
    begin
        return Object'(Kind                => Predicate_Conjunction,
                       The_Left_Predicate  => Left,
                       The_Right_Predicate => Right);
    end Make_Conjunction;


    function Make_Collection (Of_Objects : Predicate.Objects) return Object is
    begin
        return Object'(Kind           => Predicate_Collection,
                       The_Collection => new Predicate.Objects'(Of_Objects));
    end Make_Collection;



    procedure Put (The_Object : Object; Where : Output_Stream.Object) is
        use Output_Stream;
    begin
        case The_Object.Kind is
            when Alias_Definition =>
                Put ("Define_As(", Where);
                Alias.Put (The_Object.The_Alias, Where);
                Put (")", Where);
            when Predicate_Conjunction =>
                Put (The_Object.The_Left_Predicate, Where);
                Put (" and ", Where);
                Put (The_Object.The_Right_Predicate, Where);
            when Predicate_Collection =>
                Put ("Collection of predicates", Where);
        end case;
    end Put;


    function Match (Value : Slot.Object; Against : Object) return Boolean is
    begin  
        case Against.Kind is
            when Alias_Definition =>
                Alias.Set (Against.The_Alias, To => Value);
                return True;
            when Predicate_Conjunction =>
                return Match (Value, Against.The_Left_Predicate) and then
                          Match (Value, Against.The_Right_Predicate);
            when Predicate_Collection =>
                declare
                    The_User_Object : Class.User_Object       :=
                       Class.As_User_Object (Value);
                    The_Class       : Class.Object            :=
                       Class.Class_Of (The_User_Object);
                    The_Patterns    : constant Query.Patterns :=
                       Against.The_Collection.all;
                begin
                    return Class.Match (The_Instance     =>
                                           Class.Instance_Of (The_User_Object),
                                        Against_Patterns => The_Patterns,
                                        Using_Class      => The_Class);
                end;
        end case;
    end Match;
end Primary_Predicate;


E3 Meta Data

    nblk1=5
    nid=2
    hdr6=6
        [0x00] rec0=1d rec1=00 rec2=01 rec3=03e
        [0x01] rec0=18 rec1=00 rec2=04 rec3=04c
        [0x02] rec0=12 rec1=00 rec2=03 rec3=000
        [0x03] rec0=08 rec1=00 rec2=02 rec3=000
        [0x04] rec0=05 rec1=00 rec2=02 rec3=000
    tail 0x217398aba85407ef8914b 0x42a00088462063c03
Free Block Chain:
  0x2: 0000  00 05 01 04 80 10 68 65 5f 55 73 65 72 5f 4f 62  ┆      he_User_Ob┆
  0x5: 0000  00 00 00 04 80 01 6e 01 88 26 55 94 05 40 80 00  ┆      n  &U  @  ┆