|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 5120 (0x1400)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Bbr_Test, seg_02cc8e
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
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
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;
nblk1=4
nid=2
hdr6=4
[0x00] rec0=1e rec1=00 rec2=01 rec3=04e
[0x01] rec0=12 rec1=00 rec2=04 rec3=000
[0x02] rec0=07 rec1=00 rec2=02 rec3=000
[0x03] rec0=02 rec1=4c rec2=87 rec3=142
tail 0x215251f388408518ef058 0x42a00088462063c03
Free Block Chain:
0x2: 0000 00 03 00 11 80 08 62 72 5f 54 65 73 74 3b 08 00 ┆ br_Test; ┆
0x3: 0000 00 00 00 83 80 3f 20 20 20 20 20 20 20 20 20 20 ┆ ? ┆