18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5. Discrete Simulation Concepts<br />

5.1 Introduction<br />

Chapters 1 through 4 of this book described the features of a general-purpose programming language<br />

which provides for the high-level description of data structures and their manipulation. Level<br />

5 of <strong>SIMSCRIPT</strong> <strong>II.5</strong> provides concepts and language features for application in the simulation of<br />

discrete systems. This chapter assumes familiarity with the aims and techniques of discrete-event<br />

simulation. It describes the features by which <strong>SIMSCRIPT</strong> <strong>II.5</strong> provides a uniquely powerful tool<br />

for aiding such systems study. The topic is described in a number of current texts. The principal<br />

text, which develops the principles of simulation using <strong>SIMSCRIPT</strong> <strong>II.5</strong> as the modelling language,<br />

is Building Simulation Models with <strong>SIMSCRIPT</strong> <strong>II.5</strong>, by E. C. Russell, published by CACI Products<br />

Company.<br />

Simulation, as described here, is the use of a numeric model of a system to study its behavior as it<br />

operates over time. Discrete-event simulation deals specifically with modelling of those systems in<br />

which the system state is deemed to change instantaneously at discrete points in time, rather than<br />

continuously. This chapter presents language concepts and features designed to aid in conceptualizing<br />

such systems and in modelling them in a computer program.<br />

5.2 Describing a System Model<br />

The basic components of a dynamic system are activities. The analysis of a supermarket operation,<br />

for example, might yield such activities as the selection of merchandise by a customer, or the checking<br />

out of goods for a customer, among others that deal with different aspects of supermarket operations.<br />

Two important characteristics of activities are: (1) that they take time, and (2) that they<br />

(potentially) change the state of a system.<br />

When constructing a simulation model, the activities must be identified and represented in a way<br />

that enables the model, when operating, to reproduce the time-dependent behavior of the system being<br />

simulated. That is, the activities must be modelled in such a way that, when each occurs, the<br />

system state changes in the proper way. This imposes requirements for (1) correctly modelling the<br />

characteristics of activities, and for (2) sequencing the simulated execution of activities, so that the<br />

order of performance of activities within a model corresponds to the order in which the same activities<br />

occur in the real system.<br />

The concepts embodied in Levels 1 through 4 are the essence of activity descriptions. Systems are<br />

described (modelled) in <strong>SIMSCRIPT</strong> <strong>II.5</strong> in the language of entities, attributes, and sets. Keeping<br />

track of simulated time and organizing the execution of subprograms through which system activities<br />

are represented are the essential functions provided by Level 5.<br />

An activity within a system is bounded by two instantaneous events: when the activity starts, and<br />

when it stops. Thus, the event is the simplest component of an activity description. The important<br />

183

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

Saved successfully!

Ooh no, something went wrong!