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
- Alphabetic
- By Inheritance
- HeadlessWorkspace
- WorldLoaderInterface
- Controllable
- AbstractWorkspaceScala
- Extensions
- Exporting
- Plotting
- ExtendableWorkspaceMethods
- HubNetManager
- Components
- Traceable
- BehaviorSpaceInformation
- Compiling
- Procedures
- ModelTracker
- Evaluating
- Checksums
- Benchmarking
- APIConformant
- AbstractWorkspace
- HubNetWorkspaceInterface
- CompilerServices
- LogoThunkFactory
- ExtendableWorkspace
- EditorWorkspace
- Workspace
- JobManagerOwner
- Workspace
- Controllable
- ViewSettings
- RandomServices
- LiteralParser
- ImporterUser
- WorldResizer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new HeadlessWorkspace(_world: World with CompilationManagement, compiler: PresentationCompilerInterface, renderer: RendererInterface, aggregateManager: AggregateManagerInterface, hubNetManagerFactory: HubNetManagerFactory)
Type Members
-
abstract
class
FileImporter extends AnyRef
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
_behaviorSpaceExperimentName: String
- Definition Classes
- BehaviorSpaceInformation
-
val
_behaviorSpaceRunNumber: Int
- Definition Classes
- BehaviorSpaceInformation
-
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
-
def
addComponent[A <: AnyRef](componentClass: Class[A], component: A): Unit
- Definition Classes
- Components
-
def
addCustomShapes(filename: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
def
addJobFromJobThread(job: Job): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
addLifecycle[A <: AnyRef](lifecycle: ComponentLifecycle[A]): Unit
- Definition Classes
- Components
-
val
aggregateManager: AggregateManagerInterface
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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( ... )
-
def
auxRNG(): MersenneTwisterFast
- Definition Classes
- AbstractWorkspace → RandomServices
-
def
beep(): Unit
- Definition Classes
- Workspace
-
def
behaviorSpaceExperimentName(name: String): Unit
- Definition Classes
- BehaviorSpaceInformation
-
def
behaviorSpaceExperimentName: String
- Definition Classes
- BehaviorSpaceInformation
-
def
behaviorSpaceRunNumber(n: Int): Unit
- Definition Classes
- BehaviorSpaceInformation
-
def
behaviorSpaceRunNumber: Int
- Definition Classes
- BehaviorSpaceInformation
-
def
benchmark(minTime: Int, maxTime: Int): Unit
- Definition Classes
- Benchmarking
-
def
breathe(): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
def
breathe(context: Context): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
calculateHeight(worldHeight: Int, patchSize: Double): Int
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
calculateWidth(worldWidth: Int, patchSize: Double): Int
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
changeTopology(wrapX: Boolean, wrapY: Boolean): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface → Workspace
-
def
checkCommandSyntax(source: String): Unit
- Definition Classes
- Compiling
- Annotations
- @throws( classOf[CompilerException] )
-
def
checkReporterSyntax(source: String): Unit
- Definition Classes
- Compiling
- Annotations
- @throws( classOf[CompilerException] )
-
def
clearAll(): Unit
- Definition Classes
- AbstractWorkspaceScala → AbstractWorkspace → Workspace
-
def
clearDrawing(): Unit
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace → Workspace
-
def
clearLastLogoException(): Unit
- Definition Classes
- Evaluating
-
def
clearOutput(): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
clearTicks(): Unit
- Definition Classes
- AbstractWorkspaceScala → Workspace
-
def
clearTurtles(): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
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 runorg.nlogo.core.CompilerException
if the code fails to compile
-
def
compileCommands(source: String, agentClass: AgentKind): Procedure
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
compileCommands(source: String): Procedure
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
compileForRun(source: String, context: Context, reporter: Boolean): Procedure
- Definition Classes
- AbstractWorkspace → Workspace
-
def
compileReporter(source: String): Procedure
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
val
compiler: PresentationCompilerInterface
- Definition Classes
- HeadlessWorkspace → ModelTracker → AbstractWorkspace → Workspace
-
var
compilerTestingMode: Boolean
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspaceScala → ExtendableWorkspace → Workspace
-
val
completedActivations: WeakHashMap[Activation, Boolean]
- Definition Classes
- APIConformant
-
def
computePatchSize(width: Int, numPatches: Int): Double
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
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] )
-
def
currentPlot(plot: String): Unit
- Definition Classes
- Plotting
-
val
defaultOwner: SimpleJobOwner
- Definition Classes
- Evaluating
-
def
dialect: Dialect
- Definition Classes
- Compiling
-
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
- Components → AbstractWorkspace → Workspace
- Annotations
- @throws( classOf[InterruptedException] )
-
def
doImport(importer: FileImporter): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
def
doImport(importer: BufferedReaderImporter): Unit
- Definition Classes
- AbstractWorkspace
-
def
drawSpotlight: Boolean
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
evaluateCommands(owner: JobOwner, source: String, agents: AgentSet, waitForCompletion: Boolean): Unit
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateCommands(owner: JobOwner, source: String, agent: Agent, waitForCompletion: Boolean): Unit
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateCommands(owner: JobOwner, source: String, waitForCompletion: Boolean): Unit
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateCommands(owner: JobOwner, source: String): Unit
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateReporter(owner: JobOwner, source: String, agents: AgentSet): AnyRef
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateReporter(owner: JobOwner, source: String, agent: Agent): AnyRef
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
evaluateReporter(owner: JobOwner, source: String): AnyRef
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
exportAllPlots(filename: String): Unit
- Definition Classes
- Exporting
- Annotations
- @throws( classOf[IOException] )
-
def
exportDrawing(filename: String, format: String): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
exportDrawingToCSV(writer: PrintWriter): Unit
- Definition Classes
- HeadlessWorkspace → Exporting
-
def
exportInterface(filename: String): Nothing
Not implemented.
Not implemented.
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
exportInterfaceGlobals(writer: PrintWriter): Unit
- Definition Classes
- Exporting
-
def
exportOutput(filename: String): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
exportOutputAreaToCSV(writer: PrintWriter): Unit
- Definition Classes
- HeadlessWorkspace → Exporting
-
def
exportPlot(plotName: String, filename: String): Unit
- Definition Classes
- Exporting
- Annotations
- @throws( classOf[IOException] )
-
def
exportPlotWarningAction(): ExportPlotWarningAction
- Definition Classes
- AbstractWorkspace → Workspace
-
def
exportPlotsToCSV(writer: PrintWriter): Unit
- Definition Classes
- Exporting
-
def
exportView(filename: String, format: String): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
exportView: BufferedImage
Get a snapshot of the 2D view.
Get a snapshot of the 2D view.
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
exportWorld(writer: PrintWriter): Unit
- Definition Classes
- Exporting
- Annotations
- @throws( classOf[IOException] )
-
def
exportWorld(filename: String): Unit
- Definition Classes
- Exporting
- Annotations
- @throws( classOf[IOException] )
-
val
fileManager: FileManager
- Definition Classes
- ModelTracker
-
def
findProcedurePositions(source: String): Map[String, ProcedureSyntax]
- Definition Classes
- Compiling
-
def
fontSize(i: Int): Unit
- Definition Classes
- APIConformant
-
def
fontSize: Int
- Definition Classes
- APIConformant
-
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
-
def
frameRate(frameRate: Double): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
frameRate: Double
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
getAndCreateDrawing(): BufferedImage
- Definition Classes
- HeadlessWorkspace → Workspace
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getCompilationEnvironment: CompilationEnvironment
- Definition Classes
- AbstractWorkspaceScala → Workspace
-
def
getComponent[A <: AnyRef](componentClass: Class[A]): Option[A]
- Definition Classes
- Components → Workspace
-
def
getExtensionManager(): ExtensionManager
- Definition Classes
- AbstractWorkspace → Workspace
-
def
getExtensionPathMappings(): Map[String, Path]
- Definition Classes
- Extensions
-
def
getGraphics(image: BufferedImage): Unit
Get a snapshot of the 2D view, using an existing BufferedImage object.
-
def
getHubNetManager: Option[HubNetInterface]
- Definition Classes
- HubNetManager
-
def
getLibraryManager: LibraryManager
- Definition Classes
- AbstractWorkspaceScala → Workspace
-
def
getMinimumWidth: Int
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
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
-
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
-
def
getModelFileUri: Option[URI]
- Definition Classes
- ModelTracker
-
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
-
def
getModelType: ModelType
- Definition Classes
- ModelTracker
-
def
getPlot(plot: String): PlotInterface
- Definition Classes
- Plotting
-
def
getPlotCompilationErrorAction(): PlotCompilationErrorAction
- returns
plotCompilationErrorAction action to take if a plot compilation error occurs
- Definition Classes
- AbstractWorkspaceScala → Controllable
-
def
getPropertiesInterface(): WorldPropertiesInterface
- Definition Classes
- AbstractWorkspace → HubNetWorkspaceInterface
-
def
getSource(filename: String): String
- Definition Classes
- AbstractWorkspaceScala
- Annotations
- @throws( classOf[IOException] )
-
def
getTokenAtPosition(s: String, pos: Int): Token
- Definition Classes
- Compiling
-
def
graphicsChecksum: String
- Definition Classes
- Checksums
-
def
guessExportName(defaultName: String): String
- Definition Classes
- AbstractWorkspace
-
def
halt(): Unit
Halts all running NetLogo code in this workspace.
Halts all running NetLogo code in this workspace.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hubNetManager: Option[HubNetInterface]
- Definition Classes
- HubNetManager
-
val
hubNetManagerFactory: HubNetManagerFactory
- Definition Classes
- AbstractWorkspaceScala → HubNetManager
-
def
hubNetRunning: Boolean
- Definition Classes
- HubNetManager
-
def
hubNetRunning_=(running: Boolean): Unit
- Definition Classes
- HubNetManager → HubNetWorkspaceInterface
-
def
importDrawing(file: File): Unit
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
def
importDrawing(is: InputStream, mimeTypeOpt: Option[String] = None): Unit
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
def
importDrawing(is: InputStream): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
def
importDrawing(filename: String): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
importDrawingBase64(base64: String): Unit
- Definition Classes
- AbstractWorkspaceScala
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
importExtensionData(name: String, data: List[Array[String]], handler: ImportErrorHandler): Unit
- Definition Classes
- AbstractWorkspace → ImporterUser
-
def
importWorld(reader: Reader): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
importWorld(filename: String): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
var
importerErrorHandler: ErrorHandler
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
-
def
init(): Unit
- Definition Classes
- Procedures
-
def
initForTesting(d: WorldDimensions): Unit
Internal use only.
-
def
initForTesting(d: WorldDimensions, source: String): Unit
Internal use only.
-
def
initForTesting(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, source: String): Unit
Internal use only.
-
def
initForTesting(worldSize: Int, modelString: String): Unit
Internal use only.
-
def
initForTesting(worldSize: Int): Unit
Internal use only.
-
def
insetWidth(): Int
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
inspectAgent(agentClass: AgentKind, agent: Agent, radius: Double): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
inspectAgent(agent: Agent, radius: Double): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
- def is3d: Boolean
-
def
isConstant(s: String): Boolean
- Definition Classes
- Compiling
-
def
isExtensionName(name: String): Boolean
- Definition Classes
- AbstractWorkspace → ImporterUser
-
def
isHeadless: Boolean
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspaceScala → ViewSettings
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isReporter(s: String): Boolean
- Definition Classes
- Compiling
-
def
isValidIdentifier(s: String): Boolean
- Definition Classes
- Compiling
-
def
joinForeverButtons(agent: Agent): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
var
lastErrorReport: ErrorReport
Internal use only.
-
val
lastLogoException: LogoException
- Definition Classes
- Evaluating
-
val
lastRunTimes: WeakHashMap[Job, WeakHashMap[Agent, WeakHashMap[Command, MutableLong]]]
lastRunTimes is used by
every
to track how long ago a job ranlastRunTimes is used by
every
to track how long ago a job ran- Definition Classes
- AbstractWorkspaceScala → AbstractWorkspace → Workspace
-
def
loadFromModel(model: Model): Unit
- Attributes
- protected
- Definition Classes
- AbstractWorkspaceScala
-
def
loadWorld(view: View, worldInterface: WorldLoaderInterface): Unit
- Definition Classes
- AbstractWorkspaceScala
- def logCustomGlobals(nameValuePairs: Seq[(String, String)]): Unit
- def logCustomMessage(msg: String): Unit
-
def
magicOpen(name: String): Nothing
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace → EditorWorkspace
-
def
mainRNG(): MersenneTwisterFast
- Definition Classes
- AbstractWorkspace → RandomServices
-
def
makeCommandThunk(source: String, jobOwnerName: String, rng: MersenneTwisterFast): CommandLogoThunk
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
makeCommandThunk(source: String, jobOwnerName: String): CommandLogoThunk
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
makeReporterThunk(source: String, jobOwnerName: String): ReporterLogoThunk
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
modelFileName: String
- Definition Classes
- ModelTracker
-
def
modelNameForDisplay: String
- Definition Classes
- ModelTracker
-
def
modelOpened: Boolean
Has a model been opened in this workspace?
-
def
mouseDown: Boolean
- Definition Classes
- Workspace
-
def
mouseInside: Boolean
- Definition Classes
- Workspace
-
def
mouseXCor: Double
- Definition Classes
- Workspace
-
def
mouseYCor: Double
- Definition Classes
- Workspace
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
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
- HeadlessWorkspace → Controllable → AbstractWorkspaceScala → Workspace → Controllable
- Annotations
- @throws( classOf[java.io.IOException] ) @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
-
def
open(path: String): Unit
- Definition Classes
- Controllable
- Annotations
- @throws( classOf[java.io.IOException] )
-
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.
-
def
openModel(model: Model, shouldAutoInstallLibs: Boolean): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
openModel(model: Model): Unit
- Definition Classes
- Workspace
-
def
openString(modelContents: String): Unit
Opens a model stored in a string
Opens a model stored in a string
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
- val outputAreaBuffer: StringBuilder
-
def
outputObject(obj: AnyRef, owner: AnyRef, addNewline: Boolean, readable: Boolean, destination: OutputDestination): Unit
- Definition Classes
- APIConformant
-
def
ownerFinished(owner: JobOwner): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → JobManagerOwner
-
def
patchSize: Double
- Definition Classes
- HeadlessWorkspace → Workspace → ViewSettings
-
def
patchSize(patchSize: Double): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface → WorldResizer
-
def
periodicUpdate(): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → JobManagerOwner
-
def
perspective: Perspective
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
val
plotManager: PlotManager
- Definition Classes
- Plotting
-
val
plotRNG: MersenneTwisterFast
- Definition Classes
- Plotting
-
def
previewCommands(): PreviewCommands
- Definition Classes
- AbstractWorkspace → Workspace
-
def
previewCommandsString: String
- Definition Classes
- APIConformant
-
def
procedures: ProceduresMap
- Definition Classes
- Procedures
-
def
procedures_=(procs: ProceduresMap): Unit
- Definition Classes
- Procedures
-
def
profilingEnabled: Boolean
- Definition Classes
- Traceable
-
def
profilingTracer: Tracer
- Definition Classes
- Traceable
-
def
readFromString(string: String): AnyRef
- Definition Classes
- Evaluating
- Annotations
- @throws( classOf[CompilerException] )
-
def
readNumberFromString(source: String): Double
- Definition Classes
- Compiling
- Annotations
- @throws( classOf[CompilerException] )
-
val
realPlotManager: PlotManager
- Definition Classes
- Plotting
-
def
renderPerspective: Boolean
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
val
renderer: RendererInterface
- Definition Classes
- HeadlessWorkspace → Workspace
-
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 runorg.nlogo.core.CompilerException
if the code fails to compile
-
def
requestDisplayUpdate(force: Boolean): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace → Workspace
-
def
resetTicks(context: Context): Unit
- Definition Classes
- AbstractWorkspaceScala → Workspace
-
def
resizeView(): Unit
- Definition Classes
- HeadlessWorkspace → WorldResizer
-
def
runCompiledCommands(owner: JobOwner, procedure: Procedure): Boolean
- Definition Classes
- Evaluating
-
def
runCompiledReporter(owner: JobOwner, procedure: Procedure): AnyRef
- Definition Classes
- Evaluating
-
def
runtimeError(owner: JobOwner, context: Context, instruction: Instruction, ex: Exception): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → JobManagerOwner
-
def
seedRNGs(seed: Int): Unit
- Definition Classes
- AbstractWorkspaceScala → RandomServices
-
def
sendOutput(oo: OutputObject, toOutputArea: Boolean): Unit
Internal use only.
Internal use only. Called from job thread.
- Definition Classes
- HeadlessWorkspace → AbstractWorkspace
- def set3d(newMode: Boolean): Unit
-
def
setDimensions(d: WorldDimensions, patchSize: Double): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface → WorldResizer
-
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
- HeadlessWorkspace → WorldResizer
-
def
setExportPlotWarningAction(action: ExportPlotWarningAction): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
setModelPath(modelPath: String): Unit
- Definition Classes
- ModelTracker
-
def
setModelType(tpe: ModelType): Unit
- Definition Classes
- ModelTracker
- def setOpenModel(model: Model): Unit
-
def
setOutputAreaContents(text: String): Unit
- Definition Classes
- AbstractWorkspace → ImporterUser
-
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
- AbstractWorkspaceScala → Controllable
-
def
setPreviewCommands(commands: PreviewCommands): Unit
- Definition Classes
- AbstractWorkspace
-
def
setProcedures(procs: ProceduresMap): Unit
- Definition Classes
- Procedures
-
def
setProfilingTracer(t: Tracer): Unit
- Definition Classes
- Traceable
-
def
setShouldUpdatePlots(update: Boolean): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
setSize(x: Int, y: Int): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
setTriedToExportPlot(triedToExport: Boolean): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
setupPlots(c: Context): Unit
- Definition Classes
- Plotting
-
def
shouldUpdatePlots(): Boolean
- Definition Classes
- AbstractWorkspace → Workspace
-
def
showTickCounter(showTickCounter: Boolean): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
showTickCounter: Boolean
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
var
silent: Boolean
If true, don't send anything to standard output.
-
def
stopInspectingAgent(agent: Agent): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
stopInspectingDeadAgents(): Unit
- Definition Classes
- HeadlessWorkspace → Workspace
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tick(context: Context, originalInstruction: Instruction): Unit
- Definition Classes
- AbstractWorkspaceScala → Workspace
-
def
tickCounterLabel(s: String): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
tickCounterLabel: String
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tokenizeForColorization(s: String): Array[Token]
- Definition Classes
- Compiling
-
def
tokenizeForColorizationIterator(s: String): Iterator[Token]
- Definition Classes
- Compiling
-
def
triedToExportPlot(): Boolean
- Definition Classes
- AbstractWorkspace → Workspace
- def unsupported: Nothing
-
def
updateDisplay(haveWorldLockAlready: Boolean): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → JobManagerOwner
-
def
updateMode(updateMode: UpdateMode): Unit
- Definition Classes
- HeadlessWorkspace → WorldLoaderInterface → AbstractWorkspace
-
def
updateMode(): UpdateMode
- Definition Classes
- AbstractWorkspace
-
def
updatePlots(c: Context): Unit
- Definition Classes
- Plotting
-
def
updateUI(): Unit
- Definition Classes
- Workspace
-
def
userDirectory: Option[String]
- Definition Classes
- Workspace
-
def
userFile: Option[String]
- Definition Classes
- Workspace
-
def
userInput(msg: String): Option[String]
- Definition Classes
- Workspace
-
def
userMessage(msg: String): Boolean
- Definition Classes
- Workspace
-
def
userNewFile: Option[String]
- Definition Classes
- Workspace
-
def
userOneOf(msg: String, xs: LogoList): Option[AnyRef]
- Definition Classes
- Workspace
-
def
userYesOrNo(msg: String): Option[Boolean]
- Definition Classes
- Workspace
-
def
viewHeight: Double
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
def
viewOffsetX: Double
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
def
viewOffsetY: Double
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
def
viewWidth: Double
- Definition Classes
- HeadlessWorkspace → APIConformant → ViewSettings
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
waitFor(runnable: CommandRunnable): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
waitForQueuedEvents(): Unit
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → Workspace
-
def
waitForResult[T](runnable: ReporterRunnable[T]): T
Internal use only.
Internal use only.
- Definition Classes
- HeadlessWorkspace → Workspace
-
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
- AbstractWorkspace → ExtendableWorkspace → Workspace
-
val
world: World
- Definition Classes
- AbstractWorkspaceScala → Workspace → Workspace
-
def
worldChecksum: String
- Definition Classes
- Checksums