OSDN Git Service

[dennco] re-working the doTick process flow. The work is still in progress.
[dennco/dennco.git] / dennco-jstestapp1 / layer2_1.js
1 function doTick(time)   
2 {
3     this.cell.axonValue = this.cell.receptors[this.priorityReceptor1] * 0.6 + this.cell.receptors[this.priorityReceptor2] * 0.4;
4 }
5
6 function doInit()
7 {
8     print(this.cell.name + " -> doInit() \n");
9     print(this.cell.name + "            :  priority1:" + this.priorityReceptor1 + "\n");
10     print(this.cell.name + "            :  priority2:" + this.priorityReceptor2 + "\n");
11 }