95Implementation
Somespecialized DES software provide a built-in way to do this. A terminate
time is specied as a special global variable, and when the simulation clock
reaches this value, the software stops the execution. If this function is not
provided, or if a general programming language is used, then the comparison
of the specied termination time with the time on the simulation clock must
be coded as an instruction. A convenient way to do this is to place a terminate
event on the event calendar at the desired time. This terminate event is not on
the entity-specic event lists but will be detected as the next event at the appro-
priate time and the execution will be stopped.
If the DES ends because it reaches a terminate event at the ...