Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
def
addJobFromJobThread
(job: Job): Unit
-
-
def
asInstanceOf
[T0]
: T0
-
def
attachModelDir
(filePath: String): String
-
def
autoConvert
(source: String, subprogram: Boolean, reporter: Boolean, modelVersion: String): String
-
def
auxRNG
(): MersenneTwisterFast
-
def
behaviorSpaceRunNumber
(n: Int): Unit
-
def
behaviorSpaceRunNumber
(): Int
-
def
breathe
(): Unit
-
def
calculateHeight
(worldHeight: Int, patchSize: Double): Int
-
def
calculateWidth
(worldWidth: Int, patchSize: Double): Int
-
def
changeLanguage
(): Nothing
-
def
changeTopology
(wrapX: Boolean, wrapY: Boolean): Unit
-
def
checkCommandSyntax
(source: String): Unit
-
def
checkReporterSyntax
(source: String): Unit
-
def
clearAll
(): Unit
-
def
clearDrawing
(): Unit
-
def
clearLastLogoException
(): Unit
-
def
clearOutput
(): Unit
-
def
clearTicks
(): Unit
-
def
clearTurtles
(): Unit
-
def
clone
(): AnyRef
-
def
command
(source: String): Unit
-
def
compileCommands
(source: String, agentClass: Class[_ <: org.nlogo.agent.Agent]): Procedure
-
def
compileCommands
(source: String): Procedure
-
def
compileForRun
(source: String, context: Context, reporter: Boolean): Procedure
-
def
compileReporter
(source: String): Procedure
-
-
var
compilerTestingMode
: Boolean
-
def
completedActivations
(): WeakHashMap[Activation, Boolean]
-
def
computePatchSize
(width: Int, numPatches: Int): Double
-
def
convertToNormal
(): String
-
def
currentPlot
(plot: String): Unit
-
-
def
deleteLogFiles
(): Nothing
-
def
dispose
(): Unit
-
def
doImport
(importer: FileImporter): Unit
-
-
def
drawSpotlight
: Boolean
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
evaluateCommands
(owner: JobOwner, source: String, agents: AgentSet, waitForCompletion: Boolean): Unit
-
def
evaluateCommands
(owner: JobOwner, source: String, agent: Agent, waitForCompletion: Boolean): Unit
-
def
evaluateCommands
(owner: JobOwner, source: String, waitForCompletion: Boolean): Unit
-
def
evaluateCommands
(owner: JobOwner, source: String): Unit
-
def
evaluateReporter
(owner: JobOwner, source: String, agents: AgentSet): AnyRef
-
def
evaluateReporter
(owner: JobOwner, source: String, agent: Agent): AnyRef
-
def
evaluateReporter
(owner: JobOwner, source: String): AnyRef
-
def
exportAllPlots
(filename: String): Unit
-
def
exportBehaviors
(filename: String, experimentName: String, includeHeader: Boolean): File
-
def
exportDrawing
(filename: String, format: String): Unit
-
def
exportDrawingToCSV
(writer: PrintWriter): Unit
-
def
exportInterface
(filename: String): Nothing
-
def
exportInterfaceGlobals
(writer: PrintWriter): Unit
-
def
exportOutput
(filename: String): Unit
-
def
exportOutputAreaToCSV
(writer: PrintWriter): Unit
-
def
exportPlot
(plotName: String, filename: String): Unit
-
def
exportPlotsToCSV
(writer: PrintWriter): Unit
-
def
exportView
(filename: String, format: String): Unit
-
def
exportView
(): BufferedImage
-
def
exportWorld
(writer: PrintWriter): Unit
-
def
exportWorld
(filename: String): Unit
-
-
def
finalize
(): Unit
-
def
findProcedurePositions
(source: String): Map[String, List[AnyRef]]
-
def
fontSize
(i: Int): Unit
-
def
fontSize
: Int
-
def
forceSaveAs
(): Boolean
-
def
frameRate
(frameRate: Double): Unit
-
def
frameRate
: Double
-
def
getAndCreateDrawing
(): BufferedImage
-
def
getClass
(): java.lang.Class[_]
-
-
def
getGraphics
(image: BufferedImage): Unit
-
-
def
getIsApplet
(): Boolean
-
def
getMinimumWidth
: Int
-
def
getModelDir
(): String
-
def
getModelFileName
(): String
-
def
getModelPath
(): String
-
def
getModelType
(): ModelType
-
def
getPlot
(plot: String): PlotInterface
-
def
getProcedures
(): Map[String, Procedure]
-
-
def
getSource
(filename: String): String
-
def
getTokenAtPosition
(s: String, pos: Int): Token
-
def
guessExportName
(defaultName: String): String
-
def
halt
(): Unit
-
def
hashCode
(): Int
-
def
hubNetRunning
(hubNetRunning: Boolean): Unit
-
def
hubNetRunning
(): Boolean
-
-
def
importDrawing
(file: File): Unit
-
def
importDrawing
(filename: String): Unit
-
def
importExtensionData
(name: String, data: List[Array[String]], handler: ImportErrorHandler): Unit
-
def
importWorld
(reader: Reader): Unit
-
def
importWorld
(filename: String): Unit
-
var
importerErrorHandler
: ErrorHandler
-
def
init
(): Unit
-
-
def
initForTesting
(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int): Unit
-
def
initForTesting
(d: WorldDimensions, source: String): Unit
-
def
initForTesting
(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, source: String): Unit
-
def
initForTesting
(worldSize: Int, modelString: String): Unit
-
def
initForTesting
(worldSize: Int): Unit
-
def
insetWidth
(): Int
-
def
inspectAgent
(agentClass: Class[_ <: org.nlogo.agent.Agent], agent: Agent, radius: Double): Unit
-
def
inspectAgent
(agent: Agent, radius: Double): Unit
-
def
isConstant
(s: String): Boolean
-
def
isExtensionName
(name: String): Boolean
-
def
isHeadless
: Boolean
-
def
isInstanceOf
[T0]
: Boolean
-
def
isReporter
(s: String): Boolean
-
def
isValidIdentifier
(s: String): Boolean
-
def
joinForeverButtons
(agent: Agent): Unit
-
var
lastErrorReport
: ErrorReport
-
-
def
lastRunTimes
(): WeakHashMap[Job, WeakHashMap[Agent, WeakHashMap[Command, MutableLong]]]
-
def
loadWorld
(strings: Array[String], version: String, worldInterface: WorldLoaderInterface): Unit
-
def
magicOpen
(name: String): Nothing
-
def
mainRNG
(): MersenneTwisterFast
-
def
makeCommandThunk
(source: String, jobOwnerName: String): CommandLogoThunk
-
def
makeReporterThunk
(source: String, jobOwnerName: String): ReporterLogoThunk
-
def
modelNameForDisplay
(): String
-
var
modelOpened
: Boolean
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
def
open
(path: String): Unit
-
def
openFromSource
(source: String): Unit
-
def
openIndex
(): Nothing
-
def
openNext
(): Nothing
-
def
openPrevious
(): Nothing
-
def
openString
(modelContents: String): Unit
-
val
outputAreaBuffer
: StringBuilder
-
def
outputObject
(object: Any, owner: Any, addNewline: Boolean, readable: Boolean, destination: OutputDestination): Unit
-
def
ownerFinished
(owner: JobOwner): Unit
-
def
patchSize
: Double
-
def
patchSize
(patchSize: Double): Unit
-
def
periodicUpdate
(): Unit
-
-
val
plotManager
: PlotManager
-
var
previewCommands
: String
-
def
profilingEnabled
(): Boolean
-
def
profilingTracer
(): Tracer
-
def
readFromString
(string: String): AnyRef
-
def
readNumberFromString
(source: String): AnyRef
-
def
renderPerspective
: Boolean
-
-
def
report
(source: String): AnyRef
-
def
requestDisplayUpdate
(force: Boolean): Unit
-
def
resetTicks
(context: Context): Unit
-
def
resizeView
(): Unit
-
def
runCompiledCommands
(owner: JobOwner, procedure: Procedure): Boolean
-
def
runCompiledReporter
(owner: JobOwner, procedure: Procedure): AnyRef
-
def
runtimeError
(owner: JobOwner, context: Context, instruction: Instruction, ex: Exception): Unit
-
def
sendOutput
(oo: OutputObject, toOutputArea: Boolean): Unit
-
def
setDimensions
(d: WorldDimensions, patchSize: Double): Unit
-
-
def
setModelPath
(modelPath: String): Unit
-
def
setModelType
(modelType: ModelType): Unit
-
def
setOutputAreaContents
(text: String): Unit
-
def
setProcedures
(procedures: Map[String, Procedure]): Unit
-
def
setProfilingTracer
(tracer: Tracer): Unit
-
def
setSize
(x: Int, y: Int): Unit
-
def
setupPlots
(c: Context): Unit
-
def
showTickCounter
(showTickCounter: Boolean): Unit
-
def
showTickCounter
: Boolean
-
var
silent
: Boolean
-
def
startLogging
(properties: String): Nothing
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
tick
(context: Context, originalInstruction: Instruction): Unit
-
def
tickCounterLabel
(s: String): Unit
-
def
tickCounterLabel
: String
-
def
toString
(): String
-
def
tokenizeForColorization
(s: String): Array[Token]
-
def
unsupported
: Nothing
-
def
updateDisplay
(haveWorldLockAlready: Boolean): Unit
-
def
updateMode
(updateMode: UpdateMode): Unit
-
-
def
updatePlots
(c: Context): Unit
-
def
viewHeight
: Double
-
def
viewOffsetX
: Double
-
def
viewOffsetY
: Double
-
def
viewWidth
: Double
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
-
-
def
waitForQueuedEvents
(): Unit
-
def
waitForResult
[T]
(runnable: ReporterRunnable[T]): T
-
def
warningMessage
(message: String): Boolean
-
def
world
(): World
-
def
writeGraphicsData
(writer: PrintWriter): Unit
-
def
zipLogFiles
(filename: String): Nothing
Inherited from AnyRef
Inherited from Any
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.