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

⟦08e5e4989⟧ TextFile

    Length: 2427 (0x97b)
    Types: TextFile
    Names: »B«

Derivation

└─⟦149519bd4⟧ Bits:30000546 8mm tape, Rational 1000, !projects 93-07-13
    └─ ⟦124ff5788⟧ »DATA« 
        └─⟦this⟧ 
└─⟦f64eaa120⟧ Bits:30000752 8mm tape, Rational 1000, !projects 93 02 16
    └─ ⟦6f12a12be⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
with Tuple;

with Etat_D, Nombre_D, Point_D;

package body Bench_Actions_D is

    Max_Point_D : constant := 10;
    Max_Iter    : constant := 100;

------------------------------------------------------------------------------
    procedure Creation_Objets_Action (The_Tuple : Tuple.Object) is
        Un_Etat_D   : Etat_D.Object;
        Un_Nombre_D : Nombre_D.Object;
        Un_Point_D  : Point_D.Object;
    begin  
        Tuple.Split (The_Tuple, Un_Etat_D, Un_Nombre_D);
        Nombre_D.Change (Un_Nombre_D,
                         With_Value => Nombre_D.Value (Un_Nombre_D) + 1);
        Un_Point_D := Point_D.Add (With_X => Nombre_D.Value (Un_Nombre_D),
                                   With_Y => Nombre_D.Value (Un_Nombre_D) * 2);
    end Creation_Objets_Action;


------------------------------------------------------------------------------
    procedure Fin_Creation_Action (The_Tuple : Tuple.Object) is
        Un_Etat_D : Etat_D.Object;
    begin
        Tuple.Split (The_Tuple, Un_Etat_D);
        Etat_D.Change (Un_Etat_D, With_Value => 1);
    end Fin_Creation_Action;


------------------------------------------------------------------------------
    procedure Recherche_Objet_Action (The_Tuple : Tuple.Object) is
        Un_Etat_D   : Etat_D.Object;
        Un_Nombre_D : Nombre_D.Object;
        Un_Point_D  : Point_D.Object;
    begin
        Tuple.Split (The_Tuple, Un_Etat_D, Un_Nombre_D, Un_Point_D);
        Nombre_D.Change (Un_Nombre_D,
                         With_Value => Nombre_D.Value (Un_Nombre_D) - 1);
        -- Text_Io.Put_Line ("Rule RECHERCHE_OBJET  : point x = " &
        --                   Natural'Image (point_d.X (Un_point_d)) & " / y = " &
        --                   Natural'Image (point_d.Y (Un_point_d)));
    end Recherche_Objet_Action;


------------------------------------------------------------------------------
    procedure Iteration_Action (The_Tuple : Tuple.Object) is
        Un_Etat_D   : Etat_D.Object;
        Un_Nombre_D : Nombre_D.Object;
    begin
        Tuple.Split (The_Tuple, Un_Etat_D, Un_Nombre_D);
        Nombre_D.Change (Un_Nombre_D, With_Value => Max_Point_D);
        Etat_D.Change (Un_Etat_D, With_Value => Etat_D.Value (Un_Etat_D) + 1);
        -- Text_Io.Put_Line ("Rule ITERATION  : FIN   etat_d = " &
        --                   Natural'Image (etat_d.Value (Un_etat_d)));
    end Iteration_Action;

end Bench_Actions_D;