DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦e03e0331e⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Remove_Robot_Rule, seg_04a3f0, separate Br_Rule_Bundle

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



separate (Br_Rule_Bundle)

package body Remove_Robot_Rule is


    function Premiss return Br_Kbs.Kbs.Fact_Queries is
    begin
        return (Br_Frames.Robots.Exist
                   ((Br_Frames.Action => Br_Kbs.Kbs.Fact_Base.Predicate.
                                            System_Defined_Predicate.Is_Equal
                                            (Br_Frames.Taking_Action),
                     Br_Frames.Box    => Br_Kbs.Kbs.Fact_Base.Predicate.
                                            System_Defined_Predicate.Is_Any)),

                Br_Frames.Bricks.Absent
                   ((Br_Frames.Name  => Br_Kbs.Kbs.Fact_Base.Predicate.
                                           System_Defined_Predicate.Is_Any,
                     Br_Frames.Size  => Br_Kbs.Kbs.Fact_Base.Predicate.
                                           System_Defined_Predicate.Is_Any,
                     Br_Frames.Place => Br_Kbs.Kbs.Fact_Base.Predicate.
                                           System_Defined_Predicate.Is_Equal
                                           (Br_Frames.On_Heap_Place))));  
    end Premiss;


    procedure Action (Objects : Br_Kbs.Kbs.Fact_Collection) is

        The_Robot_To_Remove : Br_Kbs.Kbs.Fact_Name renames Objects (1);

        On_Screen : Output_Stream.Object := Output_Stream.Standard_Output;
    begin
        Output_Stream.New_Line (On_Screen);
        Output_Stream.Put_Line
           (" --------------------------------------------------------",
            On_Screen);
        Output_Stream.Put_Line
           (" --                 REMOVING THE ROBOT                 --",
            On_Screen);
        Output_Stream.Put_Line
           (" --------------------------------------------------------",
            On_Screen);
        Output_Stream.New_Line (On_Screen);

        Br_Frames.Robots.Delete (The_Robot_To_Remove);

        Output_Stream.New_Line (On_Screen);

    end Action;

end Remove_Robot_Rule;

E3 Meta Data

    nblk1=3
    nid=0
    hdr6=6
        [0x00] rec0=16 rec1=00 rec2=01 rec3=030
        [0x01] rec0=1c rec1=00 rec2=02 rec3=000
        [0x02] rec0=02 rec1=00 rec2=03 rec3=000
    tail 0x2174eb14a866f3e86f9bf 0x42a00088462063c03