|
|
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_02d0c5, seg_02d10a, seg_0399cf, seg_03b8ee, seg_03c03d, seg_03c46b, seg_03c612, seg_03c947, seg_04a911, seg_04b381
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
with Bbr_Do_Action;
with Bbr_Frames;
with Bbr_Kbs;
with Output_Stream;
with Slot;
use Bbr_Frames;
use Bbr_Kbs;
use Output_Stream;
procedure Bbr_Test is
procedure Load_Initial_Working_Memory is
begin
Robots.Add ((Colour => Green_Colour,
State => Free_State,
Identity => Slot.Value ("Greta")));
Robots.Add ((Colour => Red_Colour,
State => Busy_State,
Identity => Slot.Value ("Garbo")));
Robots.Add ((Colour => Red_Colour,
State => Free_State,
Identity => Slot.Value ("Greta")));
Robots.Add ((Colour => Blue_Colour,
State => Free_State,
Identity => Slot.Value ("Shrdlu")));
Robots.Add ((Colour => Blue_Colour,
State => Busy_State,
Identity => Slot.Value ("Greta")));
Robots.Add ((Colour => Green_Colour,
State => Busy_State,
Identity => Slot.Value ("Marylin")));
Balls.Add ((Size => Slot.Value (50),
Colour => Blue_Colour,
Place => On_Heap_Place));
Balls.Add ((Size => Slot.Value (75),
Colour => Green_Colour,
Place => On_Heap_Place));
Balls.Add ((Size => Slot.Value (95),
Colour => Red_Colour,
Place => On_Heap_Place));
Balls.Add ((Size => Slot.Value (100),
Colour => Blue_Colour,
Place => On_Heap_Place));
Boxes.Add ((Size => Slot.Value (750),
Colour => Red_Colour,
State => Free_State));
Boxes.Add ((Size => Slot.Value (10000),
Colour => Green_Colour,
State => Free_State));
Boxes.Add ((Size => Slot.Value (150),
Colour => Red_Colour,
State => Busy_State));
end Load_Initial_Working_Memory;
procedure Play_With_Balls_Boxes_And_Robots is
new Kbs.Rule_Base.Infere (Do_Action => Bbr_Do_Action);
procedure Put_Working_Memory is
new Kbs.Fact_Base.Working_Memory.Generic_Put (Put => Bbr_Frames.Put);
begin
Load_Initial_Working_Memory;
Put_Working_Memory (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=0
hdr6=8
[0x00] rec0=23 rec1=00 rec2=01 rec3=058
[0x01] rec0=06 rec1=00 rec2=03 rec3=00a
[0x02] rec0=1a rec1=00 rec2=02 rec3=056
[0x03] rec0=16 rec1=00 rec2=04 rec3=000
tail 0x2152611dc84154a95ed77 0x42a00088462063c03