Swarm and Object-oriented programming

Modelling languageSwarm equivalent
Agent (a bacterium) Object
Bacillus
State (volume of the bacteria) Instance variables
int vol
Behaviors (metabolic behavior)Methods
Bacillus.metabolize()
Environment for agents (the surrounding substrate>)`global' object accessed by all objects
LandRoot