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.

Advanced Topics<br />

Attributes:<br />

HIGH<br />

LOW<br />

. .<br />

. .<br />

. .<br />

word N<br />

HIGH and LOW are synonyms. Both are pointers to the same attribute array. This is an array because<br />

the background dimensionality is set to 1.<br />

(4) Declaration:<br />

normally mode is integer, dimension is 1<br />

the system has a ( HIGH(1/4), LOW(2/2) )<br />

Attributes:<br />

HIGH word 1 unused LOW<br />

word 2<br />

. .<br />

. .<br />

. .<br />

word N<br />

The elements of the attribute arrays are packed in the same locations as of a shared data array. The<br />

second quarter of each data word is unused.<br />

Intrapacking is used to compress array storage of subscripted system attributes and attributes of permanent<br />

entities. The intrapacking notation (*/2) specifies that two distinct element values are to<br />

be packed in each storage location. That is, the array in which the elements are stored is compressed.<br />

For example, the declarations:<br />

normally dimension is 1<br />

the system has a LIST(*/2)<br />

and the statement reserve LIST(*) as 10 specifies and allocates storage to LIST as shown in<br />

figure 6-11.<br />

267

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

Saved successfully!

Ooh no, something went wrong!