edu.jhu.ece.iacl.jist.pipeline
Class MipavScriptRunner

java.lang.Object
  extended by ScriptRunner
      extended by edu.jhu.ece.iacl.jist.pipeline.MipavScriptRunner

public class MipavScriptRunner
extends ScriptRunner

Overload MIPAV's script runner.

Author:
Blake Lucas (bclucas@jhu.edu)

Constructor Summary
MipavScriptRunner()
          Instantiates a new mipav script runner.
 
Method Summary
static void runScript(java.lang.String scriptFile)
          Parses and runs the commands contained within a given script file.
 boolean runScript(java.lang.String file, java.util.Vector imageNameList, java.util.Vector voiPathList)
          Execute a script, using a set of images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MipavScriptRunner

public MipavScriptRunner()
Instantiates a new mipav script runner.

Method Detail

runScript

public static final void runScript(java.lang.String scriptFile)
                            throws ParserException
Parses and runs the commands contained within a given script file.

Parameters:
scriptFile - The full path to the script file on disk which should be parsed.
Throws:
ParserException - If a problem is encountered while parsing the script.

runScript

public boolean runScript(java.lang.String file,
                         java.util.Vector imageNameList,
                         java.util.Vector voiPathList)
Execute a script, using a set of images.

Parameters:
file - The path to the script file we want to run.
imageNameList - The list of the names of images to use while executing the script.
voiPathList - A list of VOI paths, in the order returned by Parser.getImageVarsUsedInScript().
Returns:
True if execution of the script was successful, false otherwise.