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

⟦d3b96cc4c⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, package body End_Of_Creation_Rule, package body Iterate_Rule, package body Many_Objects_Rules, package body Search_Object_Rule, seg_02a462

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_Rules;
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 := 30;


    type Rule_Names is (Create_Object, End_Of_Creation,
                        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 End_Of_Creation_Rule is
        function  Premiss return Join_Descriptor;
        procedure Action (The_Facts : Fact.Collection);
    end End_Of_Creation_Rule;

    package body End_Of_Creation_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.Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Many_Objects_Rule_Base.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     => End_Of_Creation,
               Premiss_2  => End_Of_Creation_Rule.Premiss,
               Action_2   => End_Of_Creation_Rule.Action,

               Rule_3     => Search_Object,
               Premiss_3  => Search_Object_Rule.Premiss,
               Action_3   => Search_Object_Rule.Action,

               Rule_4     => Iterate,
               Premiss_4  => Iterate_Rule.Premiss,
               Action_4   => 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=6
    nid=4
    hdr6=6
        [0x00] rec0=23 rec1=00 rec2=01 rec3=040
        [0x01] rec0=1b rec1=00 rec2=06 rec3=016
        [0x02] rec0=17 rec1=00 rec2=02 rec3=000
        [0x03] rec0=17 rec1=00 rec2=02 rec3=000
        [0x04] rec0=06 rec1=00 rec2=04 rec3=000
        [0x05] rec0=03 rec1=00 rec2=03 rec3=000
    tail 0x2152261a683e256f81e11 0x42a00088462063c03
Free Block Chain:
  0x4: 0000  00 05 00 04 80 01 6e 01 02 74 69 6f 6e 5f 43 6f  ┆      n  tion_Co┆
  0x5: 0000  00 03 00 07 80 04 74 69 6f 6e 04 2d 2d 2d 2d 2d  ┆      tion -----┆
  0x3: 0000  00 00 01 54 80 1c 6f 6e 5f 43 6f 75 6e 74 20 3a  ┆   T  on_Count :┆