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

⟦d73428355⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Fruit_Rule_Bundle_1, package body Mark_Block_For_New_Tower_Rule, package body Mark_Top_Block_Of_Marked_Block_Rule, package body Put_Block_On_New_Tower_Rule, package body Put_New_Tower_On_Table_Rule, seg_04cb6c

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



with Slot;
with Alias;
with Output_Stream;
with Fruit_Frames_1;


package body Fruit_Rule_Bundle_1 is

    use Kbs;
    use Kbs.Fact_Base.Predicate;
    use Kbs.Fact_Base.Predicate.System_Defined_Predicate;


    type Rule_Names is (Mark_Block_For_New_Tower,
                        Mark_Top_Block_Of_Marked_Block, Put_New_Tower_On_Table,
                        Put_Block_On_New_Tower, No_More);

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

    package Mark_Block_For_New_Tower_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Mark_Block_For_New_Tower_Rule;

    package body Mark_Block_For_New_Tower_Rule is separate;

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

    package Mark_Top_Block_Of_Marked_Block_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Mark_Top_Block_Of_Marked_Block_Rule;

    package body Mark_Top_Block_Of_Marked_Block_Rule is separate;

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

    package Put_New_Tower_On_Table_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Put_New_Tower_On_Table_Rule;

    package body Put_New_Tower_On_Table_Rule is separate;

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

    package Put_Block_On_New_Tower_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (Objects : Fact_Collection);
    end Put_Block_On_New_Tower_Rule;

    package body Put_Block_On_New_Tower_Rule is separate;

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


    package Rule_Bundle is
       new Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Fruit_Kbs_1.Fruit_Rule_Bundle,
               Rule_Names => Rule_Names,
               Nothing    => Rule_Names'Last,

               Rule_1     => Mark_Block_For_New_Tower,
               Premiss_1  => Mark_Block_For_New_Tower_Rule.Premiss,
               Action_1   => Mark_Block_For_New_Tower_Rule.Action,

               Rule_2     => Mark_Top_Block_Of_Marked_Block,
               Premiss_2  => Mark_Top_Block_Of_Marked_Block_Rule.Premiss,
               Action_2   => Mark_Top_Block_Of_Marked_Block_Rule.Action,

               Rule_3     => Put_New_Tower_On_Table,
               Premiss_3  => Put_New_Tower_On_Table_Rule.Premiss,
               Action_3   => Put_New_Tower_On_Table_Rule.Action,

               Rule_4     => Put_Block_On_New_Tower,
               Premiss_4  => Put_Block_On_New_Tower_Rule.Premiss,
               Action_4   => Put_Block_On_New_Tower_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 Fruit_Rule_Bundle_1;

E3 Meta Data

    nblk1=6
    nid=4
    hdr6=8
        [0x00] rec0=20 rec1=00 rec2=01 rec3=06a
        [0x01] rec0=1d rec1=00 rec2=06 rec3=006
        [0x02] rec0=17 rec1=00 rec2=02 rec3=036
        [0x03] rec0=05 rec1=00 rec2=03 rec3=000
        [0x04] rec0=17 rec1=00 rec2=03 rec3=040
        [0x05] rec0=05 rec1=00 rec2=02 rec3=000
    tail 0x21753d66a871c3619e3a3 0x42a00088462063c03
Free Block Chain:
  0x4: 0000  00 05 00 08 80 05 20 20 20 20 20 05 20 4d 61 72  ┆             Mar┆
  0x5: 0000  00 00 00 05 80 02 20 20 02 03 00 00 24 00 01 de  ┆            $   ┆