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.

Appendix C. <strong>SIMSCRIPT</strong> Reference Syntax<br />

every { entity name } < comma > [ may | can ]<br />

{ has { a | an | the | some } attribute name<br />

[ ( { integer/integer | */integer | integer-integer } ) ]<br />

[ in { array | word } integer | function ]<br />

| owns { { a | an | the | some } set name } < comma ><br />

| belongs to { { a | an | the | some } set name } < comma ><br />

| has { a | an | the | some } attribute name<br />

random [ step | linear ] variable<br />

[ in { word | array } integer ]<br />

} < comma ><br />

Entity-attribute-set structure declaration. Specifies optional attribute packing, equivalences, word<br />

assignments, and functions.<br />

{ external | exogenous }<br />

{ event | process } units are<br />

{ name | integer } < comma ><br />

Logical input devices from which external event/process data will be read.<br />

{ external events | exogenous }<br />

{ events | processes } are { event name | process name } < comma ><br />

Declares the names of the events and processes which can be triggered externally.<br />

file [ the | this ] expression<br />

[ first | last | { before | after } expression ]<br />

in [ the | this ] set name [ subscript ]<br />

Places an entity in a set.<br />

319

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

Saved successfully!

Ooh no, something went wrong!