org.nlogo.workspace
Class DummyWorkspace

java.lang.Object
  extended by org.nlogo.workspace.AbstractWorkspace
      extended by org.nlogo.workspace.DummyWorkspace
All Implemented Interfaces:
Evaluator, ImporterUser, WorldResizer, JobManagerOwner, Workspace

public class DummyWorkspace
extends AbstractWorkspace


Nested Class Summary
 
Nested classes/interfaces inherited from class org.nlogo.workspace.AbstractWorkspace
AbstractWorkspace.HubNetManagerFactory
 
Field Summary
 
Fields inherited from class org.nlogo.workspace.AbstractWorkspace
aggregateManager, DEFAULT_PREVIEW_COMMANDS, jobManager, previewCommands, TYPE_CONVERTED, TYPE_LIBRARY, TYPE_NEW, TYPE_NORMAL, world, worldLoader
 
Fields inherited from interface org.nlogo.nvm.Workspace
CONTINUOUS_UPDATES, OUTPUT_NORMAL, OUTPUT_TO_FILE, OUTPUT_TO_OUTPUT_AREA, TICK_BASED_UPDATES
 
Constructor Summary
DummyWorkspace()
           
 
Method Summary
 void addJobFromJobThread(Job job)
           
 String attachPrefix(String filename)
           
 void changeTopology(boolean wrapX, boolean wrapY)
           
 void clearDrawing()
           
 void clearOutput()
           
 void closeCurrentFile()
           
 void deleteFile(String filename)
           
 void deleteLogFiles()
           
 boolean eof()
           
 void exportDrawing(String filename, String format)
           
 void exportDrawingToCSV(PrintWriter writer)
           
 void exportGraphics(String filename, String format)
           
 void exportInterface(String filename)
           
 void exportOutput(String filename)
           
 void exportOutputAreaToCSV(PrintWriter writer)
           
 BufferedImage getAndCreateDrawing()
           
 org.nlogo.compiler.AutoConverter.ErrorHandler getAutoConverterErrorHandler()
           
 float[] getHSB(int[] rgb)
           
 String getPrefix()
           
 boolean hasCurrentFile()
           
 void importDrawing(org.nlogo.util.File file)
           
 void initModelForChecksumming()
           
 void inspectAgent(Class agentClass, Agent agent)
           
 boolean isHeadless()
           
 void magicOpen(String name)
           
 void makePreviews(boolean allModels, boolean overwrite)
           
 void open(String path)
           
 void openIndex()
           
 void openNext()
           
 void openPrevious()
           
 void ownerFinished(JobOwner owner)
           
 double patchSize()
           
 void patchSize(double patchSize)
           
 void perhapsUpdateDisplay()
           
 void periodicUpdate()
           
 void requestDisplayUpdate(boolean force)
           
 void resizeWorld()
           
 void runtimeError(JobOwner owner, Context context, Instruction instruction, Exception ex)
           
 void setDimensions(WorldDimensions d)
           
 void setOutputAreaContents(String text)
           
 boolean shapesOn()
           
 void shapesOn(boolean shapesOn)
           
 void stamp(Turtle turtle, boolean erase)
           
 void startLogging(String properties)
           
 void updateDisplay(boolean haveWorldLockAlready)
           
 void waitFor(CommandRunnable runnable)
           
 void waitForQueuedEvents()
           
 Object waitForResult(ReporterRunnable runnable)
           
 void writeGraphicsData(PrintWriter writer)
           
 void zipLogFiles(String filename)
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyWorkspace

public DummyWorkspace()
Method Detail

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()