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

⟦835e96479⟧ Ada Source

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

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



with Expertsystem;
use Expertsystem;

package Sticker is

    subtype Object is Reference;

    type Colors     is (White, Red, Yellow, Green, Blue);
    type States     is (Is_Unused, Is_Used);  
    type Existences is (Unused_Stickers, All_Stickers, White_Stickers,
                        Red_Stickers, Yellow_Stickers,
                        Green_Stickers, Blue_Stickers);

    Default_Color : constant Colors := White;
    Default_State : constant States := Is_Unused;


    function Color (O : Object) return Colors;
    function State (O : Object) return States;

    function Exist (With_Color : String; In_Kind_Of_Collection : Existences)
                   return Boolean;
    function Exist (With_State : States; In_Kind_Of_Collection : Existences)
                   return Boolean;

    function Instances (Kind : Existences := All_Stickers)
                       return Collection.Object;

    function Add (With_Color : Colors := Default_Color;
                  With_State : States := Default_State) return Object;

    procedure Change (O : Object; With_Color : Colors; With_State : States);
    procedure Change (O : Object; With_State : States);

    procedure Delete (O : Object);

    procedure Clean;

end Sticker;

E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=066
        [0x01] rec0=0b rec1=00 rec2=02 rec3=000
    tail 0x2170aff24821d7d6b6f4d 0x42a00088462063c03