class HeadlessWorkspace extends AbstractWorkspaceScala with Controllable with WorldLoaderInterface with ViewSettings

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.

Source
HeadlessWorkspace.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HeadlessWorkspace
  2. WorldLoaderInterface
  3. Controllable
  4. AbstractWorkspaceScala
  5. Extensions
  6. Exporting
  7. Plotting
  8. ExtendableWorkspaceMethods
  9. HubNetManager
  10. Components
  11. Traceable
  12. BehaviorSpaceInformation
  13. Compiling
  14. Procedures
  15. ModelTracker
  16. Evaluating
  17. Checksums
  18. Benchmarking
  19. APIConformant
  20. AbstractWorkspace
  21. HubNetWorkspaceInterface
  22. CompilerServices
  23. LogoThunkFactory
  24. ExtendableWorkspace
  25. EditorWorkspace
  26. Workspace
  27. JobManagerOwner
  28. Workspace
  29. Controllable
  30. ViewSettings
  31. RandomServices
  32. LiteralParser
  33. ImporterUser
  34. WorldResizer
  35. AnyRef
  36. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HeadlessWorkspace(_world: World with CompilationManagement, compiler: PresentationCompilerInterface, renderer: RendererInterface, aggregateManager: AggregateManagerInterface, hubNetManagerFactory: HubNetManagerFactory)

