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

⟦6867c65b4⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Boites, seg_00c80c

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



package body Boites is

    function Boiteconvient (Aref : Reference) return Boolean is
    begin
        return (Behavior.Get (Aref).Remplie = False and
                Behavior.Get (Aref).Taille >= 50 and
                Behavior.Get (Aref).Taille <= 200);
    end Boiteconvient;

    function Lesboites000 is new Collection.Restrict (Boiteconvient);

    function Lesboites return Collection.Object is
    begin
        return (Lesboites000 (Behavior.Instances));
    end Lesboites;

    function Taille (Aref : Reference) return Natural is
    begin
        return (Behavior.Get (Aref).Taille);
    end Taille;

    procedure Occuper (Aref : Reference) is
        Uneboite : Object;
    begin
        Put ("Taille de la boite: ");
        Uneboite := Behavior.Get (Aref);
        Put (Uneboite.Taille);
        Put_Line (" ");
        Uneboite.Remplie := True;
        Behavior.Set (Aref, Uneboite);
    end Occuper;

    procedure Liberer (Aref : Reference) is
        Uneboite : Object;
    begin
        Uneboite := Behavior.Get (Aref);
        Uneboite.Remplie := False;
        Behavior.Set (Aref, Uneboite);
    end Liberer;


    procedure Enroute is
        Uneboite : Object;
    begin

        Put_Line ("Creation de boites vides de differentes tailles");
        for I in 7 .. 56 loop
            Uneboite.Taille := I * 6;
            Behavior.Allocate (Uneboite);
        end loop;

    end Enroute;

end Boites;





E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=22 rec1=00 rec2=01 rec3=038
        [0x01] rec0=1b rec1=00 rec2=02 rec3=001
    tail 0x21709850482074fe53c2b 0x42a00088462060003