Trailing-Edge
-
PDP-10 Archives
-
decuslib20-04
-
decus/20-0135/comp/qsim.sim
There are 4 other files named qsim.sim in the archive. Click here to see a list.
00100 BEGIN OPTIONS(/L); COMMENT display queue simulation;
00149 EXTERNAL TEXT PROCEDURE frontstrip, upcase, tmpin, conc;
00201 EXTERNAL TEXT PROCEDURE scanto, storbokstav, compress;
00300 EXTERNAL CHARACTER PROCEDURE insinglechar, fetchar;
00400 EXTERNAL PROCEDURE depchar, forceout, outstring, outche;
00500 EXTERNAL BOOLEAN PROCEDURE dotypeout, tmpout, meny, rescan;
00600 EXTERNAL INTEGER PROCEDURE trmop, gettab, checkreal, checkint;
00625 EXTERNAL INTEGER PROCEDURE scanint, iondx;
00650 EXTERNAL INTEGER PROCEDURE search, sscan;
00700 EXTERNAL REAL PROCEDURE clocktime;
00800 EXTERNAL PROCEDURE echo, abort, outchr, getvistaparameters;
00850 EXTERNAL REF (infile) PROCEDURE findinfile;
00900 EXTERNAL CLASS vista, form, termty;
01000 INTEGER width, height, open_duration, open_time, close_time,
01100 terminal_type, english;
01200 BOOLEAN monitorecho, sim_started;
01300 TEXT message_total, message_arrival, message_between,
01400 message_wait, terminal_message;
01500
01600 PROCEDURE inita_global;
01700 BEGIN CHARACTER c;
01750 getvistaparameters(width,height,terminal_type,terminal_message);
01900 monitorecho:= FALSE;
02000 open_duration:= 240; open_time:= 480;
02100 close_time:= open_time+open_duration;
02200 IF english = 0 THEN
02300 BEGIN
02400 ask: outtext("Swedish or English?"); outimage;
02500 inimage; c:= inchar;
02600 IF c = 'E' OR c = 'e' THEN english:= 1
02700 ELSE IF c = 'S' OR c = 's' THEN english := -1
02800 ELSE GOTO ask;
02900 message_total:- copy(IF english = 1 THEN
03000 "During the day" ELSE "Tot under dagen");
03100 message_arrival:- copy(IF english = 1 THEN
03200 "Patient arrival" ELSE "N{r pat. kommer");
03300 message_between:- copy(IF english = 1 THEN
03400 "Between 0 and 999" ELSE "Mellan 0 och 999");
03500 message_wait:- copy(IF english = 1 THEN
03600 "Idling cost" ELSE "V{ntekostnad");
03700 END;
03800 END;