o Added a heatbugs-like JavaScript model

I don't know if you're interested in this.  But the sketches/jsmodel.html didn't go quite far enough for me.  My playing around lead me to this model and I thought it might be helpful for others.
On 10/30/2014 02:42 PM, Benny Lichtner wrote:
> In models/pherbugs.html:
> 
>> +          this.patches[pNdx].color = [0,0,0];
>> +          this.patches[pNdx].pheromone = 0;
>> +        }
>> +        this.agents.create(this.population);
>> +        for (var aNdx=0; aNdx < this.agents.length; aNdx++) {
>> +          var pt = this.patches.randomPt();
>> +          this.agents[aNdx].setXY(pt[0],pt[1]);
>> +          //this.agents[aNdx].setXY(0,0);
>> +          this.agents[aNdx].color = [255,255,0];
>> +          this.agents[aNdx].idealPher = u.randomInt(this.maxIdealPher-this.minIdealPher)+this.minIdealPher;
>> +          this.agents[aNdx].outputPher = u.randomInt(this.maxOutputPher-this.minOutputPher)+this.minOutputPher;
>> +          this.agents[aNdx].unhappiness = 0;
>> +        }
>> +        console.log("patches: " + this.patches.length + " agents: " + this.agents.length);
>> +      };
>> +      ABM.Model.prototype.step = function () {
> 
> Do you think you could throw in some comments here to explain what's going on in step? Maybe after each conditional statement? For instance, I think it would be good to explain the meanings of |happiness|, |unhappiness|, and |pheromone|.

Yes, that's a great idea.  I'll make the changes soon.

-- 
glen e. p. ropella, 971-255-2847, http://tempusdictum.com