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

⟦ff9965eed⟧ Ada Source

    Length: 12288 (0x3000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Mb_Rules_For_Goal_Type_On, package body On_Floor_Rule, package body On_Floor_Satisfied_Rule, package body On_Phys_Object_At_Monkey_Rule, package body On_Phys_Object_Hold_Rule, package body On_Phys_Object_Rule, package body On_Phys_Object_Satisfied_Rule, seg_03c2ac, seg_03c4dd, seg_03c684, seg_03c9b9, seg_04a98b, seg_04b3f9

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_Rules_For_Goal_Type_On is

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

    type Rule_Names is (On_Floor, On_Floor_Satisfied, On_Phys_Object,
                        On_Phys_Object_Hold, On_Phys_Object_At_Monkey,
                        On_Phys_Object_Satisfied, No_More);

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

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

    package body On_Floor_Rule is separate;

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

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

    package body On_Floor_Satisfied_Rule is separate;

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

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

    package body On_Phys_Object_Rule is separate;

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

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

    package body On_Phys_Object_Hold_Rule is separate;

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

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

    package body On_Phys_Object_At_Monkey_Rule is separate;

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

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

    package body On_Phys_Object_Satisfied_Rule is separate;

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


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

               Rule_1     => On_Floor,
               Premiss_1  => On_Floor_Rule.Premiss,
               Action_1   => On_Floor_Rule.Action,

               Rule_2     => On_Floor_Satisfied,
               Premiss_2  => On_Floor_Satisfied_Rule.Premiss,
               Action_2   => On_Floor_Satisfied_Rule.Action,

               Rule_3     => On_Phys_Object,
               Premiss_3  => On_Phys_Object_Rule.Premiss,
               Action_3   => On_Phys_Object_Rule.Action,

               Rule_4     => On_Phys_Object_Hold,
               Premiss_4  => On_Phys_Object_Hold_Rule.Premiss,
               Action_4   => On_Phys_Object_Hold_Rule.Action,

               Rule_5     => On_Phys_Object_At_Monkey,
               Premiss_5  => On_Phys_Object_At_Monkey_Rule.Premiss,
               Action_5   => On_Phys_Object_At_Monkey_Rule.Action,

               Rule_6     => On_Phys_Object_Satisfied,
               Premiss_6  => On_Phys_Object_Satisfied_Rule.Premiss,
               Action_6   => On_Phys_Object_Satisfied_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_Rules_For_Goal_Type_On;

E3 Meta Data

    nblk1=b
    nid=8
    hdr6=c
        [0x00] rec0=23 rec1=00 rec2=01 rec3=03e
        [0x01] rec0=00 rec1=00 rec2=04 rec3=004
        [0x02] rec0=1c rec1=00 rec2=02 rec3=01a
        [0x03] rec0=1b rec1=00 rec2=05 rec3=064
        [0x04] rec0=18 rec1=00 rec2=0b rec3=066
        [0x05] rec0=03 rec1=00 rec2=0a rec3=000
        [0x06] rec0=0e rec1=00 rec2=03 rec3=052
        [0x07] rec0=0e rec1=00 rec2=07 rec3=070
        [0x08] rec0=0e rec1=00 rec2=08 rec3=092
        [0x09] rec0=10 rec1=00 rec2=09 rec3=001
        [0x0a] rec0=91 rec1=ea rec2=80 rec3=000
    tail 0x2173a402c8580695844b2 0x42a00088462063c03
Free Block Chain:
  0x8: 0000  00 09 00 05 80 02 6c 65 02 65 6d 05 00 00 08 00  ┆      le em     ┆
  0x9: 0000  00 07 03 fc 80 18 6d 69 73 73 5f 31 37 20 3d 3e  ┆      miss_17 =>┆
  0x7: 0000  00 03 00 1a 80 17 20 20 41 63 74 69 6f 6e 5f 31  ┆        Action_1┆
  0x3: 0000  00 06 00 09 80 06 4e 61 6d 65 5f 31 06 6c 65 5f  ┆      Name_1 le_┆
  0x6: 0000  00 00 00 33 80 16 73 73 5f 38 20 20 3d 3e 20 4e  ┆   3  ss_8  => N┆