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

⟦843fe505c⟧ Ada Source

    Length: 2048 (0x800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, seg_02a977, 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⟧ 

E3 Source Code



with Text_Io;
separate (Many_Objects_Rules)
package body Create_Object_Rule is
    function Premiss return Queries is
    begin
        return (States.Exist ((Value => Is_Equal (0))),
                Numbers.Exist ((Value => Is_Less (Max_Objects))));
    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=16 rec1=00 rec2=01 rec3=000
    tail 0x21522b61483e36b9e7364 0x42a00088462063c03