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

⟦fd31a8f0f⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, seg_03b984, seg_03c095, seg_03c4b8, seg_03c65f, seg_03c994, seg_04a96b, seg_04b3d9, separate Many_Objects_Rules

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 (Many_Objects_Rules)
package body Create_Object_Rule is
    function Premiss return Fact_Queries is
        The_Limit : Alias.Name := Alias.L;
    begin
        return (States.Exist ((Value          => Is_Equal (0),
                               Max_Objects    => Define_As (The_Limit),
                               Max_Iterations => Is_Any)),
                Numbers.Exist ((Value => Is_Less (The_Limit))));
    end Premiss;


    procedure Action (The_Facts : Fact_Collection) is
        The_Number : Fact_Name renames The_Facts (2);
        The_Value  : Integer := Numbers.Get (The_Number, The_Slot => Value);
    begin
        The_Value := The_Value + 1;
        Many_Objects_Frames.Objects.Add
           (The_Fact => (X => Slot.Value (The_Value),  
                         Y => Slot.Value (The_Value * 2)));

        -- Text_Io.Put_Line ("creating object X =>" & Integer'Image (The_Value));

        Numbers.Change (The_Number, Value, The_Value);
    end Action;
end Create_Object_Rule;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=19 rec1=00 rec2=01 rec3=06c
        [0x01] rec0=03 rec1=00 rec2=02 rec3=001
    tail 0x21738fd5a8532782ce5c8 0x42a00088462063c03