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

⟦c53772f6c⟧ Ada Source

    Length: 3072 (0xc00)
    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_02bac8

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

use Towers_Of_Hanoi_Frames;
use Towers_Of_Hanoi_Kbs;

package body Towers_Of_Hanoi_Rules_For_Graphic is
    use Kbs;
    use Kbs.Condition;

    type Rule_Names is (Reformulating_Guru, Moving_Guru, No_More);

    -------------------------------------------------------------------------------
    package Reformulating_Guru_Rule is
        function  Premiss return Fact_Base.Queries;
        procedure Action (The_Facts : Fact_Base.Collection);
    end Reformulating_Guru_Rule;

    package body Reformulating_Guru_Rule is separate;

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

    package Moving_Guru_Rule is
        function  Premiss return Fact_Base.Queries;
        procedure Action (The_Facts : Fact_Base.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_Base.Rule_Id;
                         On_Facts : Kbs.Fact_Base.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=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=07a
        [0x01] rec0=18 rec1=00 rec2=02 rec3=001
    tail 0x21523e8c683f04240e631 0x42a00088462063c03