spades
.
doEvent(sim, debug)
"doEvent"(sim, debug)
"doEvent"(sim)
simList
simulation object.debug=FALSE
).simList
object.
Based on code from chapter 7.8.3 of Matloff (2011): "Discrete event simulation". Here, we implement a simulation in a more modular fashion so it's easier to add submodules to the simulation. We use S4 classes and methods, and use `data.table` instead of `data.frame` to implement the event queue (because it is much faster).