18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>SIMSCRIPT</strong> <strong>II.5</strong> <strong>Programming</strong> <strong>Language</strong><br />

1 event ANALYSIS<br />

2 print 1 line thus<br />

E X A M P L E J O B S H O P S I M U L A T I O N<br />

3<br />

4 skip 2 output lines<br />

5 print 1 line with LAST.REPORT.DATE * HOURS.V,<br />

6 TIME.V * HOURS.V thus<br />

REPORTING PERIOD<br />

***.* HRS. TO ***.* HRS.<br />

7<br />

8 skip 1 output line<br />

9 print 2 lines with NO.OF.JOBS.COMPLETED,<br />

10 AVG.CYCLE.TIME * HOURS.V thus<br />

JOBS COMPLETED DURING PERIOD : ***<br />

AVERAGE COMPLETION TIME :<br />

*.** HRS.<br />

11<br />

12 call DETAILED.REPORT<br />

13 let LAST.REPORT.DATE = TIME.V<br />

14 reset totals of CYCLE.TIME<br />

15 for each PRODUCTION.CENTER<br />

16 reset totals of N.Q.PRODUCTION.CENTER<br />

17<br />

18 end<br />

This event is initiated at times specified in the input data shown below.<br />

It prints the report heading, and three lines of statistics as shown on the sample report. Analysis<br />

then calls DETAILED REPORT, for completion of the report. The last few lines reset the statistics<br />

for the next reporting time.<br />

Two requests for ⎧ ANALYSIS 0 8 0<br />

analysis and reports. ⎨ ANALYSIS 1 0 0<br />

One request at 8 hours ⎩<br />

and the other at 1 day.<br />

Format of time is<br />

days hours minutes (d h m)<br />

Data read by ANALYSIS<br />

244

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!