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

⟦67227ea7e⟧ Ada Source

    Length: 12288 (0x3000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Moving_Guru_Rule, package body Reformulating_Guru_Rule, package body Towers_Of_Hanoi_Rules_For_Graphic, seg_02d0d6, seg_02d122, seg_03b939

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 Alias;
with Towers_Of_Hanoi_Graphic;
with Towers_Of_Hanoi_Kbs;
with Towers_Of_Hanoi_Frames;  
with Slot;

use Towers_Of_Hanoi_Frames;
use Towers_Of_Hanoi_Graphic;
use Towers_Of_Hanoi_Kbs;

package body Towers_Of_Hanoi_Rules_For_Graphic is
    use Kbs;
    use Kbs.Predicate;
    use Kbs.Predicate.System_Defined_Predicate;

    type Rule_Names is (Reformulating_Guru, Moving_Guru, No_More);

    -------------------------------------------------------------------------------
    package Reformulating_Guru_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (The_Facts : Fact_Collection);
    end Reformulating_Guru_Rule;

    package body Reformulating_Guru_Rule is separate;

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

    package Moving_Guru_Rule is
        function  Premiss return Fact_Queries;
        procedure Action (The_Facts : Fact_Collection);
    end Moving_Guru_Rule;

    package body Moving_Guru_Rule is separate;

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

    package Rule_Bundle is  
       new Kbs.Rule_Base.Generic_Rule_Bundle
              (The_Bundle => Towers_Of_Hanoi_Rules,
               Rule_Names => Rule_Names,
               Nothing    => Rule_Names'(No_More),

               Rule_1     => Reformulating_Guru,
               Premiss_1  => Reformulating_Guru_Rule.Premiss,
               Action_1   => Reformulating_Guru_Rule.Action,

               Rule_2     => Moving_Guru,
               Premiss_2  => Moving_Guru_Rule.Premiss,
               Action_2   => Moving_Guru_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 Towers_Of_Hanoi_Rules_For_Graphic;

E3 Meta Data

    nblk1=b
    nid=4
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=02c
        [0x01] rec0=1c rec1=00 rec2=08 rec3=000
        [0x02] rec0=03 rec1=00 rec2=02 rec3=028
        [0x03] rec0=15 rec1=00 rec2=03 rec3=002
        [0x04] rec0=1a rec1=00 rec2=04 rec3=034
        [0x05] rec0=10 rec1=00 rec2=08 rec3=000
        [0x06] rec0=13 rec1=00 rec2=0a rec3=01a
        [0x07] rec0=11 rec1=00 rec2=07 rec3=092
        [0x08] rec0=00 rec1=00 rec2=05 rec3=004
        [0x09] rec0=1d rec1=00 rec2=08 rec3=024
        [0x0a] rec0=0b rec1=00 rec2=09 rec3=000
    tail 0x21526156284154d4a0359 0x42a00088462063c03
Free Block Chain:
  0x4: 0000  00 03 03 fc 80 34 20 20 20 20 20 20 20 20 20 20  ┆     4          ┆
  0x3: 0000  00 02 03 fc 80 34 63 65 20 20 20 20 20 20 3a 3d  ┆     4ce      :=┆
  0x2: 0000  00 06 00 69 80 16 20 4d 6f 76 65 5f 54 68 69 72  ┆   i   Move_Thir┆
  0x6: 0000  00 05 03 fc 80 1e 65 63 69 73 69 6f 6e 5f 54 61  ┆      ecision_Ta┆
  0x5: 0000  00 07 03 fc 80 04 6f 6e 29 2c 04 00 39 20 20 20  ┆      on),  9   ┆
  0x7: 0000  00 0a 03 fc 80 07 72 65 6d 69 73 73 3b 07 00 00  ┆      remiss;   ┆
  0xa: 0000  00 0b 03 fc 80 15 6f 75 6e 74 20 3d 3e 20 49 73  ┆      ount => Is┆
  0xb: 0000  00 09 00 11 80 0e 65 6e 74 73 2e 45 78 69 73 74  ┆      ents.Exist┆
  0x9: 0000  00 00 01 6c 80 24 6d 69 73 73 5f 32 20 20 3d 3e  ┆   l $miss_2  =>┆