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
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisDynamicprivate static java.lang.StringPREF__AGGR_DESCRIPTIONprivate static java.lang.StringPREF__AGGR_IDENTIFIERprivate static java.lang.String[]PREF__AGGR_RULESprivate static java.lang.StringPREF__CALL_PARAMETERprivate static java.lang.StringPREF__DYN_DESCRIPTIONprivate static java.lang.StringPREF__DYN_IDENTIFIERprivate static java.lang.String[]PREF__DYN_RULESprivate static java.lang.StringPREF__UP_DESCRIPTIONprivate static java.lang.StringPREF__UP_IDENTIFIER-
Fields inherited from class net.sf.tweety.plugin.AbstractTweetyPlugin
parameters
-
-
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 voidaddParameter(CommandParameter cmdParameter)adds new command parameter to this pluginjava.lang.String[]capabilities()PluginOutputexecute(java.io.File[] input, CommandParameter[] params)executes the given inputjava.lang.StringgetCommand()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
-
-
-
-
Field Detail
-
PREF__CALL_PARAMETER
private static final java.lang.String PREF__CALL_PARAMETER
- See Also:
- Constant Field Values
-
PREF__AGGR_IDENTIFIER
private static final java.lang.String PREF__AGGR_IDENTIFIER
- See Also:
- Constant Field Values
-
PREF__AGGR_DESCRIPTION
private static final java.lang.String PREF__AGGR_DESCRIPTION
- See Also:
- Constant Field Values
-
PREF__AGGR_RULES
private static final java.lang.String[] PREF__AGGR_RULES
-
PREF__DYN_IDENTIFIER
private static final java.lang.String PREF__DYN_IDENTIFIER
- See Also:
- Constant Field Values
-
PREF__DYN_DESCRIPTION
private static final java.lang.String PREF__DYN_DESCRIPTION
- See Also:
- Constant Field Values
-
PREF__DYN_RULES
private static final java.lang.String[] PREF__DYN_RULES
-
PREF__UP_IDENTIFIER
private static final java.lang.String PREF__UP_IDENTIFIER
- See Also:
- Constant Field Values
-
PREF__UP_DESCRIPTION
private static final java.lang.String PREF__UP_DESCRIPTION
- See Also:
- Constant Field Values
-
isDynamic
private boolean isDynamic
-
-
Method Detail
-
capabilities
public java.lang.String[] capabilities()
-
getCommand
public java.lang.String getCommand()
Description copied from class:AbstractTweetyPluginreturns the command this plugin is called with- Specified by:
getCommandin interfaceTweetyPlugin- Specified by:
getCommandin 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:AbstractTweetyPluginexecutes the given input- Specified by:
executein interfaceTweetyPlugin- Specified by:
executein 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:AbstractTweetyPluginreturns all possible parameters- Specified by:
getParametersin interfaceTweetyPlugin- Overrides:
getParametersin classAbstractTweetyPlugin- Returns:
- parameters allowed with plugin calls
-
addParameter
public void addParameter(CommandParameter cmdParameter)
Description copied from class:AbstractTweetyPluginadds new command parameter to this plugin- Overrides:
addParameterin classAbstractTweetyPlugin- Parameters:
cmdParameter- the command parameter to be added
-
-