85Implementation
by the software on the event calendar. It then advances the simulation clock to
the time of the next event and initiates its processing. That event may modify
the times—and thus the ordering—of events already on the list or may add
new ones to the event calendar. The software takes care of these changes and
removes the just-processed event from the list.
If an event’s time is beyond the end of the time horizon or after an event that
removes the entity from the simulation (e.g., death), then that event will never
be processed. This can be a handy way to keep an event on the entity-level
list in case it is needed, but making sure it won’t process until it makes sense.
For example, if a patient stops treatment, then the time f ...