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

⟦9a0663992⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Bgrb2_Working_Memory, seg_04b34d

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



with Bgrb2_Frames;
with Bgrb2_Kbs;
with Slot;
use Bgrb2_Frames;
use Slot;

package body Bgrb2_Working_Memory is
    use Kbs;


    procedure Default_Put is
    begin  
        Fact_Base.Working_Memory.Default_Put (Output_Stream.Standard_Output);
    end Default_Put;


    procedure Load_Initial is
    begin
        Robots.Add ((Action     => Taking,
                     Working    => No,
                     Identifier => Value ("Robot1")));
        Robots.Add ((Action     => Taking,
                     Working    => No,
                     Identifier => Value ("Robot2")));  
        Robots.Add ((Action     => Taking,
                     Working    => No,
                     Identifier => Value ("Robot3")));

        Bricks.Add ((Size => Value (10), Place => On_Heap));
        Bricks.Add ((Size => Value (12), Place => On_Heap));
        Bricks.Add ((Size => Value (20), Place => On_Heap));
        Bricks.Add ((Size => Value (10), Place => On_Heap));
        Bricks.Add ((Size => Value (10), Place => On_Heap));
        Bricks.Add ((Size => Value (4), Place => On_Heap));
        Bricks.Add ((Size => Value (20), Place => On_Heap));


        Boxes.Add ((Number => Value (1), State => Empty));
        Boxes.Add ((Number => Value (2), State => Full));
        Boxes.Add ((Number => Value (4), State => Empty));
        Boxes.Add ((Number => Value (5), State => Empty));
        Boxes.Add ((Number => Value (6), State => Empty));
        Boxes.Add ((Number => Value (3), State => Empty));

    end Load_Initial;


end Bgrb2_Working_Memory;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=05c
        [0x01] rec0=11 rec1=00 rec2=02 rec3=001
    tail 0x2174fdf8e867b712c837b 0x42a00088462063c03