diff --git a/test/test-simu2.js b/test/test-simu2.js new file mode 100644 index 0000000..09f1776 --- /dev/null +++ b/test/test-simu2.js @@ -0,0 +1,289 @@ +/* + SEJAM2 Demo: Vehicle agents on streets + 1. Physical and computational agents + 2. Netlog API und Patchworld + 3. Resources (streets) +*/ + +function world() { + this.modelSim=null; + this.children=[]; + this.streets=[]; + + this.act = { + init: function () { + var self=this, row , patches, i,j,s,st; + this.modelSim = simu.model(); + this.streets=net.ask('resources-street','*'); + patches = net.ask('patches','*'); + for(s=0;s + } + } +}