Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Runs NetLogo commands and waits for them to complete.
Runs NetLogo commands and waits for them to complete.
The command or commands to run
org.nlogo.api.CompilerException
if the code fails to compile
org.nlogo.api.LogoException if the code fails to run
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Not implemented.
Not implemented.
Get a snapshot of the 2D view.
Get a snapshot of the 2D view.
Get a snapshot of the 2D view, using an existing BufferedImage object.
Halts all running NetLogo code in this workspace.
Halts all running NetLogo code in this workspace.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Has a model been opened in this workspace?
Opens a model stored in a file.
Opens a model stored in a file.
the path (absolute or relative) of the NetLogo model to open.
Opens a model stored in a string.
Opens a model stored in a string. Can only be called once per instance of HeadlessWorkspace
The complete model, including widgets and so forth, in the same format as it would be stored in a file.
Opens a model stored in a string
Opens a model stored in a string
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Runs a NetLogo reporter.
Runs a NetLogo reporter.
The reporter to run
the result reported; may be of type java.lang.Integer, java.lang.Double,
java.lang.Boolean, java.lang.String, org.nlogo.api.LogoList,
org.nlogo.api.Agent, AgentSet, or Nobody
org.nlogo.api.CompilerException
if the code fails to compile
org.nlogo.api.LogoException if the code fails to run
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only. Called from job thread.
Kills all turtles, clears all patch variables, and makes a new patch grid.
Kills all turtles, clears all patch variables, and makes a new patch grid.
If true, don't send anything to standard output.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
Internal use only.
The primary class for headless (no GUI) operation of NetLogo.
You may create more than one HeadlessWorkspace object. Multiple instances can operate separately and independently. (Behind the scenes, this is supported by creating a separate thread for each instance.)
When you are done using a HeadlessWorkspace, you should call its dispose() method. This will shut down the thread associated with the workspace and allow resources to be freed.
See the "Controlling" section of the NetLogo User Manual for example code.
Don't try to use the constructor yourself; use HeadlessWorkspace.newInstance instead.