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

⟦b3f887ba2⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Br_Rule_Bundle, package body Hold_Biggest_Brick_Rule, package body Put_Into_Box_Rule, package body Remove_Robot_Rule, package body Take_Biggest_Brick_From_Heap_Rule, seg_04a3ed

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 Br_Frames;
with Slot;
with Alias;
with Br_Kbs;
with Output_Stream;

package body Br_Rule_Bundle is


    type Rule_Names is (Take_Biggest_Brick_From_Heap, Hold_Biggest_Brick,
                        Put_Into_Box, Remove_Robot, No_More);


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

    package Take_Biggest_Brick_From_Heap_Rule is
        function  Premiss return Br_Kbs.Kbs.Fact_Queries;
        procedure Action (Objects : Br_Kbs.Kbs.Fact_Collection);
    end Take_Biggest_Brick_From_Heap_Rule;
    package body Take_Biggest_Brick_From_Heap_Rule is separate;

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

    package Hold_Biggest_Brick_Rule is
        function  Premiss return Br_Kbs.Kbs.Fact_Queries;
        procedure Action (Objects : Br_Kbs.Kbs.Fact_Collection);
    end Hold_Biggest_Brick_Rule;
    package body Hold_Biggest_Brick_Rule is separate;

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

    package Put_Into_Box_Rule is
        function  Premiss return Br_Kbs.Kbs.Fact_Queries;
        procedure Action (Objects : Br_Kbs.Kbs.Fact_Collection);
    end Put_Into_Box_Rule;
    package body Put_Into_Box_Rule is separate;

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

    package Remove_Robot_Rule is
        function  Premiss return Br_Kbs.Kbs.Fact_Queries;
        procedure Action (Objects : Br_Kbs.Kbs.Fact_Collection);
    end Remove_Robot_Rule;
    package body Remove_Robot_Rule is separate;

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

    package Rule_Bundle is
       new Br_Kbs.Kbs.Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Br_Kbs.Br_Rule_Bundle,
               Rule_Names => Rule_Names,
               Nothing    => Rule_Names'Last,

               Rule_1     => Take_Biggest_Brick_From_Heap,
               Premiss_1  => Take_Biggest_Brick_From_Heap_Rule.Premiss,
               Action_1   => Take_Biggest_Brick_From_Heap_Rule.Action,

               Rule_2     => Hold_Biggest_Brick,
               Premiss_2  => Hold_Biggest_Brick_Rule.Premiss,
               Action_2   => Hold_Biggest_Brick_Rule.Action,

               Rule_3     => Put_Into_Box,
               Premiss_3  => Put_Into_Box_Rule.Premiss,
               Action_3   => Put_Into_Box_Rule.Action,

               Rule_4     => Remove_Robot,
               Premiss_4  => Remove_Robot_Rule.Premiss,
               Action_4   => Remove_Robot_Rule.Action);



    procedure Do_Action (For_Rule : Br_Kbs.Kbs.Rule_Id;
                         On_Facts : Br_Kbs.Kbs.Fact_Collection) is
    begin
        Rule_Bundle.Do_Action (For_Rule, On_Facts);
    end Do_Action;

end Br_Rule_Bundle;

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=1f rec1=00 rec2=01 rec3=034
        [0x01] rec0=02 rec1=00 rec2=03 rec3=03a
        [0x02] rec0=18 rec1=00 rec2=04 rec3=038
        [0x03] rec0=17 rec1=00 rec2=02 rec3=000
    tail 0x2174eb12c866f3e853946 0x42a00088462063c03