X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=clnl;a=blobdiff_plain;f=bin%2Fviewruncmd.scala;h=2c96f56ec455863f164fe6865f8198d9b9523da6;hp=fccc2ea4cadbd8533c55f65a7fdaf53db8908901;hb=9eef8ecae4fad1e01413807ebc80ae45b5990706;hpb=1dd12dd5293763a49a8f1d78d86f82aa5a4ed5fe diff --git a/bin/viewruncmd.scala b/bin/viewruncmd.scala index fccc2ea..2c96f56 100755 --- a/bin/viewruncmd.scala +++ b/bin/viewruncmd.scala @@ -7,12 +7,12 @@ exec scalas "$0" -q "$@" logLevel in Global := Level.Error - scalaVersion := "2.10.3" + scalaVersion := "2.9.2" libraryDependencies ++= Seq( "asm" % "asm-all" % "3.3.1", "org.picocontainer" % "picocontainer" % "2.13.6", - "org.nlogo" % "NetLogoHeadless" % "6.0.0-M3" from "http://ccl.northwestern.edu/devel/6.0.0-M3/NetLogoHeadless.jar" + "org.nlogo" % "NetLogo" % "5.2.0" from "http://ccl.northwestern.edu/netlogo/5.2.0/NetLogo.jar" ) */ @@ -31,7 +31,7 @@ workspace.openFromSource(url2String("file:resources/empty55.nlogo")) val commands = io.Source.stdin.getLines.mkString("\n") workspace.mainRNG.setSeed(15) -workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, api.AgentKind.Observer), workspace.compileCommands(commands, api.AgentKind.Observer)) +workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, classOf[api.Observer]), workspace.compileCommands(commands)) workspace.exportView("scala.png", "PNG")