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

⟦88c0a1838⟧ TextFile

    Length: 1204 (0x4b4)
    Types: TextFile
    Names: »B«

Derivation

└─⟦a7d1ea751⟧ Bits:30000550 8mm tape, Rational 1000, !users!projects 94_04_11
    └─ ⟦129cab021⟧ »DATA« 
        └─⟦this⟧ 
└─⟦2f6cfab89⟧ Bits:30000547 8mm tape, Rational 1000, !projects 94-01-04
    └─ ⟦d65440be7⟧ »DATA« 
        └─⟦this⟧ 

TextFile

with Text_Io;
package body Agents is
    task body Agent is

        The_Period : Duration;
        The_Count : Natural;
        Next_Operation : Calendar.Time;
        Done : Boolean := False;  
    begin
        loop
            accept Cycle (Period : Duration; Count : Natural) do
                The_Period := Period;
                The_Count := Count;
            end Cycle;  
            Next_Operation := Calendar.Clock;
            loop
                Next_Operation := Calendar."+" (Next_Operation, The_Period);
                Text_Io.Put_Line ("coucou");   -- operate
                select
                    accept Suspend;
                    accept Resume;
                    Next_Operation := Calendar.Clock;
                or
                    accept Stop do
                        Done := True;
                    end Stop;
                or
                    delay Calendar."-" (Next_Operation, Calendar.Clock);
                end select;
                exit when Done or The_Count = 1;
                if The_Count /= For_Ever then
                    The_Count := The_Count - 1;
                end if;
            end loop;
        end loop;
    end Agent;
end Agents;