|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 18432 (0x4800) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Test_View_List, seg_0463d9
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─⟦cfc2e13cd⟧ »Space Info Vol 2« └─⟦this⟧
with Text_Io, View, View_List, Order, Attribute, Field_Identifier_Array, Objet, The_Order, The_Hero, The_Place, Identifier, Moving_String, Detail, Group_Array, Complement, Complement_Array, Enumeration_Array; use Text_Io, View_List; procedure Test_View_List is L, L1 : Object; O : View.Object; D1 : Detail.Object; A1, A2, A3, A4 : Attribute.Object; Ob : Objet.Object; An_Order : Order.Object; Ia : Order.Index_Array; Id : Identifier.Object; Index : Natural; Ok : Boolean; begin Enumeration_Array.Put_Literal (Identifier.From_String ("normal"), Identifier.From_String ("fermee"), Ok); Enumeration_Array.Put_Literal (Identifier.From_String ("normal"), Identifier.From_String ("ouverte"), Ok); Enumeration_Array.Put_Literal (Identifier.From_String ("couleur"), Identifier.From_String ("rouge"), Ok); Enumeration_Array.Put_Literal (Identifier.From_String ("couleur"), Identifier.From_String ("jaune"), Ok); Enumeration_Array.Put_Literal (Identifier.From_String ("couleur"), Identifier.From_String ("vert"), Ok); Enumeration_Array.Put_Literal (Identifier.From_String ("couleur"), Identifier.From_String ("bleu"), Ok); Enumeration_Array.Show; Field_Identifier_Array.Put (Identifier.From_String ("est")); Field_Identifier_Array.Put (Identifier.From_String ("sud")); Field_Identifier_Array.Put (Identifier.From_String ("nord")); Field_Identifier_Array.Put (Identifier.From_String ("vie")); Field_Identifier_Array.Put (Identifier.From_String ("age")); Field_Identifier_Array.Put (Identifier.From_String ("nom")); Field_Identifier_Array.Put (Identifier.From_String ("couleur")); Field_Identifier_Array.Put (Identifier.From_String ("description")); Field_Identifier_Array.Show; Complement_Array.Put (Complement.Entity_Object, Identifier.From_String ("gaston"), Ok); Complement_Array.Put (Complement.Entity_Object, Identifier.From_String ("chaise"), Ok); Complement_Array.Put (Complement.Entity_Object, Identifier.From_String ("fred"), Ok); Complement_Array.Put (Complement.Entity_Object, Identifier.From_String ("table"), Ok); Complement_Array.Put_Verb (Identifier.From_String ("courir"), Identifier.From_String ("aller"), Ok); Complement_Array.Put_Verb (Identifier.From_String ("aller"), Identifier.From_String ("aller"), Ok); Complement_Array.Put_Word (Identifier.From_String ("de"), Ok); Complement_Array.Put_Word (Identifier.From_String ("nord"), Ok); Complement_Array.Put_Word (Identifier.From_String ("est"), Ok); Complement_Array.Put_Word (Identifier.From_String ("sud"), Ok); Complement_Array.Put_Word (Identifier.From_String ("ouest"), Ok); Complement_Array.Put_Word (Identifier.From_String ("vie"), Ok); Complement_Array.Put_Word (Identifier.From_String ("age"), Ok); Complement_Array.Put_Word (Identifier.From_String ("nom"), Ok); Complement_Array.Put_Word (Identifier.From_String ("couleur"), Ok); Complement_Array.Put_Word (Identifier.From_String ("description"), Ok); Complement_Array.Put_Word (Identifier.From_String ("porte"), Ok); Complement_Array.Put_Word (Identifier.From_String ("trou"), Ok); Complement_Array.Put (Complement.Place_Object, Identifier.From_String ("cuisine"), Ok); Complement_Array.Put (Complement.Place_Object, Identifier.From_String ("chambre"), Ok); Complement_Array.Put (Complement.Place_Object, Identifier.From_String ("salon"), Ok); Complement_Array.Create_Number_Field (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("age"), Ok); Complement_Array.Field_Put_Number (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("age"), 13, Ok); Complement_Array.Create_Number_Field (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("vie"), Ok); Complement_Array.Field_Put_Number (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("vie"), 123, Ok); Complement_Array.Create_Enumerate_Field (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("couleur"), Ok); Index := Enumeration_Array.Enum ("couleur"); Complement_Array.Field_Put_Enumerate (Complement_Array.Index ("gaston"), Field_Identifier_Array.Index ("couleur"), Index, Enumeration_Array.Literal (Index, "rouge"), Ok); Complement_Array.Put_Place (Complement_Array.Index ("gaston"), Complement_Array.Index ("cuisine"), Ok); Complement_Array.Put_Place (Complement_Array.Index ("chaise"), Complement_Array.Index ("cuisine"), Ok); Complement_Array.Put_Place (Complement_Array.Index ("fred"), Complement_Array.Index ("cuisine"), Ok); Complement_Array.Put_Place (Complement_Array.Index ("table"), Complement_Array.Index ("cuisine"), Ok); Complement_Array.Create_Sentence_Field (Complement_Array.Index ("cuisine"), Field_Identifier_Array.Index ("description"), Ok); Complement_Array.Field_Put_Sentence (Complement_Array.Index ("cuisine"), Field_Identifier_Array.Index ("description"), Identifier.From_String ("C'est une belle cuisine"), Ok); Complement_Array.Put_Exit (Complement_Array.Index ("cuisine"), Complement_Array.Index ("porte"), Complement_Array.Index ("cuisine"), Complement_Array.Index ("nord"), Complement_Array.Index ("chambre"), Complement_Array.Index ("sud"), Ok); Complement_Array.Put_Exit (Complement_Array.Index ("cuisine"), Complement_Array.Index ("trou"), Complement_Array.Index ("cuisine"), Complement_Array.Index ("ouest"), Complement_Array.Index ("salon"), Complement_Array.Index ("est"), Ok); Complement_Array.Create_Sentence_Field (Complement_Array.Index ("chambre"), Field_Identifier_Array.Index ("description"), Ok); Complement_Array.Field_Put_Sentence (Complement_Array.Index ("chambre"), Field_Identifier_Array.Index ("description"), Identifier.From_String ("C'est une belle et grande chambre"), Ok); Complement_Array.Put_Exit (Complement_Array.Index ("chambre"), Complement_Array.Index ("porte"), Complement_Array.Index ("chambre"), Complement_Array.Index ("sud"), Complement_Array.Index ("cuisine"), Complement_Array.Index ("nord"), Ok); Complement_Array.Create_Enumerate_Field (Complement_Array.Index ("cuisine"), Field_Identifier_Array.Index ("nord"), Ok); Index := Enumeration_Array.Enum ("normal"); Complement_Array.Field_Put_Enumerate (Complement_Array.Index ("cuisine"), Field_Identifier_Array.Index ("nord"), Index, Enumeration_Array.Literal (Index, "fermee"), Ok); Complement_Array.Create_Enumerate_Field (Complement_Array.Index ("chambre"), Field_Identifier_Array.Index ("sud"), Ok); Index := Enumeration_Array.Enum ("normal"); Complement_Array.Field_Put_Enumerate (Complement_Array.Index ("chambre"), Field_Identifier_Array.Index ("sud"), Index, Enumeration_Array.Literal (Index, "fermee"), Ok); Complement_Array.Create_Sentence_Field (Complement_Array.Index ("salon"), Field_Identifier_Array.Index ("description"), Ok); Complement_Array.Field_Put_Sentence (Complement_Array.Index ("salon"), Field_Identifier_Array.Index ("description"), Identifier.From_String ("C'est un grand salon"), Ok); Complement_Array.Show; Complement_Array.Put_Exit (Complement_Array.Index ("salon"), Complement_Array.Index ("trou"), Complement_Array.Index ("salon"), Complement_Array.Index ("est"), Complement_Array.Index ("cuisine"), Complement_Array.Index ("ouest"), Ok); Identifier.Put (Id, "salle"); Group_Array.Put (Id, Complement_Array.Index ("chambre"), Ok); Group_Array.Put (Id, Complement_Array.Index ("salon"), Ok); Group_Array.Put (Id, Complement_Array.Index ("cuisine"), Ok); Group_Array.Show; Identifier.Put (Id, "nombre"); Group_Array.Put (Id, Complement_Array.Index ("vie"), Ok); Group_Array.Put (Id, Complement_Array.Index ("age"), Ok); Group_Array.Show; Order.Put_Place (An_Order, Moving_String.From_String ("cuisine")); Order.Put_First_Complement (An_Order, Moving_String.From_String ("aller")); Order.Put_Second_Complement (An_Order, Moving_String.From_String ("nord")); Order.Put_Third_Complement (An_Order, Moving_String.From_String ("de")); Order.Put_Fourth_Complement (An_Order, Moving_String.From_String ("cuisine")); Ia := (5, 4, 3, 2, 1); Order.Put_Redirection (An_Order, Ia); The_Order.Put (An_Order); The_Order.Show; The_Hero.Put (Complement_Array.Index ("gaston")); Put_Line ("index the hero : " & Natural'Image (The_Hero.Index)); The_Hero.Show; The_Place.Put (Complement_Array.Index ("cuisine")); Put_Line ("index the place : " & Natural'Image (The_Place.Index)); The_Place.Show; Objet.Create_Real (Ob, Complement_Array.Index ("gaston")); Detail.Create_Real_Field (D1, Field_Identifier_Array.Index ("age")); Attribute.Put (A1, Ob, D1); Attribute.Show (A1); Objet.Create_Group (Ob, 5); Detail.Create_Field_Group (D1, 3); Attribute.Put (A2, Ob, D1); Attribute.Show (A2); Objet.Create_Hero (Ob); Detail.Create_Real_Field (D1, Field_Identifier_Array.Index ("couleur")); Attribute.Put (A3, Ob, D1); Attribute.Show (A3); Objet.Create_Place (Ob); Detail.Create_Real_Field (D1, Field_Identifier_Array.Index ("description")); Attribute.Put (A4, Ob, D1); Attribute.Show (A4); Put_Line ("show vide"); Show (L); Display (L); Text_Io.New_Line; View.Create_Sentence (O, Identifier.From_String ("Ca marche !!!")); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Number (O, 2345); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Attribute (O, A1); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Attribute (O, A2); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Attribute (O, A3); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Attribute (O, A4); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); Detail.Create_Complement_Group (D1, 3); View.Create_Exit (O, D1); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); View.Create_Exits (O); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); Objet.Create_Real (Ob, Complement_Array.Index ("cuisine")); View.Create_Contents (O, Ob); View.Display (O); Text_Io.New_Line; View.Show (O); Put (L, O); Put_Line ("show plein"); Show (L); Put_Line ("display plein"); Display (L); Text_Io.New_Line; Put_Line ("show l1 vide"); Show (L1); Text_Io.New_Line; Copy (L, L1); Put (L1, O); Show (L); Put_Line ("show l1 plein"); Show (L1); Text_Io.New_Line; Put_Line ("show apres free"); Free (L); Show (L); Show (L1); end Test_View_List;
nblk1=11 nid=b hdr6=20 [0x00] rec0=19 rec1=00 rec2=01 rec3=092 [0x01] rec0=01 rec1=00 rec2=11 rec3=084 [0x02] rec0=12 rec1=00 rec2=05 rec3=024 [0x03] rec0=0f rec1=00 rec2=0e rec3=07a [0x04] rec0=04 rec1=00 rec2=0a rec3=02a [0x05] rec0=13 rec1=00 rec2=09 rec3=024 [0x06] rec0=14 rec1=00 rec2=02 rec3=068 [0x07] rec0=06 rec1=00 rec2=0f rec3=00a [0x08] rec0=12 rec1=00 rec2=03 rec3=022 [0x09] rec0=14 rec1=00 rec2=0d rec3=01a [0x0a] rec0=16 rec1=00 rec2=04 rec3=030 [0x0b] rec0=16 rec1=00 rec2=06 rec3=00c [0x0c] rec0=19 rec1=00 rec2=0c rec3=01a [0x0d] rec0=26 rec1=00 rec2=10 rec3=03e [0x0e] rec0=2e rec1=00 rec2=08 rec3=016 [0x0f] rec0=10 rec1=00 rec2=07 rec3=000 [0x10] rec0=04 rec1=00 rec2=0b rec3=000 tail 0x21748c41886504df5a7b1 0x42a00088462060003 Free Block Chain: 0xb: 0000 00 00 00 04 80 01 41 01 02 03 04 05 06 4c 29 3b ┆ A L);┆