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

⟦ad449f2d8⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package Set_Of_Connections, seg_04192a

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 Binary_Trees_Pkg, Bounded_String;
use Bounded_String;

package Set_Of_Connections is

    Duplicate_Value : exception;

    type Object is private;

    type Lock is (No_State, Linked, Unlinked);

    procedure Create (Set : in out Object);
    procedure Destroy (Set : in out Object);

    procedure Add_New (Src_Item, Dst_Item, Qualif : String;
                       Connection_State : Lock;
                       Set : in out Object);

    procedure Modify_State (Src_Item, Qualif : String;
                            Connection_State : Lock;
                            Set : in out Object);

    function Exist (Src_Item, Qualif : String; Set : Object) return Boolean;

    function What_State (Src_Item, Qualif : String; Set : Object) return Lock;

    function What_Destination
                (Src_Item, Qualif : String; Set : Object) return String;

    procedure List (Src_Item : String; Set : Object);

    procedure Dump (Set : Object);

private

    type Connection is
        record
            Source : Variable_String (32);
            Destination : Variable_String (32);
            Qualification : Variable_String (32);
            State : Lock;
        end record;

    function Compare (A, B : Connection) return Integer;

    package Connections_Tree is new Binary_Trees_Pkg (Connection, Compare);

    type Object is
        record
            Root : Connections_Tree.Tree;
        end record;

end Set_Of_Connections;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=21 rec1=00 rec2=01 rec3=03c
        [0x01] rec0=17 rec1=00 rec2=02 rec3=001
    tail 0x2153c72fa862653bb5fbe 0x42a00088462060003