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

⟦7ac844a25⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, package body Iterate_Rule, package body Many_Objects_Rules, package body Search_Object_Rule, seg_02a0c6

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 Condition;
with Fact;
with Many_Objects;
with Many_Objects_Frames;

use Condition;
use Fact;
use Many_Objects_Frames;

package body Many_Objects_Rules is

    Max_Objects   : constant := 30;
    Max_Iteration : constant := 100;

    type Rule_Names is (Create_Object, Search_Object, Iterate, No_More);

    -------------------------------------------------------------------------------
    package Create_Object_Rule is
        function  Premiss return Join_Descriptor;
        procedure Action (The_Facts : Fact.Collection);
    end Create_Object_Rule;

    package body Create_Object_Rule is separate;

    -------------------------------------------------------------------------------

    package Search_Object_Rule is
        function  Premiss return Join_Descriptor;
        procedure Action (The_Facts : Fact.Collection);
    end Search_Object_Rule;

    package body Search_Object_Rule is separate;

    -------------------------------------------------------------------------------
    package Iterate_Rule is
        function  Premiss return Join_Descriptor;
        procedure Action (The_Facts : Fact.Collection);
    end Iterate_Rule;

    package body Iterate_Rule is separate;

    -------------------------------------------------------------------------------

    package Rule_Bundle is  
       new Many_Objects.Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Many_Objects.Many_Objects_Rules,
               Rule_Names => Rule_Names,
               Nothing    => Rule_Names'(No_More),

               Rule_1     => Create_Object,
               Premiss_1  => Create_Object_Rule.Premiss,
               Action_1   => Create_Object_Rule.Action,

               Rule_2     => Search_Object,
               Premiss_2  => Search_Object_Rule.Premiss,
               Action_2   => Search_Object_Rule.Action,

               Rule_3     => Iterate,
               Premiss_3  => Iterate_Rule.Premiss,
               Action_3   => Iterate_Rule.Action);

    procedure Do_Action (For_Rule : Rule_Id; On_Facts : Fact.Collection) is

    begin
        Rule_Bundle.Do_Action (For_Rule, On_Facts);
    end Do_Action;

end Many_Objects_Rules;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=23 rec1=00 rec2=01 rec3=042
        [0x01] rec0=02 rec1=00 rec2=02 rec3=01a
        [0x02] rec0=1a rec1=00 rec2=04 rec3=032
        [0x03] rec0=07 rec1=00 rec2=03 rec3=000
    tail 0x215223e7483e14860bf2e 0x42a00088462063c03