public class CliMain extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARG__CALLED_PLUGIN
The argument name for the called plugin
|
static String |
ARG__CALLED_PLUGIN_SHORT
The argument name for the called plugin (short)
|
static String |
ARG__DEBUG_FLAG
The argument name for debugging output
|
static String |
ARG__DEBUG_FLAG_SHORT
The argument name for debugging output (short)
|
static String |
ARG__INPUT_FILES
The argument name for the input file(s)
|
static String |
ARG__INPUT_FILES_SHORT
The argument name for the input file(s) (short)
|
static String |
ARG__OUTPUT_FILE
The argument name for the output file
|
static String |
ARG__OUTPUT_FILE_SHORT
The argument name for the output file (short)
|
static String |
HELPTEXT |
static String |
TWEETY_CLI_DEFAULT_CONFIG |
| Constructor and Description |
|---|
CliMain() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
configCLI()
This method is meant to load the tweety plugin pathes on startup
|
static ArrayList<net.sf.tweety.plugin.parameter.CommandParameter> |
instantiateParameters(net.sf.tweety.plugin.TweetyPlugin tp,
ArrayList<ArrayList<String>> inparams)
instantiates each given input parameter within the called plugin - if
possible
|
static void |
main(String[] args) |
void |
printConfiguration()
This function allows to print the content of the current configuration
file.
|
static void |
printHelpText()
prints help text if cli is called with parameter "--help" or empty
argument array
|
void |
setConfigurationFilePath(String path) |
void |
setHelptextPath(String path) |
public static final String HELPTEXT
public static final String TWEETY_CLI_DEFAULT_CONFIG
public static final String ARG__CALLED_PLUGIN
public static final String ARG__CALLED_PLUGIN_SHORT
public static final String ARG__INPUT_FILES
public static final String ARG__INPUT_FILES_SHORT
public static final String ARG__OUTPUT_FILE
public static final String ARG__OUTPUT_FILE_SHORT
public static final String ARG__DEBUG_FLAG
public static final String ARG__DEBUG_FLAG_SHORT
public static void printHelpText()
public static Map<String,String> configCLI() throws org.apache.commons.configuration.ConfigurationException, FileNotFoundException
org.apache.commons.configuration.ConfigurationExceptionFileNotFoundExceptionpublic void printConfiguration()
public void setConfigurationFilePath(String path)
path - public void setHelptextPath(String path)
path - public static ArrayList<net.sf.tweety.plugin.parameter.CommandParameter> instantiateParameters(net.sf.tweety.plugin.TweetyPlugin tp, ArrayList<ArrayList<String>> inparams) throws CloneNotSupportedException
tp - the called Tweety-Plugin Implementationinparams - the parameter given as inputCloneNotSupportedException - if the CommandParameter does not implement Cloneablepublic static void main(String[] args)
Copyright © 2018. All rights reserved.