public abstract class AbstractTweetyPlugin extends Object implements TweetyPlugin
| Modifier and Type | Field and Description |
|---|---|
protected 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(File[] input,
CommandParameter[] params)
executes the given input
|
abstract String |
getCommand()
returns the command this plugin is called with
|
List<CommandParameter> |
getParameters()
returns all possible parameters
|
ArrayList<CommandParameter> |
validateParameter(ArrayList<String> s)
This method handels instantiations with array-lists instead of a simple string (e.g.
|
CommandParameter |
validateParameter(String s)
checks, whether each command parameter given with the plugin call is
valid within is this plugin
|
protected List<CommandParameter> parameters
public abstract String getCommand()
getCommand in interface TweetyPluginpublic abstract PluginOutput execute(File[] input, CommandParameter[] params)
execute in interface TweetyPlugininput - 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 List<CommandParameter> getParameters()
getParameters in interface TweetyPluginpublic CommandParameter validateParameter(String s) throws CloneNotSupportedException
s - the given parameter stringCloneNotSupportedExceptionpublic ArrayList<CommandParameter> validateParameter(ArrayList<String> s) throws CloneNotSupportedException
s - the ArrayListCloneNotSupportedExceptionCopyright © 2018. All rights reserved.