public interface ModuleInterface
This interface defines the required behavior of a SeqWare module. Essentially it assumes a life-cycle made up of several phases for a module, specifying a function for each of these phase that an implementation overrides to provide the code executed during that phase. The phases are:
init()
do_verify_parameters()
do_verify_input()
do_test()
do_run()
do_verify_output()
clean_up()
Information about the the success or failure of each step is packaged into a ReturnValue
object, including anything sent to STDOUT and STDERR.
Modifier and Type | Method and Description |
---|---|
ReturnValue |
clean_up()
Perform post-task clean-up here.
|
ReturnValue |
do_run()
Performs the main tasks for the module.
|
ReturnValue |
do_test()
Perform any active system testing here.
|
ReturnValue |
do_verify_input()
Input data validation code goes here.
|
ReturnValue |
do_verify_output()
Perform post-task tests here.
|
ReturnValue |
do_verify_parameters()
Parameter validation code goes here.
|
String |
get_syntax()
Generates a "help" message for the user of the module.
|
String |
getAlgorithm()
getAlgorithm.
|
ReturnValue |
init()
Module initialization code goes here.
|
void |
setParameters(List<String> params)
setParameters.
|
void setParameters(List<String> params)
setParameters.
params
- a List
object.String get_syntax()
ReturnValue init()
ReturnValue do_verify_parameters()
do_verify_input()
.ReturnValue do_verify_input()
do_verify_parameters()
.ReturnValue do_test()
ReturnValue do_run()
ReturnValue do_verify_output()
ReturnValue clean_up()
Copyright © 2015 SeqWare. All rights reserved.