|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.qedeq.kernel.context.KernelContext
This class provides static access methods for basic informations.
| Method Summary | |
boolean |
checkModule(ModuleAddress address)
Checks if all formulas of a QEDEQ module and its required modules are well formed. |
void |
clearLocalBuffer()
Clear local buffer and all loaded QEDEQ modules. |
ModuleAddress[] |
getAllLoadedModules()
Get list of all currently loaded QEDEQ modules. |
QedeqConfig |
getConfig()
Get access to configuration parameters. |
String |
getDescriptiveKernelVersion()
Get descriptive version information of this kernel. |
static KernelContext |
getInstance()
Get instance of kernel context. |
String |
getKernelVersion()
Get version of this kernel. |
String |
getKernelVersionDirectory()
Get relative version directory of this kernel. |
String |
getMaximalRuleVersion()
Get maximal supported rule version of this kernel. |
ModuleAddress |
getModuleAddress(File file)
Get module address from URL. |
ModuleAddress |
getModuleAddress(String url)
Get module address from URL. |
ModuleAddress |
getModuleAddress(URL url)
Get module address from URL. |
QedeqBo |
getQedeqBo(ModuleAddress address)
Get QedeqBo for an address. |
String |
getSource(ModuleAddress address)
Get source of an QEDEQ module. |
String[] |
getSourceFileExceptionList(ModuleAddress address)
Get description of source file exception list. |
void |
init(InternalKernelServices moduleFactory,
QedeqConfig qedeqConfig)
Kernel initialisation. |
boolean |
isReady()
Is the kernel ready to perform its main tasks. |
boolean |
isRuleVersionSupported(String ruleVersion)
Is a given rule version supported? |
boolean |
loadAllModulesFromQedeq()
Load all QEDEQ modules from project web directory for current kernel. |
QedeqBo |
loadModule(ModuleAddress address)
Get a certain module. |
void |
loadRequiredModules(ModuleAddress address)
Get a certain module. |
void |
removeAllModules()
Remove all modules from memory. |
void |
removeModule(ModuleAddress address)
Remove a certain module. |
void |
shutdown()
Closes the kernel. |
void |
startup()
Start all kernel activity now. |
| 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 final String getKernelVersion()
public final String getKernelVersionDirectory()
getKernelVersionDirectory in interface KernelPropertiespublic final String getDescriptiveKernelVersion()
public final String getMaximalRuleVersion()
public final boolean isRuleVersionSupported(String ruleVersion)
ruleVersion - Check this one.
public QedeqConfig getConfig()
KernelProperties
getConfig in interface KernelProperties
public void init(InternalKernelServices moduleFactory,
QedeqConfig qedeqConfig)
throws IOException
KernelState
init in interface KernelStatemoduleFactory - Factory for loading QEDEQ modules.qedeqConfig - Configuration to work with.
IOException - Initialisation failed.public boolean isReady()
KernelState
isReady in interface KernelStatepublic void shutdown()
KernelState
shutdown in interface KernelStatepublic void startup()
KernelState
startup in interface KernelStatepublic void removeAllModules()
KernelServices
removeAllModules in interface KernelServicespublic void removeModule(ModuleAddress address)
KernelServices
removeModule in interface KernelServicesaddress - Address of module.
public void clearLocalBuffer()
throws IOException
KernelServices
clearLocalBuffer in interface KernelServicesIOException - Deletion of all buffered file was not successful.
public QedeqBo loadModule(ModuleAddress address)
throws SourceFileExceptionList
KernelServices
loadModule in interface KernelServicesaddress - Address of module.
SourceFileExceptionList - Module could not be successfully loaded.public boolean loadAllModulesFromQedeq()
KernelServices
loadAllModulesFromQedeq in interface KernelServices
public void loadRequiredModules(ModuleAddress address)
throws SourceFileExceptionList
KernelServices
loadRequiredModules in interface KernelServicesaddress - Address of module.
SourceFileExceptionList - Required modules could not be successfully loaded.
This can also happen if the required modules references
form a circle.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, if address is maleformed
null is returned.
public ModuleAddress getModuleAddress(URL url)
throws IOException
KernelServices
getModuleAddress in interface KernelServicesurl - URL for QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(String url)
throws IOException
KernelServices
getModuleAddress in interface KernelServicesurl - URL for QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(File file)
throws IOException
KernelServices
getModuleAddress in interface KernelServicesfile - Local QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.
public String getSource(ModuleAddress address)
throws IOException
KernelServicesnull is returned.
getSource in interface KernelServicesaddress - Address for QEDEQ module address.
IOException - Loading failed.public boolean checkModule(ModuleAddress address)
KernelServices
checkModule in interface KernelServicesaddress - Module to check.
public String[] getSourceFileExceptionList(ModuleAddress address)
KernelServices
getSourceFileExceptionList in interface KernelServicesaddress - Get description for this module exceptions.
|
Hilbert II - Version 0.03.09 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |