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
ConstructorDescriptionDefault empty constructor initializing this plugins parameterPreferencesPlugin
(String[] args) non-empty constructur in case of errors in JSPF -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(CommandParameter cmdParameter) adds new command parameter to this pluginString[]
Return capabilitiesexecute
(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: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
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
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
Description copied from class:AbstractTweetyPlugin
adds new command parameter to this plugin- Overrides:
addParameter
in classAbstractTweetyPlugin
- Parameters:
cmdParameter
- the command parameter to be added
-