A Simple Discrete-Event Simulation: Part 22

I found it necessary to go back and automate the definition and display of blocks of values associated with different elements in a simulation. I’ve based it on a global canvas and will rewrite everything else accordingly. This will make updating the status of a simulation a lot simpler. One thing I may still add is a line or some other type of visual connection between the block of values and the element to which it refers. I note that each one of these things can take up a fair amount of space, so in the long run they should mostly be used for debugging or detailed monitoring.

Here’s the requisite code.

The output looks like this:

This entry was posted in Simulation and tagged , . Bookmark the permalink.

Leave a Reply