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

⟦3c8f27b3d⟧ Ada Source

    Length: 10240 (0x2800)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body At_Monkey_Object_Rule, package body At_Monkey_On_Rule, package body At_Monkey_Rule, package body At_Object_Holds_Rule, package body At_Object_On_Floor_Rule, package body At_Object_Rule, package body Mb_Test_Rules_For_Goal_Type_At, seg_03c424, seg_03c4ec, seg_03c693, seg_03c9c8, seg_04a99d, seg_04b40b

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 
└─⟦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 Alias;
with Mb_Kbs;
with Mb_Frames;
with Output_Stream;
with Slot;

use Mb_Kbs;
use Mb_Frames;
use Output_Stream;

package body Mb_Test_Rules_For_Goal_Type_At is

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

    type Rule_Names is (At_Monkey, At_Monkey_Object, At_Monkey_On, At_Object,
                        At_Object_Holds, At_Object_On_Floor, No_More);


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

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

    package body At_Monkey_Rule is separate;

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

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

    package body At_Monkey_Object_Rule is separate;

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

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

    package body At_Monkey_On_Rule is separate;

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

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

    package body At_Object_Rule is separate;

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

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

    package body At_Object_On_Floor_Rule is separate;

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

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

    package body At_Object_Holds_Rule is separate;

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


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

               Rule_1     => At_Monkey,
               Premiss_1  => At_Monkey_Rule.Premiss,
               Action_1   => At_Monkey_Rule.Action,

               Rule_2     => At_Monkey_Object,
               Premiss_2  => At_Monkey_Object_Rule.Premiss,
               Action_2   => At_Monkey_Object_Rule.Action,

               Rule_3     => At_Monkey_On,
               Premiss_3  => At_Monkey_On_Rule.Premiss,
               Action_3   => At_Monkey_On_Rule.Action,

               Rule_4     => At_Object,
               Premiss_4  => At_Object_Rule.Premiss,
               Action_4   => At_Object_Rule.Action,

               Rule_5     => At_Object_On_Floor,
               Premiss_5  => At_Object_On_Floor_Rule.Premiss,
               Action_5   => At_Object_On_Floor_Rule.Action,

               Rule_6     => At_Object_Holds,
               Premiss_6  => At_Object_Holds_Rule.Premiss,
               Action_6   => At_Object_Holds_Rule.Action);


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

E3 Meta Data

    nblk1=9
    nid=9
    hdr6=a
        [0x00] rec0=24 rec1=00 rec2=01 rec3=028
        [0x01] rec0=02 rec1=00 rec2=04 rec3=008
        [0x02] rec0=1d rec1=00 rec2=07 rec3=032
        [0x03] rec0=1b rec1=00 rec2=05 rec3=02a
        [0x04] rec0=17 rec1=00 rec2=03 rec3=000
        [0x05] rec0=1a rec1=00 rec2=04 rec3=000
        [0x06] rec0=13 rec1=00 rec2=05 rec3=000
        [0x07] rec0=13 rec1=00 rec2=05 rec3=001
        [0x08] rec0=28 rec1=2a rec2=80 rec3=003
    tail 0x2173a4d1a858170141833 0x42a00088462063c03
Free Block Chain:
  0x9: 0000  00 06 00 06 80 03 73 20 69 03 61 67 65 20 62 6f  ┆      s i age bo┆
  0x6: 0000  00 08 00 09 80 06 20 20 70 72 6f 63 06 2d 2d 2d  ┆        proc ---┆
  0x8: 0000  00 02 00 07 80 04 2d 2d 2d 2d 04 5f 51 75 65 72  ┆      ---- _Quer┆
  0x2: 0000  00 00 00 1c 80 13 73 5f 46 6f 72 5f 47 6f 61 6c  ┆      s_For_Goal┆