t

org.nlogo.workspace

Components

trait Components extends AbstractWorkspace

Components manages components which are dynamically registered with the Workspace

At the moment, it just holds and returns those components. Perhaps in the future we could have a more advanced component lifecycle where components could be initialized, disposed, and made aware of workspace events (like ticks)

Source
Components.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Components
  2. AbstractWorkspace
  3. HubNetWorkspaceInterface
  4. CompilerServices
  5. LogoThunkFactory
  6. ExtendableWorkspace
  7. EditorWorkspace
  8. Workspace
  9. JobManagerOwner
  10. Workspace
  11. Controllable
  12. ViewSettings
  13. RandomServices
  14. LiteralParser
  15. ImporterUser
  16. WorldResizer
  17. AnyRef
  18. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

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

Abstract Value Members

  1. abstract def aggregateManager(): AggregateManagerInterface
    Definition Classes
    AbstractWorkspace
  2. abstract def attachModelDir(filePath: String): String
    Definition Classes
    ExtendableWorkspace
    Annotations
    @throws( ... )
  3. abstract def behaviorSpaceExperimentName(name: String): Unit
    Definition Classes
    Workspace
  4. abstract def behaviorSpaceExperimentName: String
    Definition Classes
    Workspace
  5. abstract def behaviorSpaceRunNumber(n: Int): Unit
    Definition Classes
    Workspace
  6. abstract def behaviorSpaceRunNumber: Int
    Definition Classes
    Workspace
  7. abstract def benchmark(minTime: Int, maxTime: Int): Unit
    Definition Classes
    Workspace
  8. abstract def breathe(): Unit
    Definition Classes
    AbstractWorkspace
  9. abstract def changeTopology(wrapX: Boolean, wrapY: Boolean): Unit
    Definition Classes
    Workspace
  10. abstract def checkCommandSyntax(source: String): Unit
    Definition Classes
    CompilerServices
    Annotations
    @throws( classOf[CompilerException] )
  11. abstract def checkReporterSyntax(source: String): Unit
    Definition Classes
    CompilerServices
    Annotations
    @throws( classOf[CompilerException] )
  12. abstract def clearAll(): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  13. abstract def clearDrawing(): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  14. abstract def clearLastLogoException(): Unit
    Definition Classes
    Workspace
  15. abstract def clearOutput(): Unit
    Definition Classes
    Workspace
  16. abstract def clearTicks(): Unit
    Definition Classes
    Workspace
  17. abstract def command(source: String): Unit
    Definition Classes
    Controllable
  18. abstract def compileCommands(source: String, agentKind: AgentKind): Procedure
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  19. abstract def compileCommands(source: String): Procedure
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  20. abstract def compileReporter(source: String): Procedure
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  21. abstract def compiler(): PresentationCompilerInterface
    Definition Classes
    AbstractWorkspaceWorkspace
    Annotations
    @Override()
  22. abstract def compilerTestingMode: Boolean
    Definition Classes
    ExtendableWorkspace
  23. abstract def completedActivations: WeakHashMap[Activation, Boolean]

    completedActivations is used by thunk-did-finish

    completedActivations is used by thunk-did-finish

    Definition Classes
    Workspace
  24. abstract def convertToNormal(): String
    Definition Classes
    EditorWorkspace
    Annotations
    @throws( classOf[java.io.IOException] )
  25. abstract def currentPlot(plot: String): Unit
    Definition Classes
    ImporterUser
  26. abstract def dialect: Dialect
    Definition Classes
    CompilerServices
  27. abstract def drawSpotlight: Boolean
    Definition Classes
    ViewSettings
  28. abstract def evaluateCommands(owner: JobOwner, source: String, agents: AgentSet, waitForCompletion: Boolean): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  29. abstract def evaluateCommands(owner: JobOwner, source: String, agent: Agent, waitForCompletion: Boolean): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  30. abstract def evaluateCommands(owner: JobOwner, source: String, waitForCompletion: Boolean): Unit
    Definition Classes
    Controllable
    Annotations
    @throws( classOf[CompilerException] )
  31. abstract def evaluateCommands(owner: JobOwner, source: String): Unit
    Definition Classes
    Controllable
    Annotations
    @throws( classOf[CompilerException] )
  32. abstract def evaluateReporter(owner: JobOwner, source: String, agents: AgentSet): AnyRef
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  33. abstract def evaluateReporter(owner: JobOwner, source: String, agent: Agent): AnyRef
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[CompilerException] )
  34. abstract def evaluateReporter(owner: JobOwner, source: String): AnyRef
    Definition Classes
    Controllable
    Annotations
    @throws( classOf[CompilerException] )
  35. abstract def exportAllPlots(path: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  36. abstract def exportDrawing(path: String, format: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  37. abstract def exportInterface(path: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  38. abstract def exportOutput(path: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  39. abstract def exportPlot(plotName: String, path: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  40. abstract def exportView: BufferedImage
    Definition Classes
    Workspace
  41. abstract def exportView(path: String, format: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  42. abstract def exportWorld(writer: PrintWriter): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  43. abstract def exportWorld(path: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  44. abstract def fileManager: FileManager
    Definition Classes
    ExtendableWorkspace
  45. abstract def findProcedurePositions(source: String): Map[String, ProcedureSyntax]
    Definition Classes
    CompilerServices
  46. abstract def fontSize: Int
    Definition Classes
    ViewSettings
  47. abstract def getAndCreateDrawing(): BufferedImage
    Definition Classes
    Workspace
  48. abstract def getCompilationEnvironment: CompilationEnvironment
    Definition Classes
    Workspace
  49. abstract def getLibraryManager: LibraryManager
    Definition Classes
    Workspace
  50. abstract def getModelDir: String
    Definition Classes
    Workspace
  51. abstract def getModelFileName: String
    Definition Classes
    Workspace
  52. abstract def getModelPath: String
    Definition Classes
    Workspace
  53. abstract def getPlot(plot: String): PlotInterface
    Definition Classes
    ImporterUser
  54. abstract def getTokenAtPosition(source: String, position: Int): Token
    Definition Classes
    CompilerServices
  55. abstract def graphicsChecksum: String
    Definition Classes
    Workspace
  56. abstract def hubNetRunning_=(running: Boolean): Unit
    Definition Classes
    HubNetWorkspaceInterface
  57. abstract def importDrawing(is: InputStream, mimeTypeOpt: Option[String]): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  58. abstract def importerErrorHandler(): ErrorHandler
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  59. abstract def init(): Unit
    Definition Classes
    AbstractWorkspace
  60. abstract def inspectAgent(agentKind: AgentKind, agent: Agent, radius: Double): Unit
    Definition Classes
    Workspace
  61. abstract def inspectAgent(agent: Agent, radius: Double): Unit
    Definition Classes
    Workspace
  62. abstract def isConstant(s: String): Boolean
    Definition Classes
    CompilerServices
  63. abstract def isHeadless: Boolean
    Definition Classes
    ViewSettings
  64. abstract def isReporter(s: String): Boolean
    Definition Classes
    CompilerServices
  65. abstract def isValidIdentifier(s: String): Boolean
    Definition Classes
    CompilerServices
  66. abstract def lastLogoException: LogoException
    Definition Classes
    Workspace
  67. abstract def 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
    AbstractWorkspaceWorkspace
  68. abstract def magicOpen(name: String): Unit
    Definition Classes
    AbstractWorkspaceEditorWorkspace
  69. abstract def makeCommandThunk(code: String, jobOwnerName: String, rng: MersenneTwisterFast): CommandLogoThunk
    Definition Classes
    LogoThunkFactory
    Annotations
    @throws( classOf[CompilerException] )
  70. abstract def makeCommandThunk(code: String, jobOwnerName: String): CommandLogoThunk
    Definition Classes
    LogoThunkFactory
    Annotations
    @throws( classOf[CompilerException] )
  71. abstract def makeReporterThunk(code: String, jobOwnerName: String): ReporterLogoThunk
    Definition Classes
    LogoThunkFactory
    Annotations
    @throws( classOf[CompilerException] )
  72. abstract def modelNameForDisplay: String
    Definition Classes
    HubNetWorkspaceInterface
  73. abstract def open(modelPath: String, shouldAutoInstallLibs: Boolean): Unit
    Definition Classes
    WorkspaceControllable
    Annotations
    @throws( classOf[IOException] ) @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
  74. abstract def openModel(model: Model, shouldAutoInstallLibs: Boolean): Unit
    Definition Classes
    Workspace
  75. abstract def openString(modelContents: String): Unit
    Definition Classes
    AbstractWorkspace
  76. abstract def outputObject(obj: AnyRef, owner: AnyRef, addNewline: Boolean, readable: Boolean, destination: OutputDestination): Unit
    Definition Classes
    Workspace
  77. abstract def ownerFinished(owner: JobOwner): Unit
    Definition Classes
    JobManagerOwner
  78. abstract def patchSize: Double
    Definition Classes
    WorkspaceViewSettings
  79. abstract def patchSize(patchSize: Double): Unit
    Definition Classes
    WorldResizer
  80. abstract def periodicUpdate(): Unit
    Definition Classes
    JobManagerOwner
  81. abstract def perspective: Perspective
    Definition Classes
    ViewSettings
  82. abstract def plotRNG: MersenneTwisterFast
    Definition Classes
    Workspace
  83. abstract def procedures(): ListMap[String, Procedure]
    Definition Classes
    AbstractWorkspaceWorkspace
  84. abstract def procedures_=(procedures: ProceduresMap): Unit
    Definition Classes
    Workspace
  85. abstract def profilingEnabled: Boolean
    Definition Classes
    ExtendableWorkspace
  86. abstract def profilingTracer: Tracer
    Definition Classes
    Workspace
  87. abstract def readFromString(path: String): AnyRef
    Definition Classes
    ExtendableWorkspace
  88. abstract def readNumberFromString(source: String): Double
    Definition Classes
    CompilerServicesLiteralParser
    Annotations
    @throws( classOf[CompilerException] )
  89. abstract def realPlotManager: PlotManagerInterface
    Definition Classes
    Workspace
  90. abstract def renderPerspective: Boolean
    Definition Classes
    ViewSettings
  91. abstract def renderer: RendererInterface
    Definition Classes
    Workspace
  92. abstract def report(source: String): AnyRef
    Definition Classes
    Controllable
  93. abstract def requestDisplayUpdate(force: Boolean): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  94. abstract def resetTicks(c: Context): Unit
    Definition Classes
    Workspace
  95. abstract def resizeView(): Unit
    Definition Classes
    WorldResizer
  96. abstract def runCompiledCommands(owner: JobOwner, procedure: Procedure): Boolean
    Definition Classes
    Workspace
  97. abstract def runCompiledReporter(owner: JobOwner, procedure: Procedure): AnyRef
    Definition Classes
    Workspace
  98. abstract def runtimeError(owner: JobOwner, context: Context, instruction: Instruction, ex: Exception): Unit
    Definition Classes
    JobManagerOwner
  99. abstract def seedRNGs(seed: Int): Unit
    Definition Classes
    RandomServices
  100. abstract def sendOutput(oo: OutputObject, toOutputArea: Boolean): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  101. abstract def setDimensions(dim: WorldDimensions, patchSize: Double): Unit
    Definition Classes
    WorldResizer
  102. abstract def setDimensions(dim: WorldDimensions): Unit
    Definition Classes
    WorldResizer
  103. abstract def setModelPath(path: String): Unit
    Definition Classes
    Workspace
  104. abstract def setProcedures(procedures: ListMap[String, Procedure]): Unit
    Definition Classes
    AbstractWorkspace
  105. abstract def setProfilingTracer(tracer: Tracer): Unit
    Definition Classes
    ExtendableWorkspace
  106. abstract def setupPlots(c: Context): Unit
    Definition Classes
    Workspace
  107. abstract def stopInspectingAgent(agent: Agent): Unit
    Definition Classes
    Workspace
  108. abstract def stopInspectingDeadAgents(): Unit
    Definition Classes
    Workspace
  109. abstract def tick(c: Context, originalInstruction: Instruction): Unit
    Definition Classes
    Workspace
  110. abstract def tokenizeForColorization(source: String): Array[Token]
    Definition Classes
    CompilerServices
  111. abstract def tokenizeForColorizationIterator(source: String): Iterator[Token]
    Definition Classes
    CompilerServices
  112. abstract def updateDisplay(haveWorldLockAlready: Boolean): Unit
    Definition Classes
    JobManagerOwner
  113. abstract def updatePlots(c: Context): Unit
    Definition Classes
    Workspace
  114. abstract def viewHeight: Double
    Definition Classes
    ViewSettings
  115. abstract def viewOffsetX: Double
    Definition Classes
    ViewSettings
  116. abstract def viewOffsetY: Double
    Definition Classes
    ViewSettings
  117. abstract def viewWidth: Double
    Definition Classes
    ViewSettings
  118. abstract def waitFor(runnable: CommandRunnable): Unit
    Definition Classes
    Workspace
  119. abstract def waitForQueuedEvents(): Unit
    Definition Classes
    Workspace
  120. abstract def waitForResult[T](runnable: ReporterRunnable[T]): T
    Definition Classes
    Workspace
  121. abstract def world: World
    Definition Classes
    WorkspaceWorkspace
  122. abstract def worldChecksum: String
    Definition Classes
    Workspace
  123. abstract def plotManager: AnyRef
    Definition Classes
    Workspace
    Annotations
    @deprecated
    Deprecated

    (Since version 6.1.2) Use realPlotManager

Concrete 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. def addComponent[A <: AnyRef](componentClass: Class[A], component: A): Unit
  5. def addCustomShapes(filename: String): Unit
    Definition Classes
    Workspace
    Annotations
    @throws( classOf[IOException] )
  6. def addJobFromJobThread(job: Job): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  7. def addLifecycle[A <: AnyRef](lifecycle: ComponentLifecycle[A]): Unit
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def auxRNG(): MersenneTwisterFast
    Definition Classes
    AbstractWorkspaceRandomServices
  10. def beep(): Unit
    Definition Classes
    Workspace
  11. def breathe(context: Context): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  13. def compileForRun(source: String, context: Context, reporter: Boolean): Procedure
    Definition Classes
    AbstractWorkspaceWorkspace
  14. 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] )
  15. def doImport(importer: FileImporter): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  16. def doImport(importer: BufferedReaderImporter): Unit
    Definition Classes
    AbstractWorkspace
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def exportPlotWarningAction(): ExportPlotWarningAction
    Definition Classes
    AbstractWorkspaceWorkspace
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. def getComponent[A <: AnyRef](componentClass: Class[A]): Option[A]
    Definition Classes
    ComponentsWorkspace
  22. def getExtensionManager(): ExtensionManager
    Definition Classes
    AbstractWorkspaceWorkspace
  23. def getPlotCompilationErrorAction(): PlotCompilationErrorAction

    returns

    plotCompilationErrorAction action to take if a plot compilation error occurs

    Definition Classes
    Controllable
  24. def getPropertiesInterface(): WorldPropertiesInterface
  25. def guessExportName(defaultName: String): String
    Definition Classes
    AbstractWorkspace
  26. def halt(): Unit
    Definition Classes
    AbstractWorkspace
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  28. def importDrawing(is: InputStream): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  29. def importDrawing(file: File): Unit
    Attributes
    protected[workspace]
    Definition Classes
    AbstractWorkspace
  30. def importDrawing(filename: String): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  31. def importExtensionData(name: String, data: List[Array[String]], handler: ImportErrorHandler): Unit
    Definition Classes
    AbstractWorkspaceImporterUser
  32. def importWorld(reader: Reader): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  33. def importWorld(filename: String): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  34. def isExtensionName(name: String): Boolean
    Definition Classes
    AbstractWorkspaceImporterUser
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def joinForeverButtons(agent: Agent): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  37. def mainRNG(): MersenneTwisterFast
    Definition Classes
    AbstractWorkspaceRandomServices
  38. def mouseDown: Boolean
    Definition Classes
    Workspace
  39. def mouseInside: Boolean
    Definition Classes
    Workspace
  40. def mouseXCor: Double
    Definition Classes
    Workspace
  41. def mouseYCor: Double
    Definition Classes
    Workspace
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  45. def open(path: String): Unit
    Definition Classes
    Controllable
    Annotations
    @throws( classOf[java.io.IOException] )
  46. def openModel(model: Model): Unit
    Definition Classes
    Workspace
  47. def previewCommands(): PreviewCommands
    Definition Classes
    AbstractWorkspaceWorkspace
  48. def setExportPlotWarningAction(action: ExportPlotWarningAction): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  49. def setOutputAreaContents(text: String): Unit
    Definition Classes
    AbstractWorkspaceImporterUser
  50. 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
    Controllable
  51. def setPreviewCommands(commands: PreviewCommands): Unit
    Definition Classes
    AbstractWorkspace
  52. def setShouldUpdatePlots(update: Boolean): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  53. def setTriedToExportPlot(triedToExport: Boolean): Unit
    Definition Classes
    AbstractWorkspaceWorkspace
  54. def shouldUpdatePlots(): Boolean
    Definition Classes
    AbstractWorkspaceWorkspace
  55. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  56. def toString(): String
    Definition Classes
    AnyRef → Any
  57. def triedToExportPlot(): Boolean
    Definition Classes
    AbstractWorkspaceWorkspace
  58. def updateMode(updateMode: UpdateMode): Unit
    Definition Classes
    AbstractWorkspace
  59. def updateMode(): UpdateMode
    Definition Classes
    AbstractWorkspace
  60. def updateUI(): Unit
    Definition Classes
    Workspace
  61. def userDirectory: Option[String]
    Definition Classes
    Workspace
  62. def userFile: Option[String]
    Definition Classes
    Workspace
  63. def userInput(msg: String): Option[String]
    Definition Classes
    Workspace
  64. def userMessage(msg: String): Boolean
    Definition Classes
    Workspace
  65. def userNewFile: Option[String]
    Definition Classes
    Workspace
  66. def userOneOf(msg: String, xs: LogoList): Option[AnyRef]
    Definition Classes
    Workspace
  67. def userYesOrNo(msg: String): Option[Boolean]
    Definition Classes
    Workspace
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  70. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. 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

Deprecated Value Members

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

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 api.Controllable

Inherited from ViewSettings

Inherited from RandomServices

Inherited from LiteralParser

Inherited from ImporterUser

Inherited from WorldResizer

Inherited from AnyRef

Inherited from Any

Ungrouped