Hi Chris,
If you are running a NetLogo 3D model you can just use NetLogo_Console
For example, on my MacOS system in the terminal
cd /Applications/NetLogo 6.4.0
./NetLogo_Console --headless \
--3D \
--model "models/3D/Sample Models/GasLab/GasLab Free Gas 3D.nlogo3d" \
--experiment "100 runs" \
--table -
You can find more information about using the NetLogo_Console in the documentation.
If you need to use the Controlling API let us know.
- Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
netlogo-deve...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/netlogo-devel/1da7e1f3-6188-43e7-bcb9-d015c520d5e0n%40googlegroups.com.
Hi
You should put the NetLogo directory that has the jars in your classpath
For MacOS that is
java -classpath "/Applications/NetLogo 6.4.0/app/*"
If you use sbt as your build system you can add the contents of attached build.sbt file to your current one to pull in the required jar files.
You could make adjustments if you use Maven, Gradle or some other build tool.
Let me know if this works for you.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/1ebd63e3-17ab-4096-9b6c-418f16cbd540n%40googlegroups.com.
Hi Chris,
Just in case it might be helpful for you to know – we introduced a number of enhancements to BehaviorSpace in NetLogo 6.4.
You might find the following to be of interest.
Pre experiment commands: Commands can be run before the experiment begins.
Post experiment commands: Commands can be run after the experiment ends.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/1ebd63e3-17ab-4096-9b6c-418f16cbd540n%40googlegroups.com.
java -classpath java -cp "/Users/chrisperumal/Documents/GitHub/3D-CeA-Model-Online/backend/lib/*" Example2.java
Can't find extension: csv at position 12 in
at org.nlogo.core.ErrorSource.signalError(ErrorSource.scala:11)
at org.nlogo.workspace.ExtensionManager.importExtension(ExtensionManager.scala:180)
at org.nlogo.parse.StructureParser$.$anonfun$parsingWithExtensions$1(StructureParser.scala:74)
at org.nlogo.parse.StructureParser$.$anonfun$parsingWithExtensions$1$adapted(StructureParser.scala:68)
at scala.collection.immutable.List.foreach(List.scala:431)
at org.nlogo.parse.StructureParser$.parsingWithExtensions(StructureParser.scala:68)
at org.nlogo.parse.StructureParser$.parseSources(StructureParser.scala:33)
at org.nlogo.parse.NetLogoParser.basicParse(NetLogoParser.scala:17)
at org.nlogo.parse.NetLogoParser.basicParse$(NetLogoParser.scala:15)
at org.nlogo.parse.FrontEnd$.basicParse(FrontEnd.scala:10)
at org.nlogo.parse.FrontEndMain.frontEnd(FrontEnd.scala:26)
at org.nlogo.parse.FrontEndMain.frontEnd$(FrontEnd.scala:25)
at org.nlogo.parse.FrontEnd$.frontEnd(FrontEnd.scala:10)
at org.nlogo.compile.CompilerMain$.compile(CompilerMain.scala:47)
at org.nlogo.compile.Compiler.compileProgram(Compiler.scala:54)
at org.nlogo.headless.HeadlessModelOpener.openFromModel(HeadlessModelOpener.scala:51)
at org.nlogo.headless.HeadlessWorkspace.openModel(HeadlessWorkspace.scala:535)
at org.nlogo.headless.HeadlessWorkspace.open(HeadlessWorkspace.scala:502)
at org.nlogo.api.Controllable.open(Controllable.scala:19)
at Example2.main(Example2.java:7)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.execute(SourceLauncher.java:264)
at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.run(SourceLauncher.java:153)
at jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher.main(SourceLauncher.java:78)