26.08.2013 Views

3.1 MB - Evernote

3.1 MB - Evernote

3.1 MB - Evernote

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.

Validation of the Parallel Simulator<br />

The output log for this simulation model can be found in Appendix F. A comparison of<br />

the original simulation model file and the in memory object structure representation that<br />

was output by the simulator shows that they are equivalent and that the parser correctly<br />

parsed all lines of the simulation model.<br />

Validation 1.2<br />

The simulation model for this validation is based on the earlier simulation model but all<br />

optional elements of the model were removed.<br />

STORAGE Storage1<br />

GENERATE<br />

ENTER Storage1<br />

ADVANCE<br />

LEAVE Storage1<br />

TRANSFER Label1<br />

TERMINATE<br />

PARTITION Partition2<br />

Label1 QUEUE Queue1<br />

DEPART Queue1<br />

SEIZE Facility1<br />

RELEASE Facility1<br />

TERMINATE<br />

Simulation model file model_validation1.2.gps<br />

As described this simulation model tests the parser regards setting default values for<br />

optional elements and parameters. Comparing the simulation model file to<br />

corresponding output log in Appendix F it can be found that the parser automatically<br />

created a new partition before parsing the first line of the model so that the in memory<br />

representation of the model contains two partitions (see line 2 of output log). The<br />

default name given to this partition by the parser is ‘Partition 1’ (see line 6 of output<br />

log). Line 9 shows that the Storage size was set to its maximum value of 2147483647.<br />

The GENERATE block at line 10 was parsed with all its parameters set to its default<br />

values as described in Appendix A. This also applies to the ADVANCED block at line<br />

12 and the TERMINATE blocks at line 15 and 27 of the output log. The usage count of<br />

the ENTER and LEAVE block at the lines 11 and 13 were set to the expected default<br />

value of 1 and the TRANSFER block at line 14 of the output log also has the default<br />

transfer probability of 1 so that all Transactions would be transferred to the specified<br />

77

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

Saved successfully!

Ooh no, something went wrong!