Package jason.util
Class Config
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
Jason configuration
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringstatic final Stringruntime jade arguments (the same used in jade.Boot)static final Stringboolean, whether to start jade RMA or notstatic final Stringboolean, whether to start jade Sniffer or notstatic final Stringpath to jason.jarstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static booleanprotected static Configstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackage(String key, File value) static booleanbooleanbooleancheckJarHasFile(String jarFile, String file) voidstatic StringfindJarInDirectory(File dir, String prefix) voidfix()Set most important parameters with default valuesstatic Configget()static Configget(boolean tryToFixConfig) booleangetBoolean(String key) getClassForClassLoaderTest(String jarEntry) getDefaultResource(String templateName) protected StringgetHome()Return the jade args (those used in jade.Boot)String[]getJarFileForFixTest(String jarEntry) protected StringgetJarFromClassPath(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 storedbooleanload()Returns true if the file is loaded correctlystatic voidstatic voidvoidsetShowFixMsgs(boolean b) voidstore()voidbooleantryToFixJarFileConf(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()
-