X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fviewruncmd.scala;h=fccc2ea4cadbd8533c55f65a7fdaf53db8908901;hp=c3abf26529c8772526300e72735eefa3fe871c57;hb=b018550;hpb=daa3b99095a3219506e930c7dd684bfbab4cf107 diff --git a/bin/viewruncmd.scala b/bin/viewruncmd.scala index c3abf26..fccc2ea 100755 --- a/bin/viewruncmd.scala +++ b/bin/viewruncmd.scala @@ -26,12 +26,10 @@ import collection.JavaConversions._ System.out.println("----") val workspace = HeadlessWorkspace.newInstance workspace.silent = true -workspace.openFromSource(url2String("file:resources/empty.nlogo")) +workspace.openFromSource(url2String("file:resources/empty55.nlogo")) val commands = io.Source.stdin.getLines.mkString("\n") -workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, api.AgentKind.Observer), workspace.compileCommands("resize-world -5 5 -5 5", api.AgentKind.Observer)) - workspace.mainRNG.setSeed(15) workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, api.AgentKind.Observer), workspace.compileCommands(commands, api.AgentKind.Observer))