Type Members

  1. abstract class FileImporter extends AnyRef
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val _behaviorSpaceExperimentName: String
    Definition Classes
    BehaviorSpaceInformation
  5. val _behaviorSpaceRunNumber: Int
    Definition Classes
    BehaviorSpaceInformation
  6. val _modelFileName: String

    name of the currently loaded model.

    name of the currently loaded model. Will be null if this is a new (unsaved) model. To get a version for display to the user, see modelNameForDisplay(). This is NOT a full path name, however, it does end in ".nlogo".

    Definition Classes
    ModelTracker
  7. def addComponent[A <: AnyRef](componentClass: Class[A], component: A): Unit
    Definition Classes
    Components
  8. def addCustomShapes(filename: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  9. def addJobFromJobThread(job: Job): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  10. def addLifecycle[A <: AnyRef](lifecycle: ComponentLifecycle[A]): Unit
    Definition Classes
    Components
  11. val aggregateManager: AggregateManagerInterface
    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def attachModelDir(filePath: String): String

    attaches the current model directory to a relative path, if necessary.

    attaches the current model directory to a relative path, if necessary. If filePath is an absolute path, this method simply returns it. If it's a relative path, then the current model directory is prepended to it. If this is a new model, the user's platform-dependent home directory is prepended instead.

    Definition Classes
    ExtendableWorkspaceMethods
    Annotations
    @throws( ... )
  14. def auxRNG(): MersenneTwisterFast
    Definition Classes
    AbstractWorkspaceRandomServices
  15. def beep(): Unit
    Definition Classes
    Workspace
  16. def behaviorSpaceExperimentName(name: String): Unit
    Definition Classes
    BehaviorSpaceInformation
  17. def behaviorSpaceExperimentName: String
    Definition Classes
    BehaviorSpaceInformation
  18. def behaviorSpaceRunNumber(n: Int): Unit
    Definition Classes
    BehaviorSpaceInformation
  19. def behaviorSpaceRunNumber: Int
    Definition Classes
    BehaviorSpaceInformation
  20. def benchmark(minTime: Int, maxTime: Int): Unit
    Definition Classes
    Benchmarking
  21. def breathe(): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  22. def breathe(context: Context): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  23. def calculateHeight(worldHeight: Int, patchSize: Double): Int
  24. def calculateWidth(worldWidth: Int, patchSize: Double): Int
  25. def changeTopology(wrapX: Boolean, wrapY: Boolean): Unit
  26. def checkCommandSyntax(source: String): Unit
    Definition Classes
    Compiling
    Annotations
    @throws( classOf[CompilerException] )
  27. def checkReporterSyntax(source: String): Unit
    Definition Classes
    Compiling
    Annotations
    @throws( classOf[CompilerException] )
  28. def clearAll(): Unit
  29. def clearDrawing(): Unit
    Definition Classes
    HeadlessWorkspaceAbstractWorkspaceWorkspace
  30. def clearLastLogoException(): Unit
    Definition Classes
    Evaluating
  31. def clearOutput(): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceWorkspace
  32. def clearTicks(): Unit
    Definition Classes
    AbstractWorkspaceScalaWorkspace
  33. def clearTurtles(): Unit
  34. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  35. def command(source: String): Unit

    Runs NetLogo commands and waits for them to complete.

    Runs NetLogo commands and waits for them to complete.

    source

    The command or commands to run

    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
    Exceptions thrown

    org.nlogo.api.LogoException if the code fails to run

    org.nlogo.core.CompilerException if the code fails to compile

  36. def compileCommands(source: String, agentClass: AgentKind): Procedure
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  37. def compileCommands(source: String): Procedure
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  38. def compileForRun(source: String, context: Context, reporter: Boolean): Procedure
    Definition Classes
    AbstractWorkspaceWorkspace
  39. def compileReporter(source: String): Procedure
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  40. val compiler: PresentationCompilerInterface
  41. var compilerTestingMode: Boolean

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspaceScalaExtendableWorkspaceWorkspace
  42. val completedActivations: WeakHashMap[Activation, Boolean]
    Definition Classes
    APIConformant
  43. def computePatchSize(width: Int, numPatches: Int): Double
  44. def convertToNormal(): String

    instantly converts the current model to ModelTypeJ.NORMAL.

    instantly converts the current model to ModelTypeJ.NORMAL. This is used by the edit command to enable quick saving of library models. It shouldn't be used anywhere else.

    Definition Classes
    ModelTracker
    Annotations
    @throws( classOf[IOException] )
  45. def currentPlot(plot: String): Unit
    Definition Classes
    Plotting
  46. val defaultOwner: SimpleJobOwner
    Definition Classes
    Evaluating
  47. def dialect: Dialect
    Definition Classes
    Compiling
  48. def dispose(): Unit

    Shuts down the background thread associated with this workspace, allowing resources to be freed.

    Shuts down the background thread associated with this workspace, allowing resources to be freed.

    Definition Classes
    ComponentsAbstractWorkspaceWorkspace
    Annotations
    @throws( classOf[InterruptedException] )
  49. def doImport(importer: FileImporter): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  50. def doImport(importer: BufferedReaderImporter): Unit
    Definition Classes
    AbstractWorkspace
  51. def drawSpotlight: Boolean
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  52. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  54. def evaluateCommands(owner: JobOwner, source: String, agents: AgentSet, waitForCompletion: Boolean): Unit
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  55. def evaluateCommands(owner: JobOwner, source: String, agent: Agent, waitForCompletion: Boolean): Unit
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  56. def evaluateCommands(owner: JobOwner, source: String, waitForCompletion: Boolean): Unit
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  57. def evaluateCommands(owner: JobOwner, source: String): Unit
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  58. def evaluateReporter(owner: JobOwner, source: String, agents: AgentSet): AnyRef
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  59. def evaluateReporter(owner: JobOwner, source: String, agent: Agent): AnyRef
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  60. def evaluateReporter(owner: JobOwner, source: String): AnyRef
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  61. def exportAllPlots(filename: String): Unit
    Definition Classes
    Exporting
    Annotations
    @throws( classOf[IOException] )
  62. def exportDrawing(filename: String, format: String): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  63. def exportDrawingToCSV(writer: PrintWriter): Unit
    Definition Classes
    HeadlessWorkspaceExporting
  64. def exportInterface(filename: String): Nothing

    Not implemented.

    Not implemented.

    Definition Classes
    HeadlessWorkspaceWorkspace
  65. def exportInterfaceGlobals(writer: PrintWriter): Unit
    Definition Classes
    Exporting
  66. def exportOutput(filename: String): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  67. def exportOutputAreaToCSV(writer: PrintWriter): Unit
    Definition Classes
    HeadlessWorkspaceExporting
  68. def exportPlot(plotName: String, filename: String): Unit
    Definition Classes
    Exporting
    Annotations
    @throws( classOf[IOException] )
  69. def exportPlotWarningAction(): ExportPlotWarningAction
    Definition Classes
    AbstractWorkspaceWorkspace
  70. def exportPlotsToCSV(writer: PrintWriter): Unit
    Definition Classes
    Exporting
  71. def exportView(filename: String, format: String): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  72. def exportView: BufferedImage

    Get a snapshot of the 2D view.

    Get a snapshot of the 2D view.

    Definition Classes
    HeadlessWorkspaceWorkspace
  73. def exportWorld(writer: PrintWriter): Unit
    Definition Classes
    Exporting
    Annotations
    @throws( classOf[IOException] )
  74. def exportWorld(filename: String): Unit
    Definition Classes
    Exporting
    Annotations
    @throws( classOf[IOException] )
  75. val fileManager: FileManager
    Definition Classes
    ModelTracker
  76. def findProcedurePositions(source: String): Map[String, ProcedureSyntax]
    Definition Classes
    Compiling
  77. def fontSize(i: Int): Unit
    Definition Classes
    APIConformant
  78. def fontSize: Int
    Definition Classes
    APIConformant
  79. def forceSaveAs: Boolean

    whether the user needs to enter a new filename to save this model.

    whether the user needs to enter a new filename to save this model. We need to do a "save as" if the model is new, from the models library, or converted.

    Basically, only normal models can get silently saved.

    Definition Classes
    ModelTracker
  80. def frameRate(frameRate: Double): Unit
  81. def frameRate: Double
  82. def getAndCreateDrawing(): BufferedImage
    Definition Classes
    HeadlessWorkspaceWorkspace
  83. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  84. def getCompilationEnvironment: CompilationEnvironment
    Definition Classes
    AbstractWorkspaceScalaWorkspace
  85. def getComponent[A <: AnyRef](componentClass: Class[A]): Option[A]
    Definition Classes
    ComponentsWorkspace
  86. def getExtensionManager(): ExtensionManager
    Definition Classes
    AbstractWorkspaceWorkspace
  87. def getExtensionPathMappings(): Map[String, Path]
    Definition Classes
    Extensions
  88. def getGraphics(image: BufferedImage): Unit

    Get a snapshot of the 2D view, using an existing BufferedImage object.

  89. def getHubNetManager: Option[HubNetInterface]
    Definition Classes
    HubNetManager
  90. def getLibraryManager: LibraryManager
    Definition Classes
    AbstractWorkspaceScalaWorkspace
  91. def getMinimumWidth: Int
  92. def getModelDir: String

    returns the full path to the directory from which the current model was loaded.

    returns the full path to the directory from which the current model was loaded. May be null if, for example, this is a new model.

    Definition Classes
    ModelTracker
  93. def getModelFileName: String

    returns the name of the file from which the current model was loaded.

    returns the name of the file from which the current model was loaded. May be null if, for example, this is a new model.

    Definition Classes
    ModelTracker
  94. def getModelFileUri: Option[URI]
    Definition Classes
    ModelTracker
  95. def getModelPath: String

    returns the full pathname of the currently loaded model, if any.

    returns the full pathname of the currently loaded model, if any. This may return null in some cases, for instance if this is a new model.

    Definition Classes
    ModelTracker
  96. def getModelType: ModelType
    Definition Classes
    ModelTracker
  97. def getPlot(plot: String): PlotInterface
    Definition Classes
    Plotting
  98. def getPlotCompilationErrorAction(): PlotCompilationErrorAction

    returns

    plotCompilationErrorAction action to take if a plot compilation error occurs

    Definition Classes
    AbstractWorkspaceScalaControllable
  99. def getPropertiesInterface(): WorldPropertiesInterface
  100. def getSource(filename: String): String
    Definition Classes
    AbstractWorkspaceScala
    Annotations
    @throws( classOf[IOException] )
  101. def getTokenAtPosition(s: String, pos: Int): Token
    Definition Classes
    Compiling
  102. def graphicsChecksum: String
    Definition Classes
    Checksums
  103. def guessExportName(defaultName: String): String
    Definition Classes
    AbstractWorkspace
  104. def halt(): Unit

    Halts all running NetLogo code in this workspace.

    Halts all running NetLogo code in this workspace.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  105. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  106. def hubNetManager: Option[HubNetInterface]
    Definition Classes
    HubNetManager
  107. val hubNetManagerFactory: HubNetManagerFactory
    Definition Classes
    AbstractWorkspaceScalaHubNetManager
  108. def hubNetRunning: Boolean
    Definition Classes
    HubNetManager
  109. def hubNetRunning_=(running: Boolean): Unit
  110. def importDrawing(file: File): Unit
    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  111. def importDrawing(is: InputStream, mimeTypeOpt: Option[String] = None): Unit
    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  112. def importDrawing(is: InputStream): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  113. def importDrawing(filename: String): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  114. def importDrawingBase64(base64: String): Unit
    Definition Classes
    AbstractWorkspaceScala
    Annotations
    @throws( classOf[java.io.IOException] )
  115. def importExtensionData(name: String, data: List[Array[String]], handler: ImportErrorHandler): Unit
    Definition Classes
    AbstractWorkspaceImporterUser
  116. def importWorld(reader: Reader): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  117. def importWorld(filename: String): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  118. var importerErrorHandler: ErrorHandler
    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  119. def init(): Unit
    Definition Classes
    Procedures
  120. def initForTesting(d: WorldDimensions): Unit

    Internal use only.

  121. def initForTesting(d: WorldDimensions, source: String): Unit

    Internal use only.

  122. def initForTesting(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, source: String): Unit

    Internal use only.

  123. def initForTesting(worldSize: Int, modelString: String): Unit

    Internal use only.

  124. def initForTesting(worldSize: Int): Unit

    Internal use only.

  125. def insetWidth(): Int
  126. def inspectAgent(agentClass: AgentKind, agent: Agent, radius: Double): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  127. def inspectAgent(agent: Agent, radius: Double): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  128. def is3d: Boolean
  129. def isConstant(s: String): Boolean
    Definition Classes
    Compiling
  130. def isExtensionName(name: String): Boolean
    Definition Classes
    AbstractWorkspaceImporterUser
  131. def isHeadless: Boolean

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspaceScalaViewSettings
  132. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  133. def isReporter(s: String): Boolean
    Definition Classes
    Compiling
  134. def isValidIdentifier(s: String): Boolean
    Definition Classes
    Compiling
  135. def joinForeverButtons(agent: Agent): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  136. var lastErrorReport: ErrorReport

    Internal use only.

  137. val lastLogoException: LogoException
    Definition Classes
    Evaluating
  138. val lastRunTimes: WeakHashMap[Job, WeakHashMap[Agent, WeakHashMap[Command, MutableLong]]]

    lastRunTimes is used by every to track how long ago a job ran

    lastRunTimes is used by every to track how long ago a job ran

    Definition Classes
    AbstractWorkspaceScalaAbstractWorkspaceWorkspace
  139. def loadFromModel(model: Model): Unit
    Attributes
    protected
    Definition Classes
    AbstractWorkspaceScala
  140. def loadWorld(view: View, worldInterface: WorldLoaderInterface): Unit
    Definition Classes
    AbstractWorkspaceScala
  141. def logCustomGlobals(nameValuePairs: Seq[(String, String)]): Unit
  142. def logCustomMessage(msg: String): Unit
  143. def magicOpen(name: String): Nothing

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspaceEditorWorkspace
  144. def mainRNG(): MersenneTwisterFast
    Definition Classes
    AbstractWorkspaceRandomServices
  145. def makeCommandThunk(source: String, jobOwnerName: String, rng: MersenneTwisterFast): CommandLogoThunk
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  146. def makeCommandThunk(source: String, jobOwnerName: String): CommandLogoThunk
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  147. def makeReporterThunk(source: String, jobOwnerName: String): ReporterLogoThunk
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  148. def modelFileName: String
    Definition Classes
    ModelTracker
  149. def modelNameForDisplay: String
    Definition Classes
    ModelTracker
  150. def modelOpened: Boolean

    Has a model been opened in this workspace?

  151. def mouseDown: Boolean
    Definition Classes
    Workspace
  152. def mouseInside: Boolean
    Definition Classes
    Workspace
  153. def mouseXCor: Double
    Definition Classes
    Workspace
  154. def mouseYCor: Double
    Definition Classes
    Workspace
  155. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  156. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  157. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  158. def open(path: String, shouldAutoInstallLibs: Boolean): Unit

    Opens a model stored in a file.

    Opens a model stored in a file.

    path

    the path (absolute or relative) of the NetLogo model to open.

    Definition Classes
    HeadlessWorkspaceControllableAbstractWorkspaceScalaWorkspaceControllable
    Annotations
    @throws( classOf[java.io.IOException] ) @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
  159. def open(path: String): Unit
    Definition Classes
    Controllable
    Annotations
    @throws( classOf[java.io.IOException] )
  160. def openFromSource(source: String, extension: String): Unit

    Opens a model stored in a string.

    Opens a model stored in a string. Can only be called once per instance of HeadlessWorkspace

    source

    The complete model, including widgets and so forth, in the same format as it would be stored in a file.

  161. def openModel(model: Model, shouldAutoInstallLibs: Boolean): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  162. def openModel(model: Model): Unit
    Definition Classes
    Workspace
  163. def openString(modelContents: String): Unit

    Opens a model stored in a string

    Opens a model stored in a string

    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  164. val outputAreaBuffer: StringBuilder
  165. def outputObject(obj: AnyRef, owner: AnyRef, addNewline: Boolean, readable: Boolean, destination: OutputDestination): Unit
    Definition Classes
    APIConformant
  166. def ownerFinished(owner: JobOwner): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceJobManagerOwner
  167. def patchSize: Double
    Definition Classes
    HeadlessWorkspaceWorkspaceViewSettings
  168. def patchSize(patchSize: Double): Unit
  169. def periodicUpdate(): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceJobManagerOwner
  170. def perspective: Perspective
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  171. val plotManager: PlotManager
    Definition Classes
    Plotting
  172. val plotRNG: MersenneTwisterFast
    Definition Classes
    Plotting
  173. def previewCommands(): PreviewCommands
    Definition Classes
    AbstractWorkspaceWorkspace
  174. def previewCommandsString: String
    Definition Classes
    APIConformant
  175. def procedures: ProceduresMap
    Definition Classes
    Procedures
  176. def procedures_=(procs: ProceduresMap): Unit
    Definition Classes
    Procedures
  177. def profilingEnabled: Boolean
    Definition Classes
    Traceable
  178. def profilingTracer: Tracer
    Definition Classes
    Traceable
  179. def readFromString(string: String): AnyRef
    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] )
  180. def readNumberFromString(source: String): Double
    Definition Classes
    Compiling
    Annotations
    @throws( classOf[CompilerException] )
  181. val realPlotManager: PlotManager
    Definition Classes
    Plotting
  182. def renderPerspective: Boolean
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  183. val renderer: RendererInterface
    Definition Classes
    HeadlessWorkspaceWorkspace
  184. def report(source: String): AnyRef

    Runs a NetLogo reporter.

    Runs a NetLogo reporter.

    source

    The reporter to run

    returns

    the result reported; may be of type java.lang.Integer, java.lang.Double, java.lang.Boolean, java.lang.String, org.nlogo.core.LogoList, org.nlogo.api.Agent, AgentSet, or Nobody

    Definition Classes
    Evaluating
    Annotations
    @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
    Exceptions thrown

    org.nlogo.api.LogoException if the code fails to run

    org.nlogo.core.CompilerException if the code fails to compile

  185. def requestDisplayUpdate(force: Boolean): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspaceWorkspace
  186. def resetTicks(context: Context): Unit
    Definition Classes
    AbstractWorkspaceScalaWorkspace
  187. def resizeView(): Unit
    Definition Classes
    HeadlessWorkspaceWorldResizer
  188. def runCompiledCommands(owner: JobOwner, procedure: Procedure): Boolean
    Definition Classes
    Evaluating
  189. def runCompiledReporter(owner: JobOwner, procedure: Procedure): AnyRef
    Definition Classes
    Evaluating
  190. def runtimeError(owner: JobOwner, context: Context, instruction: Instruction, ex: Exception): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceJobManagerOwner
  191. def seedRNGs(seed: Int): Unit
    Definition Classes
    AbstractWorkspaceScalaRandomServices
  192. def sendOutput(oo: OutputObject, toOutputArea: Boolean): Unit

    Internal use only.

    Internal use only. Called from job thread.

    Definition Classes
    HeadlessWorkspaceAbstractWorkspace
  193. def set3d(newMode: Boolean): Unit
  194. def setDimensions(d: WorldDimensions, patchSize: Double): Unit
  195. def setDimensions(d: WorldDimensions): Unit

    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.

    Definition Classes
    HeadlessWorkspaceWorldResizer
  196. def setExportPlotWarningAction(action: ExportPlotWarningAction): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  197. def setModelPath(modelPath: String): Unit
    Definition Classes
    ModelTracker
  198. def setModelType(tpe: ModelType): Unit
    Definition Classes
    ModelTracker
  199. def setOpenModel(model: Model): Unit
  200. def setOutputAreaContents(text: String): Unit
    Definition Classes
    AbstractWorkspaceImporterUser
  201. def setPlotCompilationErrorAction(plotCompilationErrorAction: PlotCompilationErrorAction): Unit

    plotCompilationErrorAction

    action to take if a plot compilation error occurs Throw - Throw the first error Output - Output all errors Ignore - Do nothing

    Definition Classes
    AbstractWorkspaceScalaControllable
  202. def setPreviewCommands(commands: PreviewCommands): Unit
    Definition Classes
    AbstractWorkspace
  203. def setProcedures(procs: ProceduresMap): Unit
    Definition Classes
    Procedures
  204. def setProfilingTracer(t: Tracer): Unit
    Definition Classes
    Traceable
  205. def setShouldUpdatePlots(update: Boolean): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  206. def setSize(x: Int, y: Int): Unit
  207. def setTriedToExportPlot(triedToExport: Boolean): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  208. def setupPlots(c: Context): Unit
    Definition Classes
    Plotting
  209. def shouldUpdatePlots(): Boolean
    Definition Classes
    AbstractWorkspaceWorkspace
  210. def showTickCounter(showTickCounter: Boolean): Unit
  211. def showTickCounter: Boolean
  212. var silent: Boolean

    If true, don't send anything to standard output.

  213. def stopInspectingAgent(agent: Agent): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  214. def stopInspectingDeadAgents(): Unit
    Definition Classes
    HeadlessWorkspaceWorkspace
  215. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  216. def tick(context: Context, originalInstruction: Instruction): Unit
    Definition Classes
    AbstractWorkspaceScalaWorkspace
  217. def tickCounterLabel(s: String): Unit
  218. def tickCounterLabel: String
  219. def toString(): String
    Definition Classes
    AnyRef → Any
  220. def tokenizeForColorization(s: String): Array[Token]
    Definition Classes
    Compiling
  221. def tokenizeForColorizationIterator(s: String): Iterator[Token]
    Definition Classes
    Compiling
  222. def triedToExportPlot(): Boolean
    Definition Classes
    AbstractWorkspaceWorkspace
  223. def unsupported: Nothing
  224. def updateDisplay(haveWorldLockAlready: Boolean): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceJobManagerOwner
  225. def updateMode(updateMode: UpdateMode): Unit
  226. def updateMode(): UpdateMode
    Definition Classes
    AbstractWorkspace
  227. def updatePlots(c: Context): Unit
    Definition Classes
    Plotting
  228. def updateUI(): Unit
    Definition Classes
    Workspace
  229. def userDirectory: Option[String]
    Definition Classes
    Workspace
  230. def userFile: Option[String]
    Definition Classes
    Workspace
  231. def userInput(msg: String): Option[String]
    Definition Classes
    Workspace
  232. def userMessage(msg: String): Boolean
    Definition Classes
    Workspace
  233. def userNewFile: Option[String]
    Definition Classes
    Workspace
  234. def userOneOf(msg: String, xs: LogoList): Option[AnyRef]
    Definition Classes
    Workspace
  235. def userYesOrNo(msg: String): Option[Boolean]
    Definition Classes
    Workspace
  236. def viewHeight: Double
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  237. def viewOffsetX: Double
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  238. def viewOffsetY: Double
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  239. def viewWidth: Double
    Definition Classes
    HeadlessWorkspaceAPIConformantViewSettings
  240. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  241. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  242. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  243. def waitFor(runnable: CommandRunnable): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceWorkspace
  244. def waitForQueuedEvents(): Unit

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceWorkspace
  245. def waitForResult[T](runnable: ReporterRunnable[T]): T

    Internal use only.

    Internal use only.

    Definition Classes
    HeadlessWorkspaceWorkspace
  246. def warningMessage(message: String): Boolean

    Displays a warning to the user, and determine whether to continue.

    Displays a warning to the user, and determine whether to continue. The default (non-GUI) implementation is to print the warning and always continue.

    Definition Classes
    AbstractWorkspaceExtendableWorkspaceWorkspace
  247. val world: World
    Definition Classes
    AbstractWorkspaceScalaWorkspaceWorkspace
  248. def worldChecksum: String
    Definition Classes
    Checksums

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from WorldLoaderInterface

Inherited from Controllable

Inherited from AbstractWorkspaceScala

Inherited from Extensions

Inherited from Exporting

Inherited from Plotting

Inherited from HubNetManager

Inherited from Components

Inherited from Traceable

Inherited from BehaviorSpaceInformation

Inherited from Compiling

Inherited from Procedures

Inherited from ModelTracker

Inherited from Evaluating

Inherited from Checksums

Inherited from Benchmarking

Inherited from APIConformant

Inherited from AbstractWorkspace

Inherited from HubNetWorkspaceInterface

Inherited from CompilerServices

Inherited from LogoThunkFactory

Inherited from ExtendableWorkspace

Inherited from EditorWorkspace

Inherited from Workspace

Inherited from JobManagerOwner

Inherited from Workspace

Inherited from Controllable

Inherited from ViewSettings

Inherited from RandomServices

Inherited from LiteralParser

Inherited from ImporterUser

Inherited from WorldResizer

Inherited from AnyRef

Inherited from Any

Ungrouped