public abstract class AbstractTweetyPlugin extends java.lang.Object implements TweetyPlugin
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CommandParameter> |
parameters
valid parameters for this plugin
|
Constructor and Description |
---|
AbstractTweetyPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(CommandParameter cmdParameter)
adds new command parameter to this plugin
|
abstract PluginOutput |
execute(java.io.File[] input,
CommandParameter[] params)
executes the given input
|
abstract java.lang.String |
getCommand()
returns the command this plugin is called with
|
java.util.List<CommandParameter> |
getParameters()
returns all possible parameters
|
java.util.ArrayList<CommandParameter> |
validateParameter(java.util.ArrayList<java.lang.String> s)
This method handels instantiations with array-lists instead of a simple string (e.g.
|
CommandParameter |
validateParameter(java.lang.String s)
checks, whether each command parameter given with the plugin call is
valid within is this plugin
|
protected java.util.List<CommandParameter> parameters
public abstract java.lang.String getCommand()
getCommand
in interface TweetyPlugin
public abstract PluginOutput execute(java.io.File[] input, CommandParameter[] params)
execute
in interface TweetyPlugin
input
- files to be used within the pluginparams
- parameter handled in the plugin (e.g. desired output file, iterations...)public void addParameter(CommandParameter cmdParameter)
cmdParameter
- the command parameter to be addedpublic java.util.List<CommandParameter> getParameters()
getParameters
in interface TweetyPlugin
public CommandParameter validateParameter(java.lang.String s) throws java.lang.CloneNotSupportedException
s
- the given parameter stringjava.lang.CloneNotSupportedException
public java.util.ArrayList<CommandParameter> validateParameter(java.util.ArrayList<java.lang.String> s) throws java.lang.CloneNotSupportedException
s
- the ArrayListjava.lang.CloneNotSupportedException