


    MAG - Metabolizing Agents simulator

        designed by Peter Zvirinsky 1998-1999, (zvirinsk@yahoo.com)



Here is code of my simulator. It's written for Swarm-1.4.1 .

It's pretty nice simulator, I hope it will help you to see how to use 
some swarm functions. I'd say the program has all basic features that good simulator needs 
for making experiments:
    - saving random seed generator status
    - saving screenshots
    - saving graphs datas
    - viewing saved datas by my ViewerSwarm additional program
    - running in batch mode
    - saving parameters set in model.setup, observer.setup or batchObserver.setup    
 
There are still some commented out lines that I used for debugging. They are not deleted 
because they can be useful if you want to see the data, too.

To run with saving graph data you need to create directory "data" in the directory 
of Mag program.


To know more about what is simulator simulating, check database of screenshots and 
parameter sets visit:
http://www.ifi.ntnu.no/~zvirinsk/projects.htm

Compile modes :  
	    "make CPPFLAGS=-Dxxxxx"
	    
	    none = FAT  (just type "make")
			- when mags wants is reproducing and has no space, 
			  it don't reproduce, so it continues growing 
			  => Mags growth is unlimited
			   
	    NOFAT1 	(type "make CPPFLAGS=-DNOFAT1")
			- when reproducing and no space it 'thows out' half of biomass, 
			  and go on living
			  
	    NOFAT2 	(type "make CPPFLAGS=-DNOFAT2")
			- when reproducing and no space it replace itself with 1 kid,
			  so new Phenotype (mutated) is applied and biomass is half of parent 



Peter Zvirinsky  December 29, 1999



Paul Johnson <pauljohn@ku.edu> Nov 18, 2002.

Updated code to run with Swarm-2.1.141.
Since this is under GPL, I'm making the changes available freely.


