Class PreferencesPlugin
java.lang.Object
org.tweetyproject.plugin.AbstractTweetyPlugin
org.tweetyproject.preferences.plugin.PreferencesPlugin
- All Implemented Interfaces:
net.xeoh.plugins.base.Plugin,TweetyPlugin
The CLI-Plugin for the Preferences-Package
- Author:
- Bastian Wolf
-
Constructor Summary
ConstructorsConstructorDescriptionDefault empty constructor initializing this plugins parameterPreferencesPlugin(String[] args)non-empty constructur in case of errors in JSPF -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(CommandParameter cmdParameter)adds new command parameter to this pluginString[]execute(File[] input, CommandParameter[] params)executes the given inputreturns the command this plugin is called withreturns all possible parametersMethods inherited from class org.tweetyproject.plugin.AbstractTweetyPlugin
validateParameter, validateParameter
-
Constructor Details
-
PreferencesPlugin
non-empty constructur in case of errors in JSPF- Parameters:
args- some arguments
-
PreferencesPlugin
public PreferencesPlugin()Default empty constructor initializing this plugins parameter
-
-
Method Details
-
capabilities
-
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
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
Description copied from class:AbstractTweetyPluginreturns all possible parameters- Specified by:
getParametersin interfaceTweetyPlugin- Overrides:
getParametersin classAbstractTweetyPlugin- Returns:
- parameters allowed with plugin calls
-
addParameter
Description copied from class:AbstractTweetyPluginadds new command parameter to this plugin- Overrides:
addParameterin classAbstractTweetyPlugin- Parameters:
cmdParameter- the command parameter to be added
-