|
|
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: 3072 (0xc00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Create_Object_Rule, seg_02bab7, separate Many_Objects_Rules
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
separate (Many_Objects_Rules)
package body Create_Object_Rule is
function Premiss return Fact_Base.Queries is
The_Limit : Condition.Alias := Alias'(L);
begin
return (States.Exist ((Value => Is_Equal (0),
Max_Objects => Say_It_Is (The_Limit),
Max_Iterations => Is_Any)),
Numbers.Exist ((Value => Is_Less (The_Limit))));
end Premiss;
procedure Action (The_Facts : Fact_Base.Collection) is
The_Number : Fact_Base.Object renames The_Facts (2);
The_Value : Integer := Numbers.Get (The_Number, Slot => Value);
begin
The_Value := The_Value + 1;
Objects.Add (The_Fact => (X => The_Value, Y => The_Value * 2));
-- Text_Io.Put_Line ("creating object X =>" & Integer'Image (The_Value));
Numbers.Change (The_Number, Value, The_Value);
end Action;
end Create_Object_Rule;
nblk1=2
nid=2
hdr6=2
[0x00] rec0=18 rec1=00 rec2=01 rec3=000
[0x01] rec0=00 rec1=08 rec2=8f rec3=10d
tail 0x21523df8683ef73f00c57 0x42a00088462063c03
Free Block Chain:
0x2: 0000 00 00 00 11 80 0b 62 6a 65 63 74 5f 52 75 6c 65 ┆ bject_Rule┆