X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?a=blobdiff_plain;f=bin%2Fviewruncmd.scala;h=2c96f56ec455863f164fe6865f8198d9b9523da6;hb=f011c771176fcb272939f01ddf31c1dd267990bf;hp=c3abf26529c8772526300e72735eefa3fe871c57;hpb=43bbc274299e58d2f4a6e0b05e5366ca5e2900ae;p=clnl diff --git a/bin/viewruncmd.scala b/bin/viewruncmd.scala index c3abf26..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" ) */ @@ -26,14 +26,12 @@ 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)) +workspace.runCompiledCommands(new api.SimpleJobOwner("test", workspace.world.mainRNG, classOf[api.Observer]), workspace.compileCommands(commands)) workspace.exportView("scala.png", "PNG")