public class GeomSSBatch extends java.lang.Thread
Modified by: Joseph A. Huwaldt
Modifier and Type | Class and Description |
---|---|
static class |
GeomSSBatch.PublicScene
A class that serves as the public interface (in BeanShell) for this application's
3D scene.
|
Modifier and Type | Field and Description |
---|---|
static Unit[] |
LENGTH_UNITS
The length unit options for this program.
|
Constructor and Description |
---|
GeomSSBatch(java.util.ResourceBundle resBundle,
java.io.File scriptFile)
Construct a new batch script running thread.
|
Modifier and Type | Method and Description |
---|---|
static void |
initializeBeanShell(java.lang.String appName,
Interpreter bsh,
GeomSSApp appInterface)
Provides the initial setup of the BeanShell environment required by GeomSS.
|
static GeometryList |
readGeometryData(java.util.ResourceBundle resBundle,
java.awt.Component parent,
java.io.File theFile)
Method that reads in a data file and return the resulting data structure.
|
void |
run()
The run() method just sits and waits for incoming connections and hands each one
off to a new ServerJobRunner thread to handle it.
|
static void |
writeGeometryData(java.util.ResourceBundle resBundle,
java.awt.Component parent,
GeometryList geometry,
java.io.File theFile,
GeomReader writer)
Method that writes out geometry to a data file using a specific GeomReader
instance.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public static final Unit[] LENGTH_UNITS
public GeomSSBatch(java.util.ResourceBundle resBundle, java.io.File scriptFile) throws EvalError
resBundle
- The main application's resource bundle. May not be null.scriptFile
- The existing script file to be run. May not be null.EvalError
- if there is a problem setting up BeanShell.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public static void initializeBeanShell(java.lang.String appName, Interpreter bsh, GeomSSApp appInterface) throws EvalError
appName
- The name of this application. May not be null.bsh
- A reference to the BeanShell interpreter to be configured.appInterface
- The interface to GeomSS application methods such as "print".EvalError
public static GeometryList readGeometryData(java.util.ResourceBundle resBundle, java.awt.Component parent, java.io.File theFile) throws java.io.IOException
resBundle
- The main application's resource bundle. May not be null.parent
- The parent frame for dialogs (null is fine).theFile
- The file to be read in. If null
is passed, this
method will do nothing.java.io.IOException
public static void writeGeometryData(java.util.ResourceBundle resBundle, java.awt.Component parent, GeometryList geometry, java.io.File theFile, GeomReader writer) throws java.io.IOException
resBundle
- The main application's resource bundle. May not be null.parent
- The parent frame for dialogs (null is fine).geometry
- The geometry object to be written out. May not be null.theFile
- The file to be written to. May not be null.writer
- The GeomReader to use to write out the file. May not be null.java.io.IOException