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

⟦8299c2997⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Generic_Agent_Test, seg_055818

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



with Agent_Tools;  
with Bounded_String;  
with Generic_My_Agent;
with My_Message;
with Text_Io;


procedure Generic_Agent_Test is  
    Job : My_Message.My_String;
    Saisie : String (1 .. 3);
    package My_Agent is new Generic_My_Agent (Service_Server => Service_Server);
begin

-- Enregistrement aupres de l'ORB

    Agent_Tools.Registration;
    Text_Io.Put_Line ("Local_id apres registration: " &
                      Bounded_String.Image (Agent_Tools.Get_Local_Id));

-- Demarrage de la tache de reception

    My_Agent.Start_Agent (Agent_Socket => Agent_Tools.Get_Local_Id);

-- Utilisation de l'ORB

    Bounded_String.Copy (Job, "DATE");
    Agent_Tools.Publication (Job);
    Bounded_String.Copy (Job, "HEURE");
    Agent_Tools.Publication (Job);
    Bounded_String.Copy (Job, "AUTRE");
    Agent_Tools.Publication (Job);  
    Agent_Tools.Filtration (Job);
    Agent_Tools.Subscription (Job);

    Agent_Tools.Query;

    Bounded_String.Copy (Job, "HEURE");
    Agent_Tools.Unpublication (Job);
    Agent_Tools.Content;
    Agent_Tools.Request (Job);       -- Demande d'un service inexistant (HEURE)

    Agent_Tools.Query;
    Agent_Tools.Unregistration;
--    Agent_Tools.Query;
    Agent_Tools.Unregistration;

--    Agent_Tools.Request (Job);       -- Demande d'un service inexistant (HEURE)

    while
       not Agent_Tools.
           Is_Finished loop      -- Test si toutes les requetes ont eu une reponse...
        null;
    end loop;

    Text_Io.Put_Line ("TEST FINISHED");
    My_Agent.
       Stop_Agent;                        -- ... avant de tuer les taches de reception

end Generic_Agent_Test;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=26 rec1=00 rec2=01 rec3=014
        [0x01] rec0=17 rec1=00 rec2=02 rec3=001
    tail 0x21760071287bd7cc308a9 0x42a00088462060003