public abstract class Plugin extends Object implements PluginInterface
Abstract Plugin class.
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
config |
protected Metadata |
metadata |
protected joptsimple.OptionSet |
options |
protected String[] |
params |
protected joptsimple.OptionParser |
parser |
Constructor and Description |
---|
Plugin()
Constructor for Plugin.
|
Modifier and Type | Method and Description |
---|---|
String |
get_description()
Generates a short description of the plugin, preferably one line.
|
String |
get_syntax()
Generates a "help" message for the user of the plugin.
|
ReturnValue |
parse_parameters()
Parameter validation code goes here.
|
void |
print(String output)
print.
|
void |
println(String output)
println.
|
void |
setConfig(Map<String,String> config)
Let's you set the config this object should use.
|
void |
setMetadata(Metadata metadata)
Lets you set the metadata object
|
void |
setParams(List<String> params)
Lets you set a List of params so the plugin can deal with parameters
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clean_up, do_run, do_test, init
protected joptsimple.OptionParser parser
protected joptsimple.OptionSet options
protected String[] params
protected Metadata metadata
public void setConfig(Map<String,String> config)
setConfig
in interface PluginInterface
config
- A map that includes the key/values from the SeqWare settings file.public void setParams(List<String> params)
setParams
in interface PluginInterface
params
- The parameters specifically passed in to the plugin.public void setMetadata(Metadata metadata)
setMetadata
in interface PluginInterface
metadata
- a Metadata
object.public String get_syntax()
get_syntax
in interface PluginInterface
public String get_description()
get_description
in interface PluginInterface
public ReturnValue parse_parameters()
parse_parameters
in interface PluginInterface
Copyright © 2015 SeqWare. All rights reserved.