Xholon - Stupid Model 10 - Sorted Agent Actions

What is it

This is the 10th in a series of 16 "Stupid Models". It's intended as a starting point for learning how to develop grid and agent-based models using Xholon. It can also be used to compare Xholon with other agent-based modeling tools that have also implemented the Stupid Model series.

This model shows how to sort the bugs each time step, so they will be invoked in descending size order.

Xholon features

Xholon implements this through a change in the QueueStupidModel10.java class. It now sorts rather than shuffles. Each bug implements the Comparable interface, with a compareTo() method.

Credits and references

Railsback, S., Lytinen, S., Grimm, V. (2005). StupidModel and Extensions: A Template and Teaching Tool for Agent-based Modeling Platforms.

Swarm page

Author's page