90 Discrete Event Simulation for Health Technology Assessment
offers an End module that removes entities from the simulation. If that is all
that the Death event requires, then a single module would do the job, but to
fully implement the specications in Figure3.11 would typically require sev-
eral modules, each one carrying out some aspects of the process.
When using a general programming language, event processing is written
as a subroutine that is called from the main program at the appropriate time.
The steps diagrammed in Figure3.11are written in the applicable syntax.
Instructions that are repeatedly executed throughout a simulation (e.g., the
discounting of values in Figure3.11) can be subroutines of their own. In a
spreadsheet, i ...