Package net.sf.tweety.preferences.plugin
Class PreferencesPlugin
- java.lang.Object
-
- net.sf.tweety.plugin.AbstractTweetyPlugin
-
- net.sf.tweety.preferences.plugin.PreferencesPlugin
-
- All Implemented Interfaces:
TweetyPlugin
,net.xeoh.plugins.base.Plugin
public class PreferencesPlugin extends AbstractTweetyPlugin
The CLI-Plugin for the Preferences-Package- Author:
- Bastian Wolf
-
-
Constructor Summary
Constructors Constructor Description PreferencesPlugin()
Default empty constructor initializing this plugins parameterPreferencesPlugin(java.lang.String[] args)
non-empty constructur in case of errors in JSPF
-
Method Summary
Modifier and Type Method Description void
addParameter(CommandParameter cmdParameter)
adds new command parameter to this pluginjava.lang.String[]
capabilities()
PluginOutput
execute(java.io.File[] input, CommandParameter[] params)
executes the given inputjava.lang.String
getCommand()
returns the command this plugin is called withjava.util.List<CommandParameter>
getParameters()
returns all possible parameters-
Methods inherited from class net.sf.tweety.plugin.AbstractTweetyPlugin
validateParameter, validateParameter
-
-
-
-
Method Detail
-
capabilities
public java.lang.String[] capabilities()
-
getCommand
public java.lang.String getCommand()
Description copied from class:AbstractTweetyPlugin
returns the command this plugin is called with- Specified by:
getCommand
in interfaceTweetyPlugin
- Specified by:
getCommand
in classAbstractTweetyPlugin
- Returns:
- the keyword used in the cli to call this plugin
-
execute
public PluginOutput execute(java.io.File[] input, CommandParameter[] params)
Description copied from class:AbstractTweetyPlugin
executes the given input- Specified by:
execute
in interfaceTweetyPlugin
- Specified by:
execute
in classAbstractTweetyPlugin
- Parameters:
input
- files to be used within the pluginparams
- parameter handled in the plugin (e.g. desired output file, iterations...)- Returns:
- the output resulted after the execution
-
getParameters
public java.util.List<CommandParameter> getParameters()
Description copied from class:AbstractTweetyPlugin
returns all possible parameters- Specified by:
getParameters
in interfaceTweetyPlugin
- Overrides:
getParameters
in classAbstractTweetyPlugin
- Returns:
- parameters allowed with plugin calls
-
addParameter
public void addParameter(CommandParameter cmdParameter)
Description copied from class:AbstractTweetyPlugin
adds new command parameter to this plugin- Overrides:
addParameter
in classAbstractTweetyPlugin
- Parameters:
cmdParameter
- the command parameter to be added
-
-