public class PreferencesPlugin extends AbstractTweetyPlugin
Modifier and Type | Field and Description |
---|---|
private boolean |
isDynamic |
private static java.lang.String |
PREF__AGGR_DESCRIPTION |
private static java.lang.String |
PREF__AGGR_IDENTIFIER |
private static java.lang.String[] |
PREF__AGGR_RULES |
private static java.lang.String |
PREF__CALL_PARAMETER |
private static java.lang.String |
PREF__DYN_DESCRIPTION |
private static java.lang.String |
PREF__DYN_IDENTIFIER |
private static java.lang.String[] |
PREF__DYN_RULES |
private static java.lang.String |
PREF__UP_DESCRIPTION |
private static java.lang.String |
PREF__UP_IDENTIFIER |
parameters
Constructor and Description |
---|
PreferencesPlugin()
Default empty constructor initializing this plugins parameter
|
PreferencesPlugin(java.lang.String[] args)
non-empty constructur in case of errors in JSPF
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(CommandParameter cmdParameter)
adds new command parameter to this plugin
|
java.lang.String[] |
capabilities() |
PluginOutput |
execute(java.io.File[] input,
CommandParameter[] params)
executes the given input
|
java.lang.String |
getCommand()
returns the command this plugin is called with
|
java.util.List<CommandParameter> |
getParameters()
returns all possible parameters
|
validateParameter, validateParameter
private static final java.lang.String PREF__CALL_PARAMETER
private static final java.lang.String PREF__AGGR_IDENTIFIER
private static final java.lang.String PREF__AGGR_DESCRIPTION
private static final java.lang.String[] PREF__AGGR_RULES
private static final java.lang.String PREF__DYN_IDENTIFIER
private static final java.lang.String PREF__DYN_DESCRIPTION
private static final java.lang.String[] PREF__DYN_RULES
private static final java.lang.String PREF__UP_IDENTIFIER
private static final java.lang.String PREF__UP_DESCRIPTION
private boolean isDynamic
public PreferencesPlugin(java.lang.String[] args)
args
- public PreferencesPlugin()
public java.lang.String[] capabilities()
public java.lang.String getCommand()
AbstractTweetyPlugin
getCommand
in interface TweetyPlugin
getCommand
in class AbstractTweetyPlugin
public PluginOutput execute(java.io.File[] input, CommandParameter[] params)
AbstractTweetyPlugin
execute
in interface TweetyPlugin
execute
in class AbstractTweetyPlugin
input
- files to be used within the pluginparams
- parameter handled in the plugin (e.g. desired output file, iterations...)public java.util.List<CommandParameter> getParameters()
AbstractTweetyPlugin
getParameters
in interface TweetyPlugin
getParameters
in class AbstractTweetyPlugin
public void addParameter(CommandParameter cmdParameter)
AbstractTweetyPlugin
addParameter
in class AbstractTweetyPlugin
cmdParameter
- the command parameter to be added