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

⟦87728148b⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Fruit_Rule_Bundle, package body Mark_Block_For_New_Tower_Rule, package body Mark_Top_Block_Of_Marked_Block_Rule, package body Put_Block_On_New_Tower_Rule, package body Put_New_Tower_On_Table_Rule, seg_04baf5, separate Decision_System_2

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



separate (Decision_System_2)


package body Fruit_Rule_Bundle is

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

    type Rule_Names is (Mark_Block_For_New_Tower,
                        Mark_Top_Block_Of_Marked_Block, Put_New_Tower_On_Table,
                        Put_Block_On_New_Tower, No_More);

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

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

    package body Mark_Block_For_New_Tower_Rule is separate;

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

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

    package body Mark_Top_Block_Of_Marked_Block_Rule is separate;

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

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

    package body Put_New_Tower_On_Table_Rule is separate;

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

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

    package body Put_Block_On_New_Tower_Rule is separate;

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


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

               Rule_1     => Mark_Block_For_New_Tower,
               Premiss_1  => Mark_Block_For_New_Tower_Rule.Premiss,
               Action_1   => Mark_Block_For_New_Tower_Rule.Action,

               Rule_2     => Mark_Top_Block_Of_Marked_Block,
               Premiss_2  => Mark_Top_Block_Of_Marked_Block_Rule.Premiss,
               Action_2   => Mark_Top_Block_Of_Marked_Block_Rule.Action,

               Rule_3     => Put_New_Tower_On_Table,
               Premiss_3  => Put_New_Tower_On_Table_Rule.Premiss,
               Action_3   => Put_New_Tower_On_Table_Rule.Action,

               Rule_4     => Put_Block_On_New_Tower,
               Premiss_4  => Put_Block_On_New_Tower_Rule.Premiss,
               Action_4   => Put_Block_On_New_Tower_Rule.Action);




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


end Fruit_Rule_Bundle;

E3 Meta Data

    nblk1=6
    nid=0
    hdr6=c
        [0x00] rec0=1d rec1=00 rec2=01 rec3=01e
        [0x01] rec0=00 rec1=00 rec2=06 rec3=022
        [0x02] rec0=1c rec1=00 rec2=04 rec3=044
        [0x03] rec0=00 rec1=00 rec2=02 rec3=004
        [0x04] rec0=19 rec1=00 rec2=05 rec3=006
        [0x05] rec0=04 rec1=00 rec2=03 rec3=001
    tail 0x21750ca7886844bc803dc 0x42a00088462063c03