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.

properties of an event are: (1) it occurs at some instant of time, and (2) the occurrence is instantaneous.<br />

Figure 5-1 illustrates an activity delimited by two events.<br />

activity start<br />

machining activity<br />

activity end<br />

start machining.<br />

'start event' at time t1<br />

stop machining.<br />

'stop event' at time t2<br />

Figure 5-1. An Activity Delimited by Two Events<br />

To model an activity, using events, those events that delimit the activity must be identified. Any<br />

necessary tests and conditional or unconditional state changes associated with the beginning or end<br />

of the activity may be specified for each of these events. The duration of the activity may be specified<br />

by scheduling the start event for a certain instant in simulated time, followed by the stop event<br />

scheduled for some later time. When the initial event is called into activation, it alters the system<br />

state in the specified manner. It may indeed be responsible for scheduling the activity terminating<br />

event. After these state changes are performed, control is passed back to the <strong>SIMSCRIPT</strong> <strong>II.5</strong><br />

scheduling mechanism. After the apparent passage of the appropriate simulation time, the second<br />

event, the stop event, is executed, performing the state-changes associated with the termination of<br />

the activity. Either of these events may involve the scheduling of further events, perhaps of different<br />

types, at suitable intervals in simulation time.<br />

The changes in a system that occur when an activity starts or stops, i.e., in the instant of time an<br />

activity begins or ends, are associated with events rather than activities. As these events comprise<br />

all significant system state-changes, the passage of time between events need not be accurately followed.<br />

Rather the passage of simulation time is driven by the sequence of events, advancing always<br />

to the time of the next significant event. This is the crucial difference between discrete-event<br />

and continuous-time simulation. In discrete-event simulation, state-changes take place at specified<br />

points in time at which interactions between system components occur. In continuous-time simulation,<br />

interactions and state-changes take place continuously. To model continuous changes, techniques<br />

such as numeric integration must be employed. The choice of simulation methodology<br />

depends on the characteristics of the system under study, and the way in which it must be understood.<br />

184

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

Saved successfully!

Ooh no, something went wrong!