Package jason.util
Class Config
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
Jason configuration
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
static final String
runtime jade arguments (the same used in jade.Boot)static final String
boolean, whether to start jade RMA or notstatic final String
boolean, whether to start jade Sniffer or notstatic final String
path to jason.jarstatic final String
static final String
static final String
static final String
static final String
static final String
protected static boolean
protected static Config
static final String
static final String
static final String
static final String
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPackage
(String key, File value) static boolean
boolean
boolean
checkJarHasFile
(String jarFile, String file) void
static String
findJarInDirectory
(File dir, String prefix) void
fix()
Set most important parameters with default valuesstatic Config
get()
static Config
get
(boolean tryToFixConfig) boolean
getBoolean
(String key) getClassForClassLoaderTest
(String jarEntry) getDefaultResource
(String templateName) protected String
getHome()
Return the jade args (those used in jade.Boot)String[]
getJarFileForFixTest
(String jarEntry) protected String
getJarFromClassPath
(String file, String fileInsideJar) returns the jason home (based on jason.jar)Returns the full path to the jason.jar filegetPackage
(String key) getTemplate
(String templateName) returns the file where the user preferences are storedboolean
load()
Returns true if the file is loaded correctlystatic void
static void
void
setShowFixMsgs
(boolean b) void
store()
void
boolean
tryToFixJarFileConf
(String jarEntry, String jarFileNamePrefix) Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Field Details
-
JASON_JAR
path to jason.jar- See Also:
-
JASON_PKG
- See Also:
-
JADE_ARGS
runtime jade arguments (the same used in jade.Boot)- See Also:
-
JADE_RMA
boolean, whether to start jade RMA or not- See Also:
-
JADE_SNIFFER
boolean, whether to start jade Sniffer or not- See Also:
-
WARN_SING_VAR
- See Also:
-
SHOW_ANNOTS
- See Also:
-
SHORT_UNNAMED_VARS
- See Also:
-
START_WEB_MI
- See Also:
-
START_WEB_EI
- See Also:
-
START_WEB_OI
- See Also:
-
NB_TH_SCH
- See Also:
-
KQML_RECEIVED_FUNCTOR
- See Also:
-
KQML_PLANS_FILE
- See Also:
-
singleton
-
configFactory
-
showFixMsgs
protected static boolean showFixMsgs -
packages
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
setClassFactory
-
get
-
get
-
setShowFixMsgs
public void setShowFixMsgs(boolean b) -
getUserConfFile
returns the file where the user preferences are stored -
getLocalConfFile
-
getFileConfComment
-
load
public boolean load()Returns true if the file is loaded correctly -
getBoolean
-
put
-
getJasonJar
Returns the full path to the jason.jar file -
getJasonHome
returns the jason home (based on jason.jar) -
getJadeArgs
Return the jade args (those used in jade.Boot) -
getJadeArrayArgs
-
getKqmlFunctor
-
getKqmlPlansFile
-
fix
public void fix()Set most important parameters with default values -
store
public void store() -
store
-
getJasonVersion
-
getJasonBuiltDate
-
getClassForClassLoaderTest
-
getJarFileForFixTest
-
tryToFixJarFileConf
-
findJarInDirectory
-
checkJar
-
checkJar
-
checkJarHasFile
-
getJarFromClassPath
-
getTemplate
-
getHome
-
getDefaultResource
- Throws:
IOException
-
main
-
getMindInspectorArchClassName
-
getMindInspectorWebServerClassName
-
getPresentation
-
addPackage
-
getPackage
-
getPackages
-
clearPackages
public void clearPackages()
-