DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ B T

⟦3fdc96e6c⟧ TextFile

    Length: 1795 (0x703)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 
└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦e24fb53b7⟧ 
            └─⟦this⟧ 

TextFile

with Towers_Of_Hanoi_Kbs;
with Towers_Of_Hanoi_Frames;

use Towers_Of_Hanoi_Kbs;
use Towers_Of_Hanoi_Frames;

package body Towers_Of_Hanoi_Rules_For_Benchmark 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_Kbs.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_Benchmark;