Creating a population of agents
- Create collection objects (Grid2d, List) to keep track of agents
- In for loop create each instance & initialize
- Then put each agent on list,grid
bugList=[List create: [self getZone]];
for(y=0;y<worldYSize;y++)
for(x=0;x<worldXSize;x++)
if([uniformDblRand .] <=bugDensity){
aBug = [Bug createBegin: self];
[world putObject: aBug atX: x Y: y];