|
|
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: 6144 (0x1800)
Types: Ada Source
Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Is_Same_Action_Rule, seg_04be0d, separate Fruit_Rule_Bundle_4
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
└─⟦cfc2e13cd⟧ »Space Info Vol 2«
└─⟦this⟧
separate (Fruit_Rule_Bundle_4)
package body Is_Same_Action_Rule is
function Premiss return Fact_Queries is
use Fact_Base.Predicate;
use Fruit_Frames_4;
The_What_Marker_Name : constant Alias.Name := Alias.M;
The_And_What_Marker_Name : constant Alias.Name := Alias.N;
begin
return (Requests.Exist
((Request_Name => Is_Equal (Is_Same_Request_Name),
Marker_Name => Define_As (The_What_Marker_Name),
Argument1 => Define_As (The_And_What_Marker_Name),
Argument2 => Is_Any)),
Visual_Markers.Exist
((Marker_Name => Is_Equal (The_What_Marker_Name),
Position_X => Is_Any,
Position_Y => Is_Any)),
Visual_Markers.Exist
((Marker_Name => Is_Equal (The_And_What_Marker_Name),
Position_X => Is_Any,
Position_Y => Is_Any)));
end Premiss;
procedure Action (Objects : Fact_Collection) is
use Fruit_Frames_4;
use Slot;
The_Request : Fact_Name renames Objects (1);
The_What_Marker_Fact : Fact_Name renames Objects (2);
The_And_What_Marker_Fact : Fact_Name renames Objects (3);
The_First_Pos_X : Slot.Object := Visual_Markers.Get
(The_What_Marker_Fact, Position_X);
The_First_Pos_Y : Slot.Object := Visual_Markers.Get
(The_What_Marker_Fact, Position_Y);
The_Second_Pos_X : Slot.Object :=
Visual_Markers.Get (The_And_What_Marker_Fact, Position_X);
The_Second_Pos_Y : Slot.Object :=
Visual_Markers.Get (The_And_What_Marker_Fact, Position_Y);
begin
Output_Stream.New_Line (Output_Stream.Standard_Output);
Output_Stream.Put_Line ("***************************************",
Output_Stream.Standard_Output);
Output_Stream.Put_Line ("is same action rule",
Output_Stream.Standard_Output);
Output_Stream.Put_Line ("***************************************",
Output_Stream.Standard_Output);
Output_Stream.New_Line (Output_Stream.Standard_Output);
if (The_First_Pos_X = The_Second_Pos_X) and
(The_First_Pos_Y = The_Second_Pos_Y) then
Answers.Add ((Request_Name => Is_Same_Request_Name,
Answer => Positive_Answer));
else
Answers.Add ((Request_Name => Is_Same_Request_Name,
Answer => Negative_Answer));
end if;
Requests.Delete (The_Request);
end Action;
end Is_Same_Action_Rule;
nblk1=5
nid=3
hdr6=6
[0x00] rec0=19 rec1=00 rec2=01 rec3=00a
[0x01] rec0=14 rec1=00 rec2=05 rec3=06e
[0x02] rec0=14 rec1=00 rec2=04 rec3=000
[0x03] rec0=01 rec1=00 rec2=03 rec3=000
[0x04] rec0=01 rec1=00 rec2=03 rec3=000
tail 0x21751528e86904e399d06 0x42a00088462063c03
Free Block Chain:
0x3: 0000 00 02 00 1d 80 17 6e 64 20 49 73 5f 53 61 6d 65 ┆ nd Is_Same┆
0x2: 0000 00 00 03 fc 80 0b 72 6b 65 72 73 2e 45 78 69 73 ┆ rkers.Exis┆