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

⟦16e3d7e68⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, generic, package body Actor, seg_049e94

Derivation

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

E3 Source Code



with Behavior_Defs;
with Behavior_Exception;
with Message_Transport;
package body Actor is

    This : Identifier.Object; -- set once the behavior has been identified

    Registered : Boolean := False;


    function Get_Identity return Identifier.Object is
    begin
        if not Registered then
            raise Behavior_Exception.Not_Yet_Registered_Error;
        end if;

        return This;
    end Get_Identity;

    procedure Process_Message (M : String) is
    begin
        Process_Message (Message.Value (M));
    end Process_Message;


    generic
        with procedure Identify (M : String;
                                 Behavior : out Identifier.Object;
                                 Registered : out Boolean);
    function Identified_Generic (M : String) return Boolean;


    function Identified_Generic (M : String) return Boolean is
    begin
        Identify (M => M, Behavior => This, Registered => Registered);       return Registered;
    end Identified_Generic;


    function Identified is new Identified_Generic (Behavior_Defs.Identify);


    procedure Ready_To_Receive is
    begin
        null;
    end Ready_To_Receive;


    procedure Transport_Start is
       new Message_Transport.Start_Server
              (Register_Service => Behavior_Defs.Register_Service,
               Service_Identified => Identified,
               Ready_To_Receive => Ready_To_Receive,
               Receive_Callback => Process_Message);


    procedure Start is  
        M : Message.Object;
    begin
        loop  
            Generate_Message (Message => M);
            Behavior_Defs.Send_Message (Message => [OBJECT-expression],
                                        Status => [STATUS_CODE-expression]);
        end loop;
    end Start;

end Actor;

E3 Meta Data

    nblk1=3
    nid=3
    hdr6=4
        [0x00] rec0=25 rec1=00 rec2=01 rec3=002
        [0x01] rec0=20 rec1=00 rec2=02 rec3=000
        [0x02] rec0=06 rec1=00 rec2=03 rec3=000
    tail 0x21524d7128404840da898 0x42a00088462060003
Free Block Chain:
  0x3: 0000  00 00 00 0a 80 04 74 6f 72 3b 04 00 00 00 43 4f  ┆      tor;    CO┆