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

⟦5b05f88d3⟧ Ada Source

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

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 Feu_Tricolore is
    type Couleur_Du_Feu is (Rouge, Orange, Orange_Clignotant, Vert);
    type Mode is (Jour, Nuit);
    type Object is limited private;
    procedure Stop (O : in Object);
    procedure Modifie_Mode (O : in Object; M : in Mode);
    procedure Attribut_Numero (O : in Object; N : in Natural);
    procedure Modifie_Delai
                 (O : in Object; C : in Couleur_Du_Feu; D : in Duration);
private
    type Tab_Delai is array (Couleur_Du_Feu) of Duration;  
    type Feu is
        record
            Les_Delais : Tab_Delai := (Rouge => 8.0,
                                       Orange => 4.0,
                                       Vert => 6.0,
                                       Orange_Clignotant => 60.0);
            Etat : Couleur_Du_Feu := Rouge;
            De : Mode := Jour;
            Numero : Natural := 1;
            En_Marche : Boolean := True;
        end record;
    task type Object is
        entry Arreter;
        entry Changer_Numero (N : in Natural);
        entry Changer_Mode (M : in Mode);
        entry Changer_Delai (C : in Couleur_Du_Feu; D : in Duration);
    end Object;
    procedure Changer_Etat
                 (N : in Natural; E : in out Couleur_Du_Feu; M : in Mode);
end Feu_Tricolore;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1a rec1=00 rec2=01 rec3=008
        [0x01] rec0=07 rec1=00 rec2=02 rec3=001
    tail 0x21766a4a488d65ee34634 0x42a00088462060003