public abstract class Module extends Object implements ModuleInterface
Abstract Module class.
| Modifier and Type | Field and Description |
|---|---|
protected int |
processingAccession |
static String |
VERSION
Constant
VERSION="0.7.0" |
| Constructor and Description |
|---|
Module() |
| Modifier and Type | Method and Description |
|---|---|
ReturnValue |
clean_up()
clean_up.
|
abstract ReturnValue |
do_run()
do_run.
|
abstract ReturnValue |
do_test()
do_test.
|
abstract ReturnValue |
do_verify_input()
do_verify_input.
|
abstract ReturnValue |
do_verify_output()
do_verify_output.
|
abstract ReturnValue |
do_verify_parameters()
do_verify_parameters.
|
String |
get_galaxy_xml()
Output Galaxy definition files so you can use this module with Galaxy.
|
String |
get_syntax()
Generates a "help" message for the user of the module.
|
String |
getAlgorithm()
Getter for the field
algorithm. |
Metadata |
getMetadata()
Getter for the field
metadata. |
protected joptsimple.OptionParser |
getOptionParser()
getOptionParser.
|
List<String> |
getParameters()
Getter for the field
parameters. |
int |
getProcessingAccession()
Getter for the field
processingAccession. |
File |
getStderrFile()
Getter for the file where the stderr will be redirected.
|
File |
getStdoutFile()
Getter for the file where the stdout will be redirected.
|
ReturnValue |
init()
init.
|
void |
setAlgorithm(String algorithm)
Setter for the field
algorithm. |
void |
setMetadata(Metadata metadata)
Setter for the field
metadata. |
void |
setParameters(List<String> parameters)
setParameters.
|
void |
setProcessingAccession(int accession)
Setter for the field
processingAccession. |
void |
setStderrFile(File stderrFile)
Added by Xiaoshu Wang: Setter for the file that will be used to redirect stderr
|
void |
setStdoutFile(File stdoutFile)
Setter for the field
stdoutFile. |
public static final String VERSION
VERSION="0.7.0"protected int processingAccession
public File getStdoutFile()
public void setStdoutFile(File stdoutFile)
Setter for the field stdoutFile.
stdoutFile - a File object.public File getStderrFile()
public void setStderrFile(File stderrFile)
stderrFile - the stderr file objectpublic String getAlgorithm()
Getter for the field algorithm.
getAlgorithm in interface ModuleInterfaceString object.public void setAlgorithm(String algorithm)
Setter for the field algorithm.
algorithm - a String object.public void setMetadata(Metadata metadata)
Setter for the field metadata.
metadata - a Metadata object.public List<String> getParameters()
Getter for the field parameters.
List object.public void setParameters(List<String> parameters)
setParameters.
This method doesn't just copy the list, it actually parses through the list and looks for values that start with " or ' and then attempts to merge other parameters separated by space until an param ending with " or ' is found. This is to work around a limitation in JOpt. It breaks apart arguments by space regarless if the arg is a quoted string (and hence should be treated as one arg)setParameters in interface ModuleInterfaceparameters - protected joptsimple.OptionParser getOptionParser()
getOptionParser.
OptionParser object.public String get_syntax()
get_syntax in interface ModuleInterfacepublic String get_galaxy_xml()
String object.public abstract ReturnValue do_run()
do_run.
do_run in interface ModuleInterfaceReturnValue object.public ReturnValue init()
init.
init in interface ModuleInterfaceReturnValue object.public ReturnValue clean_up()
clean_up.
clean_up in interface ModuleInterfaceReturnValue object.public abstract ReturnValue do_test()
do_test.
do_test in interface ModuleInterfaceReturnValue object.public abstract ReturnValue do_verify_input()
do_verify_input.
do_verify_input in interface ModuleInterfaceReturnValue object.public abstract ReturnValue do_verify_parameters()
do_verify_parameters.
do_verify_parameters in interface ModuleInterfaceReturnValue object.public abstract ReturnValue do_verify_output()
do_verify_output.
do_verify_output in interface ModuleInterfaceReturnValue object.public int getProcessingAccession()
Getter for the field processingAccession.
public void setProcessingAccession(int accession)
Setter for the field processingAccession.
accession - a int.Copyright © 2015 SeqWare. All rights reserved.