|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AlgorithmBase edu.jhu.ece.iacl.jist.pipeline.ProcessingAlgorithm
public abstract class ProcessingAlgorithm
Processing Algorithm for MAPS. This class should be extended for each particular algorithm implementation. Methods createInputParameters(), createOutputParameters() and execute() should be overridden for each algorithm. createInputParameters() and createOutputParameters() are executed in the default constructor for ProcessingAlgorithm. execute() is executed after the user presses "OK" and all the input parameters validate.
Field Summary | |
---|---|
protected AlgorithmInformation |
algorithmInformation
Algorithm information associated with all algorithms. |
protected ParamCollection |
inputParams
The input parameters. |
static float |
JIST_VERSION
The Constant MAPS version. |
protected ParamCollection |
outputParams
The output parameters. |
protected ParamPerformance |
performance
Algorithm performance information. |
protected boolean |
runningInSeparateProcess
Run in separate process. |
Constructor Summary | |
---|---|
ProcessingAlgorithm()
Constructor creates input and output parameters and assigns the title of this algorithm to be the label for the input parameters. |
Method Summary | |
---|---|
protected abstract void |
createInputParameters(ParamCollection inputParams)
Create input parameters. |
protected abstract void |
createOutputParameters(ParamCollection outputParams)
Create output parameters. |
protected abstract void |
execute(CalculationMonitor monitor)
Execute your algorithm. |
java.io.File |
getAboutFile()
Location of file that describes the algorithm. |
AlgorithmInformation |
getAlgorithmInformation()
Get algorithm information for this algorithm. |
java.lang.String |
getAlgorithmLabel()
Get algorithm label from input parameters. |
java.lang.String |
getAlgorithmName()
Get algorithm name from input parameters. |
java.lang.String[] |
getDefaultJVMArgs()
Default JVM Arguments --- currently only the Sun VM is supported |
ParamCollection |
getInput()
Get input parameters. |
java.io.File |
getMapFile()
Get module definition file. |
ParamCollection |
getOutput()
Get output parameters. |
java.io.File |
getOutputDirectory()
Get output directory. |
java.awt.Dimension |
getPreferredSize()
Get preferred size for algorithm The default is null. |
long |
getTimeStamp()
Get cpu timestamp for this thread in msec. |
java.io.File |
getUsageFile()
Location of file that describes how to use the algorithm. |
void |
init(java.io.File pipeFile)
Initialize parameters and algorithm. |
void |
init(PipeAlgorithm pipe)
Initialize parameters and algorithm. |
boolean |
isRunningInSeparateProcess()
Checks if is running in separate process. |
boolean |
load(java.io.File f)
Load input parameters from file and execute algorithm. |
void |
runAlgorithm()
Run algorithm with new calculation monitor. |
boolean |
runAlgorithm(CalculationMonitor monitor)
Run algorithm with calculation monitor. |
void |
saveResources(boolean overrideSubdirectories)
|
void |
setInput(ParamCollection inputParams)
Set input parameters. |
void |
setMapFile(java.io.File mapFile)
Set module definition file. |
void |
setOutput(ParamCollection outputParams)
Set output parameters. |
void |
setOutputDirectory(java.io.File outputDir)
Set output directory. |
void |
setOutputMetaFile(java.io.File file)
|
void |
setPreferredSize(java.awt.Dimension d)
Get preferred size for algorithm The default is null. |
void |
setRunningInSeparateProcess(boolean runningInSeperateProcess)
Sets the running in separate process. |
void |
writeSummaryFile()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float JIST_VERSION
protected ParamCollection inputParams
protected ParamCollection outputParams
protected ParamPerformance performance
protected AlgorithmInformation algorithmInformation
protected boolean runningInSeparateProcess
Constructor Detail |
---|
public ProcessingAlgorithm()
Method Detail |
---|
public java.lang.String[] getDefaultJVMArgs()
protected abstract void createInputParameters(ParamCollection inputParams)
inputParams
- the input parametersprotected abstract void createOutputParameters(ParamCollection outputParams)
outputParams
- the output parametersprotected abstract void execute(CalculationMonitor monitor) throws AlgorithmRuntimeException
monitor
- progress monitor
AlgorithmRuntimeException
- the algorithm runtime exceptionpublic java.io.File getAboutFile()
public AlgorithmInformation getAlgorithmInformation()
public java.lang.String getAlgorithmLabel()
public java.lang.String getAlgorithmName()
public ParamCollection getInput()
public java.io.File getMapFile()
public ParamCollection getOutput()
public java.io.File getOutputDirectory()
public java.awt.Dimension getPreferredSize()
public long getTimeStamp()
public java.io.File getUsageFile()
public void init(java.io.File pipeFile)
pipeFile
- the pipe filepublic void init(PipeAlgorithm pipe)
pipe
- the pipepublic boolean load(java.io.File f)
f
- input parameter file
public void runAlgorithm()
public boolean runAlgorithm(CalculationMonitor monitor)
monitor
- calculation monitor
public void setInput(ParamCollection inputParams)
inputParams
- input parameterspublic void setMapFile(java.io.File mapFile)
mapFile
- module filepublic void setOutput(ParamCollection outputParams)
outputParams
- output parameterspublic void setOutputDirectory(java.io.File outputDir)
outputDir
- output directorypublic void setPreferredSize(java.awt.Dimension d)
d
- the dimensionpublic boolean isRunningInSeparateProcess()
public void setRunningInSeparateProcess(boolean runningInSeperateProcess)
runningInSeperateProcess
- the runInSeperateProcess to setpublic void setOutputMetaFile(java.io.File file)
public void saveResources(boolean overrideSubdirectories)
public void writeSummaryFile() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |