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: ┃ B T

⟦d98872b43⟧ TextFile

    Length: 2911 (0xb5f)
    Types: TextFile
    Names: »B«

Derivation

└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Frame_Examples, Slot, Slot_Examples, Instance;
use Frame_Examples, Slot_Examples;
use Slot;
with Text_Io, Collection;
procedure Create_Initial_Facts is
    use Ball_Features, Frame_Examples.Box_Features, Sticker_Features;
begin
    Ball.Add (With_Values => (Size   => Slot.Value (10),
                              Place  => In_The_Heap,
                              Colour => Colours.Red));

    Ball.Add (With_Values => (Size   => Slot.Value (20),
                              Place  => In_The_Heap,
                              -- Place  => In_The_Box,
                              Colour => Colours.Red));

    Ball.Add (With_Values => (Size   => Slot.Value (30),  
                              Place  => In_The_Heap,
                              Colour => Colours.Green));

    Ball.Add (With_Values => (Size   => Slot.Value (40),  
                              Place  => In_The_Heap,
                              Colour => Colours.Green));

    Ball.Add (With_Values => (Size   => Slot.Value (50),  
                              Place  => In_The_Heap,
                              Colour => Colours.Green));

    Ball.Add (With_Values => (Size   => Slot.Value (60),  
                              Place  => In_The_Heap,
                              Colour => Colours.Green));

    Ball.Add (With_Values => (Size   => Slot.Value (70),  
                              Place  => In_The_Heap,
                              Colour => Colours.Green));

    Box.Add (With_Values => (Name     => Slot.Value ("the_first_box"),  
                             Size     => Slot.Value (15),
                             State    => State_Slot.Value (Is_Free),
                             Contains => Slot.Value (Instance.Null_Reference)));

    Sticker.Add (With_Values => (Colour => Colours.Green));
    Sticker.Add (With_Values_List =>
                    ((Colour => Colours.Green), (Colour => Colours.Green)));




    Text_Io.Put_Line (" nbre de balles :" &
                      Slot.Image (Slot.Value (Ball.Cardinality)));
    Text_Io.Put_Line (" nbre de boites :" &
                      Slot.Image (Slot.Value (Box.Cardinality)));
    Text_Io.Put_Line (" nbre d'etiquettes :" &
                      Slot.Image (Slot.Value (Sticker.Cardinality)));

    Text_Io.Put_Line ("**** test de la function frame.instance *****");
    Text_Io.Put_Line (" nbre de balles :" &
                      Slot.Image (Slot.Value (Collection.Cardinality
                                                 (Ball.Instances))));

    Text_Io.Put_Line (" nbre de boites :" &
                      Slot.Image (Slot.Value
                                     (Collection.Cardinality (Box.Instances))));

    Text_Io.Put_Line (" nbre d'etiquettes :" &
                      Slot.Image (Slot.Value (Collection.Cardinality
                                                 (Sticker.Instances))));

end Create_Initial_Facts;