|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.KernelContext
public final class KernelContext
This class provides static access methods for the kernel.
| Method Summary | |
|---|---|
boolean |
checkFormallyProved(ModuleAddress address)
Check if all propositions of this and all required modules have correct formal proofs. |
boolean |
checkWellFormedness(ModuleAddress address)
Check if all formulas of a QEDEQ module and its required modules are well formed. |
void |
clearAllPluginResults(ModuleAddress address)
Clear all plugin warnings and errors for given module. |
boolean |
clearLocalBuffer()
Clear local buffer and all loaded QEDEQ modules. |
java.lang.Object |
executePlugin(java.lang.String pluginName,
ModuleAddress address,
java.lang.Object data)
Execute plugin on given QEDEQ module. |
ModuleAddress[] |
getAllLoadedModules()
Get list of all currently loaded QEDEQ modules. |
java.lang.String |
getBuildId()
Get build information. |
QedeqConfig |
getConfig()
|
java.lang.String |
getDedication()
Get dedication for this kernel. |
java.lang.String |
getDescriptiveKernelVersion()
Get descriptive version information of this kernel. |
static KernelContext |
getInstance()
Get instance of kernel context. |
java.lang.String |
getKernelCodeName()
Get code name of this kernel. |
java.lang.String |
getKernelVersion()
Get version of this kernel. |
java.lang.String |
getKernelVersionDirectory()
Get relative version directory of this kernel. |
java.lang.String |
getMaximalRuleVersion()
Get maximal supported rule version of this kernel. |
ModuleAddress |
getModuleAddress(java.io.File file)
Get module address from URL. |
ModuleAddress |
getModuleAddress(java.lang.String url)
Get module address from URL. |
ModuleAddress |
getModuleAddress(java.net.URL url)
Get module address from URL. |
ModuleService[] |
getPlugins()
Get all installed plugins. |
QedeqBo |
getQedeqBo(ModuleAddress address)
Get QedeqBo for an address. |
ServiceJob[] |
getRunningServiceProcesses()
Get all running service processes. |
ServiceJob[] |
getServiceProcesses()
Get information about all service processes. |
java.lang.String |
getSource(ModuleAddress address)
Get source of an QEDEQ module. |
void |
init(QedeqConfig config,
Kernel moduleServices)
Init the kernel. |
boolean |
isRuleVersionSupported(java.lang.String ruleVersion)
Is a given rule version supported? |
boolean |
isSetConnectionTimeOutSupported()
Does URLConnection support the method setConnectionTimeOut
in the currently running JVM. |
boolean |
isSetReadTimeoutSupported()
Does URLConnection support the method setReadTimeOut
in the currently running JVM. |
boolean |
loadAllModulesFromQedeq()
Load all QEDEQ modules from project web directory for current kernel. |
QedeqBo |
loadModule(ModuleAddress address)
Get a certain module. |
boolean |
loadRequiredModules(ModuleAddress address)
Get required modules of given module. |
boolean |
removeAllModules()
Remove all modules from memory. |
void |
removeModule(ModuleAddress address)
Remove a QEDEQ module from memory. |
void |
shutdown()
Shutdown the kernel. |
void |
startup()
Startup the kernel. |
void |
terminateAllServiceProcesses()
Stop all currently running service executions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final KernelContext getInstance()
public java.lang.String getBuildId()
KernelProperties
getBuildId in interface KernelPropertiespublic final java.lang.String getKernelVersion()
KernelProperties
getKernelVersion in interface KernelPropertiespublic final java.lang.String getKernelCodeName()
KernelProperties
getKernelCodeName in interface KernelPropertiespublic final java.lang.String getKernelVersionDirectory()
KernelProperties
getKernelVersionDirectory in interface KernelPropertiespublic final java.lang.String getDescriptiveKernelVersion()
KernelProperties
getDescriptiveKernelVersion in interface KernelPropertiespublic final java.lang.String getDedication()
KernelProperties
getDedication in interface KernelPropertiespublic final java.lang.String getMaximalRuleVersion()
KernelProperties
getMaximalRuleVersion in interface KernelPropertiespublic final boolean isRuleVersionSupported(java.lang.String ruleVersion)
KernelProperties
isRuleVersionSupported in interface KernelPropertiesruleVersion - Check this one.
public boolean isSetConnectionTimeOutSupported()
KernelPropertiesURLConnection support the method setConnectionTimeOut
in the currently running JVM. This should be true since version 1.5 but false for 1.4.2.
isSetConnectionTimeOutSupported in interface KernelPropertiespublic boolean isSetReadTimeoutSupported()
KernelPropertiesURLConnection support the method setReadTimeOut
in the currently running JVM. This should be true since version 1.5 but false for 1.4.2.
isSetReadTimeoutSupported in interface KernelPropertiespublic QedeqConfig getConfig()
public void init(QedeqConfig config,
Kernel moduleServices)
throws java.io.IOException
config - Configuration access. Must not be null.moduleServices - Services for the kernel. Must not be null.
java.lang.IllegalStateException - Kernel is already initialized.
java.io.IOException - Initialization failure.public void startup()
public void shutdown()
public boolean removeAllModules()
KernelServices
removeAllModules in interface KernelServicespublic void removeModule(ModuleAddress address)
KernelServices
removeModule in interface KernelServicesaddress - Remove module identified by this address.public boolean clearLocalBuffer()
KernelServices
clearLocalBuffer in interface KernelServicespublic QedeqBo loadModule(ModuleAddress address)
KernelServices
loadModule in interface KernelServicesaddress - Address of module.
public boolean loadAllModulesFromQedeq()
KernelServices
loadAllModulesFromQedeq in interface KernelServicespublic boolean loadRequiredModules(ModuleAddress address)
KernelServices
loadRequiredModules in interface KernelServicesaddress - Address of module.
public ModuleAddress[] getAllLoadedModules()
KernelServices
getAllLoadedModules in interface KernelServicespublic QedeqBo getQedeqBo(ModuleAddress address)
KernelServicesQedeqBo for an address.
getQedeqBo in interface KernelServicesaddress - Look for this address.
QedeqBo.
public ModuleAddress getModuleAddress(java.net.URL url)
throws java.io.IOException
KernelServices
getModuleAddress in interface KernelServicesurl - URL for QEDEQ module.
java.io.IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(java.lang.String url)
throws java.io.IOException
KernelServices
getModuleAddress in interface KernelServicesurl - URL for QEDEQ module.
java.io.IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(java.io.File file)
throws java.io.IOException
KernelServices
getModuleAddress in interface KernelServicesfile - Local QEDEQ module.
java.io.IOException - URL has not the correct format for referencing a QEDEQ module.
public java.lang.String getSource(ModuleAddress address)
throws java.io.IOException
KernelServicesnull is returned.
getSource in interface KernelServicesaddress - Address for QEDEQ module address.
java.io.IOException - Loading failed.public boolean checkWellFormedness(ModuleAddress address)
KernelServices
checkWellFormedness in interface KernelServicesaddress - Module to check.
public boolean checkFormallyProved(ModuleAddress address)
KernelServices
checkFormallyProved in interface KernelServicesaddress - Module to check.
public ModuleService[] getPlugins()
KernelServices
getPlugins in interface KernelServices
public java.lang.Object executePlugin(java.lang.String pluginName,
ModuleAddress address,
java.lang.Object data)
throws InterruptException
KernelServices
executePlugin in interface KernelServicespluginName - Plugin id.address - QEDEQ module address.data - Process data. Additional data beside module.
null.
InterruptException - User canceled further processing.public void clearAllPluginResults(ModuleAddress address)
KernelServices
clearAllPluginResults in interface KernelServicesaddress - QEDEQ module address.public ServiceJob[] getServiceProcesses()
KernelServices
getServiceProcesses in interface KernelServicespublic ServiceJob[] getRunningServiceProcesses()
KernelServices
getRunningServiceProcesses in interface KernelServicespublic void terminateAllServiceProcesses()
KernelServices
terminateAllServiceProcesses in interface KernelServices
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||