From 6562620e3d3e301f595d06d584c21e4ff543e9a6 Mon Sep 17 00:00:00 2001 From: sbosse Date: Tue, 27 Aug 2024 00:15:55 +0200 Subject: [PATCH] Tue 27 Aug 00:14:56 CEST 2024 --- test/test-simu2.js | 289 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 test/test-simu2.js 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 + } + } +}