|
|
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: 7168 (0x1c00)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package Generic_Fact_Base, seg_02baa0
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦5a81ac88f⟧ »Space Info Vol 1«
└─⟦this⟧
with Constant_String;
with Output_Stream;
generic
Max_Frame_Count : Natural := 200;
Max_Slots : Natural := 20;
type Condition_Object is private;
Is_Any : Condition_Object;
with function Condition_Match (Value : Integer; Against : Condition_Object)
return Boolean is <>;
with procedure Condition_Put (The_Condition : Condition_Object;
Where : Output_Stream.Object) is <>;
package Generic_Fact_Base is
type Object is private;
Null_Object : constant Object;
type Collection is array (Positive range <>) of Object;
subtype Value_Size is Natural range 0 .. Max_Slots;
type Query (Size : Value_Size := 0) is private;
Null_Query : constant Query;
type Queries is array (Positive range <>) of Query;
function Empty_Collection return Collection;
function Null_Premiss return Queries;
function Retrieve (Filter : Queries) return Collection;
procedure Make_Empty;
procedure Put (The_Query : Query; Where : Output_Stream.Object);
procedure Put (The_Queries : Queries; Where : Output_Stream.Object);
procedure Put (The_Fact : Object; Where : Output_Stream.Object);
procedure Put (The_Collection : Collection; Where : Output_Stream.Object);
procedure Put (Where : Output_Stream.Object); -- The working memory
Overflow : exception;
generic
Class_Name : String;
type Slot_Names is (<>);
with function Attribute_Image (I : Integer) return String is
Integer'Image;
package Generic_Fact is
type Slots is array (Slot_Names) of Integer;
type Patterns is array (Slot_Names) of Condition_Object;
function Exist (What : Patterns) return Query;
function Not_Any (What : Patterns) return Query;
function Absent (What : Patterns) return Query renames Not_Any;
function Get (The_Fact : Object) return Slots;
function Get (The_Fact : Object; Slot : Slot_Names) return Integer;
procedure Add (The_Fact : Slots);
procedure Delete (The_Fact : Object);
procedure Change (The_Fact : Object; Value : Slots);
procedure Change (The_Fact : Object;
The_Slot : Slot_Names;
To_Value : Integer);
procedure Put (The_Fact : Object; Where : Output_Stream.Object);
end Generic_Fact;
private
type Object is new Natural;
Null_Object : constant Object := 0;
subtype Slot_Names is Value_Size range 1 .. Max_Slots;
type Patterns is array (Slot_Names range <>) of Condition_Object;
subtype Class_Name is Constant_String.Object;
Null_Class_Name : Class_Name renames Constant_String.Null_Object;
type Query_Qualifier is (Find, Check_No);
type Query (Size : Value_Size := 0) is
record
Kind : Query_Qualifier;
Class : Class_Name;
Value : Patterns (1 .. Size);
end record;
Null_Query : constant Query := Query'(Size => 0,
Kind => Find,
Class => Null_Class_Name,
Value => (others => Is_Any));
end Generic_Fact_Base;
nblk1=6
nid=2
hdr6=a
[0x00] rec0=20 rec1=00 rec2=01 rec3=038
[0x01] rec0=19 rec1=00 rec2=04 rec3=032
[0x02] rec0=03 rec1=00 rec2=03 rec3=01a
[0x03] rec0=1c rec1=00 rec2=06 rec3=03e
[0x04] rec0=0a rec1=00 rec2=05 rec3=000
[0x05] rec0=0c rec1=00 rec2=02 rec3=001
tail 0x21523d64c83ef67082677 0x42a00088462063c03
Free Block Chain:
0x2: 0000 00 00 00 17 80 07 73 20 28 3c 3e 29 3b 07 00 0a ┆ s (<>); ┆