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

⟦b4b6fd5d8⟧ Ada Source

    Length: 3072 (0xc00)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, function Create, seg_03b2ba, separate Plant

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦5a81ac88f⟧ »Space Info Vol 1« 
        └─⟦this⟧ 

E3 Source Code



with Leaf;

separate (Plant)

function Create (Offspring : Natural := 0; Nb_Leaves : Natural := 1)
                return Object is
    This_Parent_Object : Root.Object := Root.Create (1);
    This_Object : Object := new State;
    A_List_Of_Leaves : Ref_Of_Leaves := Nil;  
    A_Leaf : Leaf.Object;
begin  
    This_Object.Offspring := Offspring;  
    Set_Origin (This_Object, This_Parent_Object);
    Root.Set_Heir (This_Parent_Object, Root_View_Of (This_Object));

    Log_Report.Trace ("Creation HAS relation with leaf");

    Init (A_List_Of_Leaves);

    for I in 1 .. Nb_Leaves loop
        A_Leaf := Leaf.Create;
        Insert (Element => A_Leaf, In_List => A_List_Of_Leaves);  
    end loop;

    Log_Report.Trace (Natural'Image (Arg_Number (A_List_Of_Leaves)) &
                      " leaves are (leaf is) born");

    Set_Leaves (This_Object, A_List_Of_Leaves);
    Log_Report.Trace ("A plant is born  with offspring " &
                      Natural'Image (This_Object.Offspring));
    return This_Object;
end Create;


E3 Meta Data

    nblk1=2
    nid=0
    hdr6=4
        [0x00] rec0=1f rec1=00 rec2=01 rec3=028
        [0x01] rec0=05 rec1=00 rec2=02 rec3=001
    tail 0x21533cb8c851640f95e80 0x42a00088462060003