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 preamble<br />

2 normally mode is integer<br />

3<br />

4 resources<br />

5 every PRODUCTION.CENTER has a MACHINE.TYPE<br />

6 define MACHINE.TYPE as a text variable<br />

7<br />

8 processes<br />

9 every JOB has an ARRIVAL.TIME<br />

10 and owns a ROUTING.SET<br />

11 define ARRIVAL.TIME as a real variable<br />

12<br />

13 temporary entities<br />

14 every task has<br />

15 a TASK.DOER<br />

16 a TASK.DURATION<br />

17 and belongs to a ROUTING.SET<br />

18 define TASK.DURATION as a real variable<br />

19 define TASK.DOER as an integer variable<br />

20<br />

21 define ROUTING.SET as a fifo set<br />

22<br />

23 external events are JOBINIT and ANALYSIS<br />

24 external event unit is 1<br />

25<br />

26 define CYCLE.TIME as a real variable<br />

27<br />

28 accumulate AVG.QUEUE.LENGTH as the average<br />

29 of N.Q.PRODUCTION.CENTER<br />

30<br />

31 tally AVG.CYCLE.TIME as the average,<br />

32 and NO.OF.JOBS.COMPLETED as the number of CYCLE.TIME<br />

33<br />

34 define LAST.REPORT.DATE as a real variable<br />

35<br />

36 end<br />

The Preamble contains the destination of the objects involved in the simulation — its processes and<br />

resources, its entities, attributes, and sets, and the required statistics.<br />

Jobs passing through the shop are modelled by the JOB process.<br />

The route each job follows through the shop is defined by an ordered list of TASK’s called the<br />

ROUTING.SET. Each TASK is a temporary entity with attributes defining the required machine (DOER)<br />

and processing time (DURATION).<br />

Desired statistics are specified non-procedurally, with accumulate and tally statements.<br />

240

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

Saved successfully!

Ooh no, something went wrong!