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
- Alphabetic
- By Inheritance
- Components
- AbstractWorkspace
- HubNetWorkspaceInterface
- CompilerServices
- LogoThunkFactory
- ExtendableWorkspace
- EditorWorkspace
- Workspace
- JobManagerOwner
- Workspace
- Controllable
- ViewSettings
- RandomServices
- LiteralParser
- ImporterUser
- WorldResizer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
FileImporter extends AnyRef
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
Abstract Value Members
-
abstract
def
aggregateManager(): AggregateManagerInterface
- Definition Classes
- AbstractWorkspace
-
abstract
def
attachModelDir(filePath: String): String
- Definition Classes
- ExtendableWorkspace
- Annotations
- @throws( ... )
-
abstract
def
behaviorSpaceExperimentName(name: String): Unit
- Definition Classes
- Workspace
-
abstract
def
behaviorSpaceExperimentName: String
- Definition Classes
- Workspace
-
abstract
def
behaviorSpaceRunNumber(n: Int): Unit
- Definition Classes
- Workspace
-
abstract
def
behaviorSpaceRunNumber: Int
- Definition Classes
- Workspace
-
abstract
def
benchmark(minTime: Int, maxTime: Int): Unit
- Definition Classes
- Workspace
-
abstract
def
breathe(): Unit
- Definition Classes
- AbstractWorkspace
-
abstract
def
changeTopology(wrapX: Boolean, wrapY: Boolean): Unit
- Definition Classes
- Workspace
-
abstract
def
checkCommandSyntax(source: String): Unit
- Definition Classes
- CompilerServices
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
checkReporterSyntax(source: String): Unit
- Definition Classes
- CompilerServices
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
clearAll(): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
abstract
def
clearDrawing(): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
abstract
def
clearLastLogoException(): Unit
- Definition Classes
- Workspace
-
abstract
def
clearOutput(): Unit
- Definition Classes
- Workspace
-
abstract
def
clearTicks(): Unit
- Definition Classes
- Workspace
-
abstract
def
command(source: String): Unit
- Definition Classes
- Controllable
-
abstract
def
compileCommands(source: String, agentKind: AgentKind): Procedure
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
compileCommands(source: String): Procedure
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
compileReporter(source: String): Procedure
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
compiler(): PresentationCompilerInterface
- Definition Classes
- AbstractWorkspace → Workspace
- Annotations
- @Override()
-
abstract
def
compilerTestingMode: Boolean
- Definition Classes
- ExtendableWorkspace
-
abstract
def
completedActivations: WeakHashMap[Activation, Boolean]
completedActivations is used by
thunk-did-finish
completedActivations is used by
thunk-did-finish
- Definition Classes
- Workspace
-
abstract
def
convertToNormal(): String
- Definition Classes
- EditorWorkspace
- Annotations
- @throws( classOf[java.io.IOException] )
-
abstract
def
currentPlot(plot: String): Unit
- Definition Classes
- ImporterUser
-
abstract
def
dialect: Dialect
- Definition Classes
- CompilerServices
-
abstract
def
drawSpotlight: Boolean
- Definition Classes
- ViewSettings
-
abstract
def
evaluateCommands(owner: JobOwner, source: String, agents: AgentSet, waitForCompletion: Boolean): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateCommands(owner: JobOwner, source: String, agent: Agent, waitForCompletion: Boolean): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateCommands(owner: JobOwner, source: String, waitForCompletion: Boolean): Unit
- Definition Classes
- Controllable
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateCommands(owner: JobOwner, source: String): Unit
- Definition Classes
- Controllable
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateReporter(owner: JobOwner, source: String, agents: AgentSet): AnyRef
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateReporter(owner: JobOwner, source: String, agent: Agent): AnyRef
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
evaluateReporter(owner: JobOwner, source: String): AnyRef
- Definition Classes
- Controllable
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
exportAllPlots(path: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportDrawing(path: String, format: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportInterface(path: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportOutput(path: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportPlot(plotName: String, path: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportView: BufferedImage
- Definition Classes
- Workspace
-
abstract
def
exportView(path: String, format: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportWorld(writer: PrintWriter): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
exportWorld(path: String): Unit
- Definition Classes
- Workspace
- Annotations
- @throws( classOf[IOException] )
-
abstract
def
fileManager: FileManager
- Definition Classes
- ExtendableWorkspace
-
abstract
def
findProcedurePositions(source: String): Map[String, ProcedureSyntax]
- Definition Classes
- CompilerServices
-
abstract
def
fontSize: Int
- Definition Classes
- ViewSettings
-
abstract
def
getAndCreateDrawing(): BufferedImage
- Definition Classes
- Workspace
-
abstract
def
getCompilationEnvironment: CompilationEnvironment
- Definition Classes
- Workspace
-
abstract
def
getLibraryManager: LibraryManager
- Definition Classes
- Workspace
-
abstract
def
getModelDir: String
- Definition Classes
- Workspace
-
abstract
def
getModelFileName: String
- Definition Classes
- Workspace
-
abstract
def
getModelPath: String
- Definition Classes
- Workspace
-
abstract
def
getPlot(plot: String): PlotInterface
- Definition Classes
- ImporterUser
-
abstract
def
getTokenAtPosition(source: String, position: Int): Token
- Definition Classes
- CompilerServices
-
abstract
def
graphicsChecksum: String
- Definition Classes
- Workspace
-
abstract
def
hubNetRunning_=(running: Boolean): Unit
- Definition Classes
- HubNetWorkspaceInterface
-
abstract
def
importDrawing(is: InputStream, mimeTypeOpt: Option[String]): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
abstract
def
importerErrorHandler(): ErrorHandler
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
abstract
def
init(): Unit
- Definition Classes
- AbstractWorkspace
-
abstract
def
inspectAgent(agentKind: AgentKind, agent: Agent, radius: Double): Unit
- Definition Classes
- Workspace
-
abstract
def
inspectAgent(agent: Agent, radius: Double): Unit
- Definition Classes
- Workspace
-
abstract
def
isConstant(s: String): Boolean
- Definition Classes
- CompilerServices
-
abstract
def
isHeadless: Boolean
- Definition Classes
- ViewSettings
-
abstract
def
isReporter(s: String): Boolean
- Definition Classes
- CompilerServices
-
abstract
def
isValidIdentifier(s: String): Boolean
- Definition Classes
- CompilerServices
-
abstract
def
lastLogoException: LogoException
- Definition Classes
- Workspace
-
abstract
def
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
- AbstractWorkspace → Workspace
-
abstract
def
magicOpen(name: String): Unit
- Definition Classes
- AbstractWorkspace → EditorWorkspace
-
abstract
def
makeCommandThunk(code: String, jobOwnerName: String, rng: MersenneTwisterFast): CommandLogoThunk
- Definition Classes
- LogoThunkFactory
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
makeCommandThunk(code: String, jobOwnerName: String): CommandLogoThunk
- Definition Classes
- LogoThunkFactory
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
makeReporterThunk(code: String, jobOwnerName: String): ReporterLogoThunk
- Definition Classes
- LogoThunkFactory
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
modelNameForDisplay: String
- Definition Classes
- HubNetWorkspaceInterface
-
abstract
def
open(modelPath: String, shouldAutoInstallLibs: Boolean): Unit
- Definition Classes
- Workspace → Controllable
- Annotations
- @throws( classOf[IOException] ) @throws( classOf[CompilerException] ) @throws( classOf[LogoException] )
-
abstract
def
openModel(model: Model, shouldAutoInstallLibs: Boolean): Unit
- Definition Classes
- Workspace
-
abstract
def
openString(modelContents: String): Unit
- Definition Classes
- AbstractWorkspace
-
abstract
def
outputObject(obj: AnyRef, owner: AnyRef, addNewline: Boolean, readable: Boolean, destination: OutputDestination): Unit
- Definition Classes
- Workspace
-
abstract
def
ownerFinished(owner: JobOwner): Unit
- Definition Classes
- JobManagerOwner
-
abstract
def
patchSize: Double
- Definition Classes
- Workspace → ViewSettings
-
abstract
def
patchSize(patchSize: Double): Unit
- Definition Classes
- WorldResizer
-
abstract
def
periodicUpdate(): Unit
- Definition Classes
- JobManagerOwner
-
abstract
def
perspective: Perspective
- Definition Classes
- ViewSettings
-
abstract
def
plotRNG: MersenneTwisterFast
- Definition Classes
- Workspace
-
abstract
def
procedures(): ListMap[String, Procedure]
- Definition Classes
- AbstractWorkspace → Workspace
-
abstract
def
procedures_=(procedures: ProceduresMap): Unit
- Definition Classes
- Workspace
-
abstract
def
profilingEnabled: Boolean
- Definition Classes
- ExtendableWorkspace
-
abstract
def
profilingTracer: Tracer
- Definition Classes
- Workspace
-
abstract
def
readFromString(path: String): AnyRef
- Definition Classes
- ExtendableWorkspace
-
abstract
def
readNumberFromString(source: String): Double
- Definition Classes
- CompilerServices → LiteralParser
- Annotations
- @throws( classOf[CompilerException] )
-
abstract
def
realPlotManager: PlotManagerInterface
- Definition Classes
- Workspace
-
abstract
def
renderPerspective: Boolean
- Definition Classes
- ViewSettings
-
abstract
def
renderer: RendererInterface
- Definition Classes
- Workspace
-
abstract
def
report(source: String): AnyRef
- Definition Classes
- Controllable
-
abstract
def
requestDisplayUpdate(force: Boolean): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
abstract
def
resetTicks(c: Context): Unit
- Definition Classes
- Workspace
-
abstract
def
resizeView(): Unit
- Definition Classes
- WorldResizer
-
abstract
def
runCompiledCommands(owner: JobOwner, procedure: Procedure): Boolean
- Definition Classes
- Workspace
-
abstract
def
runCompiledReporter(owner: JobOwner, procedure: Procedure): AnyRef
- Definition Classes
- Workspace
-
abstract
def
runtimeError(owner: JobOwner, context: Context, instruction: Instruction, ex: Exception): Unit
- Definition Classes
- JobManagerOwner
-
abstract
def
seedRNGs(seed: Int): Unit
- Definition Classes
- RandomServices
-
abstract
def
sendOutput(oo: OutputObject, toOutputArea: Boolean): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
abstract
def
setDimensions(dim: WorldDimensions, patchSize: Double): Unit
- Definition Classes
- WorldResizer
-
abstract
def
setDimensions(dim: WorldDimensions): Unit
- Definition Classes
- WorldResizer
-
abstract
def
setModelPath(path: String): Unit
- Definition Classes
- Workspace
-
abstract
def
setProcedures(procedures: ListMap[String, Procedure]): Unit
- Definition Classes
- AbstractWorkspace
-
abstract
def
setProfilingTracer(tracer: Tracer): Unit
- Definition Classes
- ExtendableWorkspace
-
abstract
def
setupPlots(c: Context): Unit
- Definition Classes
- Workspace
-
abstract
def
stopInspectingAgent(agent: Agent): Unit
- Definition Classes
- Workspace
-
abstract
def
stopInspectingDeadAgents(): Unit
- Definition Classes
- Workspace
-
abstract
def
tick(c: Context, originalInstruction: Instruction): Unit
- Definition Classes
- Workspace
-
abstract
def
tokenizeForColorization(source: String): Array[Token]
- Definition Classes
- CompilerServices
-
abstract
def
tokenizeForColorizationIterator(source: String): Iterator[Token]
- Definition Classes
- CompilerServices
-
abstract
def
updateDisplay(haveWorldLockAlready: Boolean): Unit
- Definition Classes
- JobManagerOwner
-
abstract
def
updatePlots(c: Context): Unit
- Definition Classes
- Workspace
-
abstract
def
viewHeight: Double
- Definition Classes
- ViewSettings
-
abstract
def
viewOffsetX: Double
- Definition Classes
- ViewSettings
-
abstract
def
viewOffsetY: Double
- Definition Classes
- ViewSettings
-
abstract
def
viewWidth: Double
- Definition Classes
- ViewSettings
-
abstract
def
waitFor(runnable: CommandRunnable): Unit
- Definition Classes
- Workspace
-
abstract
def
waitForQueuedEvents(): Unit
- Definition Classes
- Workspace
-
abstract
def
waitForResult[T](runnable: ReporterRunnable[T]): T
- Definition Classes
- Workspace
- abstract def world: World
-
abstract
def
worldChecksum: String
- Definition Classes
- Workspace
-
abstract
def
plotManager: AnyRef
- Definition Classes
- Workspace
- Annotations
- @deprecated
- Deprecated
(Since version 6.1.2) Use
realPlotManager
Concrete 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
- def addComponent[A <: AnyRef](componentClass: Class[A], component: A): Unit
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
auxRNG(): MersenneTwisterFast
- Definition Classes
- AbstractWorkspace → RandomServices
-
def
beep(): Unit
- Definition Classes
- Workspace
-
def
breathe(context: Context): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
compileForRun(source: String, context: Context, reporter: Boolean): Procedure
- Definition Classes
- AbstractWorkspace → Workspace
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exportPlotWarningAction(): ExportPlotWarningAction
- Definition Classes
- AbstractWorkspace → Workspace
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getComponent[A <: AnyRef](componentClass: Class[A]): Option[A]
- Definition Classes
- Components → Workspace
-
def
getExtensionManager(): ExtensionManager
- Definition Classes
- AbstractWorkspace → Workspace
-
def
getPlotCompilationErrorAction(): PlotCompilationErrorAction
- returns
plotCompilationErrorAction action to take if a plot compilation error occurs
- Definition Classes
- Controllable
-
def
getPropertiesInterface(): WorldPropertiesInterface
- Definition Classes
- AbstractWorkspace → HubNetWorkspaceInterface
-
def
guessExportName(defaultName: String): String
- Definition Classes
- AbstractWorkspace
-
def
halt(): Unit
- Definition Classes
- AbstractWorkspace
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
importDrawing(is: InputStream): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
def
importDrawing(file: File): Unit
- Attributes
- protected[workspace]
- Definition Classes
- AbstractWorkspace
-
def
importDrawing(filename: String): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
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
-
def
isExtensionName(name: String): Boolean
- Definition Classes
- AbstractWorkspace → ImporterUser
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
joinForeverButtons(agent: Agent): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
mainRNG(): MersenneTwisterFast
- Definition Classes
- AbstractWorkspace → RandomServices
-
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): Unit
- Definition Classes
- Controllable
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
openModel(model: Model): Unit
- Definition Classes
- Workspace
-
def
previewCommands(): PreviewCommands
- Definition Classes
- AbstractWorkspace → Workspace
-
def
setExportPlotWarningAction(action: ExportPlotWarningAction): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
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
- Controllable
-
def
setPreviewCommands(commands: PreviewCommands): Unit
- Definition Classes
- AbstractWorkspace
-
def
setShouldUpdatePlots(update: Boolean): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
setTriedToExportPlot(triedToExport: Boolean): Unit
- Definition Classes
- AbstractWorkspace → Workspace
-
def
shouldUpdatePlots(): Boolean
- Definition Classes
- AbstractWorkspace → Workspace
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
triedToExportPlot(): Boolean
- Definition Classes
- AbstractWorkspace → Workspace
-
def
updateMode(updateMode: UpdateMode): Unit
- Definition Classes
- AbstractWorkspace
-
def
updateMode(): UpdateMode
- Definition Classes
- AbstractWorkspace
-
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
-
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
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