public abstract class DataProcessor<E>
extends java.lang.Thread
Constructor and Description |
---|
DataProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Remove all GUI elements generated by makeConfigurationGUI().
|
boolean |
getIsEnabled()
Get whether or not this Processor is enabled.
|
boolean |
isStarted()
Returns true if the DataProcessor has started up and objects
are being processed as they arrive.
|
void |
makeConfigurationGUI()
Generate and show the GUI needed to configure the DataProcessor.
|
void |
requestStop()
Request that the data processor stop processing.
|
void |
run()
The run method that causes images to be processed.
|
void |
setApp(ScriptInterface gui)
Receive the ScriptInterface object.
|
void |
setEnabled(boolean isEnabled)
Turn the Processor on or off.
|
void |
setInput(java.util.concurrent.BlockingQueue<E> input)
Sets the input queue where objects to be processed
are received by the DataProcessor.
|
void |
setOutput(java.util.concurrent.BlockingQueue<E> output)
Sets the output queue where objects that have been processed
exit the DataProcessor.
|
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 void makeConfigurationGUI()
public void dispose()
public void setApp(ScriptInterface gui)
public void run()
java.lang.Thread
, this method will be executed
whenever DataProcessor.start() is called.
Do not override this method (it should have been final).run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void requestStop()
public boolean isStarted()
public void setInput(java.util.concurrent.BlockingQueue<E> input)
public void setOutput(java.util.concurrent.BlockingQueue<E> output)
public void setEnabled(boolean isEnabled)
public boolean getIsEnabled()