eame5.jpg (7446 bytes)Generic Second Generation Agent-Patch Simulator

This is a generic rebuild of the first generation agent-patch package. The decision was made to optimzed the code for readability (and stealability) as opposed to object-oriented modularity. (See Notes on the Simulators for more.)

This simulator doesn't actually do anything very interesting (unless you find the inevitable demise of cooperators interesting). It was intended as a basic platform which one could easily modify for custom applications. The other second generation simulators are based on it. 

Run The Simulator

Source Code

(Contrary to what it says in the source code, you do need a couple of extra files for it to compile. These are mostly for the queue structure that allows unlimited population size. Put either the classes or the source files where your compiler can find them.)
Source Classes
Queue.java
QueueItemAbsent.java
QueueEmpty.java
Queue.class
QueueEmpty.class
QueueItem.class
QueueItemAbsent.class