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

⟦6ec0a5f8b⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Bbr_Test, seg_02bab0

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

use Bbr_Attributes;
use Bbr_Frames;
use Bbr_Kbs;
use Output_Stream;

procedure Bbr_Test is
    use Kbs;
    use Condition;

    procedure Load_Initial_Working_Memory is
    begin
        Robots.Add ((Colour => Green, State => Free));
        Robots.Add ((Colour => Red, State => Busy));
        Robots.Add ((Colour => Red, State => Free));
        Robots.Add ((Colour => Blue, State => Free));
        Robots.Add ((Colour => Green, State => Busy));

        Balls.Add ((Size => 50, Colour => Blue, Place => On_Heap));
        Balls.Add ((Size => 75, Colour => Green, Place => On_Heap));
        Balls.Add ((Size => 95, Colour => Red, Place => On_Heap));
        Balls.Add ((Size => 100, Colour => Blue, Place => On_Heap));

        Boxes.Add ((Size => 750, Colour => Red, State => Free));
        Boxes.Add ((Size => 10000, Colour => Green, State => Free));
        Boxes.Add ((Size => 150, Colour => Red, State => Busy));
    end Load_Initial_Working_Memory;
    procedure Play_With_Balls_Boxes_And_Robots is
       new Kbs.Rule_Base.Infere (Do_Action => Bbr_Do_Action);
begin
    Load_Initial_Working_Memory;

    Kbs.Fact_Base.Put (Standard_Output);
    New_Line (Standard_Output);

    for I in 1 .. Kbs.Rule_Base.Count loop
        Kbs.Rule_Base.Put (I, Standard_Output);
    end loop;

    Play_With_Balls_Boxes_And_Robots;

end Bbr_Test;

E3 Meta Data

    nblk1=4
    nid=2
    hdr6=4
        [0x00] rec0=20 rec1=00 rec2=01 rec3=006
        [0x01] rec0=12 rec1=00 rec2=04 rec3=000
        [0x02] rec0=03 rec1=00 rec2=02 rec3=000
        [0x03] rec0=02 rec1=21 rec2=12 rec3=442
    tail 0x21523ffa683f0795231e5 0x42a00088462063c03
Free Block Chain:
  0x2: 0000  00 03 00 03 00 00 00 00 00 00 00 00 00 00 00 00  ┆                ┆
  0x3: 0000  00 00 00 7d 80 11 20 20 20 20 20 20 20 20 20 20  ┆   }            ┆