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

⟦297158db8⟧ Ada Source

    Length: 7168 (0x1c00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Bbr_Painting_Bundle, package body Paint_All_Boxes_In_Green_Rule, package body Paint_The_Green_Robots_In_Blue_Rule, seg_02cc8a

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 Output_Stream;
with Bbr_Attributes;
with Bbr_Kbs;
with Bbr_Frames;
with Output_Stream;

use Alias;
use Bbr_Kbs;
use Bbr_Attributes;
use Bbr_Frames;
use Output_Stream;
package body Bbr_Painting_Bundle is

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

    type Rule_Names is (Paint_The_Green_Robots_In_Blue,  
                        Paint_All_Boxes_In_Green,  
                        No_More);

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

    package body Paint_The_Green_Robots_In_Blue_Rule is separate;

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

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

    package body Paint_All_Boxes_In_Green_Rule is separate;

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

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

               Rule_1     => Paint_The_Green_Robots_In_Blue,
               Premiss_1  => Paint_The_Green_Robots_In_Blue_Rule.Premiss,
               Action_1   => Paint_The_Green_Robots_In_Blue_Rule.Action,

               Rule_2     => Paint_All_Boxes_In_Green,
               Premiss_2  => Paint_All_Boxes_In_Green_Rule.Premiss,
               Action_2   => Paint_All_Boxes_In_Green_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 Bbr_Painting_Bundle;

E3 Meta Data

    nblk1=6
    nid=2
    hdr6=6
        [0x00] rec0=23 rec1=00 rec2=01 rec3=00c
        [0x01] rec0=17 rec1=00 rec2=05 rec3=06a
        [0x02] rec0=07 rec1=00 rec2=03 rec3=000
        [0x03] rec0=19 rec1=00 rec2=04 rec3=01e
        [0x04] rec0=04 rec1=00 rec2=02 rec3=000
        [0x05] rec0=04 rec1=00 rec2=02 rec3=000
    tail 0x215254bc0840c4471b81e 0x42a00088462063c03
Free Block Chain:
  0x2: 0000  00 04 00 74 80 05 62 65 67 69 6e 05 00 33 20 20  ┆   t  begin  3  ┆
  0x4: 0000  00 06 03 fc 00 31 20 20 20 20 20 20 20 20 20 20  ┆     1          ┆
  0x6: 0000  00 00 03 fc 80 33 20 20 20 20 20 20 20 20 20 20  ┆     3          ┆