Package mgui.neuro.imaging.camino
Class CaminoFunctions
java.lang.Object
mgui.interfaces.Utility
mgui.neuro.imaging.camino.CaminoFunctions
public class CaminoFunctions extends Utility
-
Field Summary
Fields Modifier and Type Field Description static boolean
fail_on_exception
static java.lang.String
input_file
static java.lang.String
output_file
static java.lang.String
root_dir
static int
temp_count
static java.lang.String
temp_input
static java.lang.String
temp_output
-
Constructor Summary
Constructors Constructor Description CaminoFunctions()
-
Method Summary
Modifier and Type Method Description static boolean
deleteTempFiles()
static void
exceptionEncountered()
static java.lang.String
getArgString(java.lang.String[] args)
static void
init()
static boolean
launchBlockingCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger)
static boolean
launchCaminoProcess(CaminoProcess command, java.lang.String args)
static boolean
launchCaminoProcess(PipelineProcessInstance process)
static boolean
launchCaminoProcess(PipelineProcessInstance process, boolean blocking)
static boolean
launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root)
static boolean
launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger)
static boolean
launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger, boolean blocking)
static java.util.ArrayList<java.lang.String>
parseArg(java.lang.String arg)
static java.util.ArrayList<java.lang.String>
parseArg(java.lang.String arg, java.lang.String subject, java.lang.String root)
static void
reset()
static void
resetDefaults()
Since Camino was built to be run from the command line, its static CL_Initializer and OutputManager classes are meant to be reinstantiated upon each function call.static boolean
stopExecution()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
output_file
public static java.lang.String output_file -
root_dir
public static java.lang.String root_dir -
input_file
public static java.lang.String input_file -
temp_input
public static java.lang.String temp_input -
temp_output
public static java.lang.String temp_output -
temp_count
public static int temp_count -
fail_on_exception
public static boolean fail_on_exception
-
-
Constructor Details
-
CaminoFunctions
public CaminoFunctions()
-
-
Method Details
-
launchCaminoProcess
-
init
public static void init() -
reset
public static void reset() -
launchCaminoProcess
-
launchCaminoProcess
-
stopExecution
public static boolean stopExecution() -
launchCaminoProcess
public static boolean launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root) -
launchCaminoProcess
public static boolean launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger) -
launchCaminoProcess
public static boolean launchCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger, boolean blocking) -
launchBlockingCaminoProcess
public static boolean launchBlockingCaminoProcess(PipelineProcessInstance process, java.lang.String subject, java.lang.String root, java.lang.String logger) -
getArgString
public static java.lang.String getArgString(java.lang.String[] args) -
parseArg
public static java.util.ArrayList<java.lang.String> parseArg(java.lang.String arg) -
resetDefaults
public static void resetDefaults()Since Camino was built to be run from the command line, its static CL_Initializer and OutputManager classes are meant to be reinstantiated upon each function call. Since we want to call Camino functions directly, from within the same JVM instance, we need to initialize the variables manually to their defaults, which many processes assume. -
parseArg
public static java.util.ArrayList<java.lang.String> parseArg(java.lang.String arg, java.lang.String subject, java.lang.String root) -
deleteTempFiles
public static boolean deleteTempFiles() -
exceptionEncountered
public static void exceptionEncountered()
-