DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

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 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T V

⟦f4e5943a6⟧ TextFile

    Length: 1025 (0x401)
    Types: TextFile
    Names: »V«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Animal;

package Fish is

    type Object is new Animal.Object;

    type State is private;

    type State_Ptr is access State;


    function Create (Offspring_No : Natural := 0) return Object;

    procedure Delete (This_Fish : in out Object);

    procedure Image (This_Fish : Object);

    procedure Set_Fin (This_Fish : Object; Number : Positive);

    function Get_Fin (This_Fish : Object) return Positive;

    -- exceptions


    procedure Sleep (This_Fish : Object);

    procedure Swim (This_Fish : Object);


    -- PROTECTED
    function Part_Of (This_Fish : Object) return State_Ptr;

    function Get_Heir (This_State_Ptr : State_Ptr)
                      return Animal.Application.Object;

    procedure Set_Heir (This_State_Ptr : in out State_Ptr;
                        Heir : Animal.Application.Object);
private
    type State is
        record
            Offspring_No : Natural := 0;
            Fin_Number : Positive;
            Heir : Animal.Application.Object;
        end record;

end Fish;