org.nlogo.workspace
Class DummyWorkspace
java.lang.Object
org.nlogo.workspace.AbstractWorkspace
org.nlogo.workspace.DummyWorkspace
- All Implemented Interfaces:
- Evaluator, ImporterUser, WorldResizer, JobManagerOwner, Workspace
public class DummyWorkspace
- extends AbstractWorkspace
Methods inherited from class org.nlogo.workspace.AbstractWorkspace |
attachModelDir, clearAll, compileCommands, compileForRun, compileReporter, computerHubNetRunning, computerHubNetRunning, convertToNormal, currentPlot, dispose, evaluateCommands, evaluateCommands, evaluateCommands, evaluateReporter, evaluateReporter, exportAllPlots, exportBehaviors, exportPlot, exportWorld, exportWorld, fileManager, forceSaveAs, getDefaultLinkShape, getDefaultShape, getExtensionManager, getExternalFileSource, getHubNetManager, getIsApplet, getModelDir, getModelFileName, getModelPath, getModelType, getPlot, guessExportName, halt, hubnetManager, importDrawing, importWorld, init, initForTesting, isApp, isApp, isApplet, isApplet, isCompilerTestingMode, isConstant, joinForeverButtons, makeThunk, modelNameForDisplay, outputObject, plotManager, readFromString, resetTimer, runCompiledCommands, runCompiledReporter, updateChecksum, warningMessage, world |
DummyWorkspace
public DummyWorkspace()
isHeadless
public boolean isHeadless()
- Specified by:
isHeadless
in class AbstractWorkspace
waitFor
public void waitFor(CommandRunnable runnable)
waitForResult
public Object waitForResult(ReporterRunnable runnable)
waitForQueuedEvents
public void waitForQueuedEvents()
inspectAgent
public void inspectAgent(Class agentClass,
Agent agent)
stamp
public void stamp(Turtle turtle,
boolean erase)
clearDrawing
public void clearDrawing()
- Specified by:
clearDrawing
in interface Workspace
- Specified by:
clearDrawing
in class AbstractWorkspace
getAndCreateDrawing
public BufferedImage getAndCreateDrawing()
open
public void open(String path)
- Specified by:
open
in class AbstractWorkspace
magicOpen
public void magicOpen(String name)
- Specified by:
magicOpen
in interface Workspace
- Specified by:
magicOpen
in class AbstractWorkspace
openIndex
public void openIndex()
openNext
public void openNext()
openPrevious
public void openPrevious()
clearOutput
public void clearOutput()
importDrawing
public void importDrawing(org.nlogo.util.File file)
exportOutput
public void exportOutput(String filename)
exportDrawing
public void exportDrawing(String filename,
String format)
exportDrawingToCSV
public void exportDrawingToCSV(PrintWriter writer)
- Specified by:
exportDrawingToCSV
in class AbstractWorkspace
exportOutputAreaToCSV
public void exportOutputAreaToCSV(PrintWriter writer)
- Specified by:
exportOutputAreaToCSV
in class AbstractWorkspace
exportGraphics
public void exportGraphics(String filename,
String format)
exportInterface
public void exportInterface(String filename)
writeGraphicsData
public void writeGraphicsData(PrintWriter writer)
- Specified by:
writeGraphicsData
in class AbstractWorkspace
patchSize
public void patchSize(double patchSize)
patchSize
public double patchSize()
changeTopology
public void changeTopology(boolean wrapX,
boolean wrapY)
setOutputAreaContents
public void setOutputAreaContents(String text)
- Specified by:
setOutputAreaContents
in interface ImporterUser
- Overrides:
setOutputAreaContents
in class AbstractWorkspace
setDimensions
public void setDimensions(WorldDimensions d)
resizeWorld
public void resizeWorld()
runtimeError
public void runtimeError(JobOwner owner,
Context context,
Instruction instruction,
Exception ex)
ownerFinished
public void ownerFinished(JobOwner owner)
updateDisplay
public void updateDisplay(boolean haveWorldLockAlready)
requestDisplayUpdate
public void requestDisplayUpdate(boolean force)
- Specified by:
requestDisplayUpdate
in interface Workspace
- Specified by:
requestDisplayUpdate
in class AbstractWorkspace
perhapsUpdateDisplay
public void perhapsUpdateDisplay()
- Specified by:
perhapsUpdateDisplay
in interface Workspace
- Specified by:
perhapsUpdateDisplay
in class AbstractWorkspace
periodicUpdate
public void periodicUpdate()
addJobFromJobThread
public void addJobFromJobThread(Job job)
- Specified by:
addJobFromJobThread
in interface Workspace
- Overrides:
addJobFromJobThread
in class AbstractWorkspace
getPrefix
public String getPrefix()
attachPrefix
public String attachPrefix(String filename)
eof
public boolean eof()
hasCurrentFile
public boolean hasCurrentFile()
closeCurrentFile
public void closeCurrentFile()
deleteFile
public void deleteFile(String filename)
shapesOn
public void shapesOn(boolean shapesOn)
- Specified by:
shapesOn
in class AbstractWorkspace
shapesOn
public boolean shapesOn()
- Specified by:
shapesOn
in class AbstractWorkspace
initModelForChecksumming
public void initModelForChecksumming()
throws LogoException,
CompilerException
- Throws:
LogoException
CompilerException
makePreviews
public void makePreviews(boolean allModels,
boolean overwrite)
startLogging
public void startLogging(String properties)
zipLogFiles
public void zipLogFiles(String filename)
deleteLogFiles
public void deleteLogFiles()
getHSB
public float[] getHSB(int[] rgb)
getAutoConverterErrorHandler
public org.nlogo.compiler.AutoConverter.ErrorHandler getAutoConverterErrorHandler()