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

⟦b184d8ed9⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body File_Attente, seg_04f96e, seg_051688

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 File_Attente is
    function Suivant (I : Integer) return Integer is
    begin
        return (I mod Longueur_Max) + 1;
    end Suivant;

    procedure Raz (File_Attente : in out Objet) is
    begin
        File_Attente.Tete := 1;
        File_Attente.Queue := Longueur_Max;
    end Raz;

    function Est_Vide (File_Attente : Objet) return Boolean is
    begin
        if Suivant (File_Attente.Queue) = File_Attente.Tete then
            return True;
        else
            return False;
        end if;
    end Est_Vide;


    function Element_Tete (File_Attente : Objet) return Element is
    begin
        if Est_Vide (File_Attente) then
            raise File_Vide;
        else
            return File_Attente.Tableau (File_Attente.Tete);
        end if;
    end Element_Tete;


    procedure Enfiler (File_Attente : in out Objet; Elem : Element) is
    begin
        if Suivant (Suivant (File_Attente.Queue)) = File_Attente.Tete then
            raise File_Pleine;
        else
            File_Attente.Queue := Suivant (File_Attente.Queue);
            File_Attente.Tableau (File_Attente.Queue) := Elem;
        end if;

    end Enfiler;

    procedure Defiler (File_Attente : in out Objet) is
    begin
        if Est_Vide (File_Attente) then
            raise File_Vide;
        else
            File_Attente.Tete := Suivant (File_Attente.Tete);
        end if;
    end Defiler;

    -- function Taille (File_Attente : Objet) return Integer is
    --     Taille : Integer;
    -- begin
    --     Taille := File_Attente.Queue - File_Attente.Queue;
    --     if Taille < 0 then
    --         Taille := Taille * (-1);
    --     end if;
    --     return Taille;
    -- end Taille;
end File_Attente;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=24 rec1=00 rec2=01 rec3=082
        [0x01] rec0=1c rec1=00 rec2=02 rec3=001
    tail 0x21756f4ea8778407b3208 0x42a00088462060003