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

⟦8658b2152⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, seg_02ceea, separate Many_Objects_Rules

Derivation

└─⟦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 := Name'(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, Slot => Value);
    begin
        The_Value := The_Value + 1;  
        Objects.Add (The_Fact => (X => The_Value, Y => 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=1
    nid=0
    hdr6=2
        [0x00] rec0=18 rec1=00 rec2=01 rec3=000
    tail 0x21525b25684124be12501 0x42a00088462063c03