|
Hilbert II - Version 0.03.08 | ||||||||||
| 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 | |
void |
clearLocalBuffer()
Clear local buffer and all loaded QEDEQ modules. |
ModuleAddress[] |
getAllLoadedModules()
Get list of all currently loaded QEDEQ modules. |
File |
getBufferDirectory()
Get buffer directory for QEDEQ module files. |
QedeqConfig |
getConfig()
Get access to configuration parameters. |
String |
getDescriptiveKernelVersion()
Get descriptive version information of this kernel. |
File |
getGenerationDirectory()
Get directory for generated files. |
static KernelContext |
getInstance()
Get instance of kernel context. |
String |
getKernelVersion()
Get version of this kernel. |
String |
getKernelVersionDirectory()
Get relative version directory of this kernel. |
File |
getLocalFilePath(ModuleAddress address)
Transform an URL address into a local file path where the QEDEQ module is buffered. |
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. |
ModuleProperties |
getModuleProperties(ModuleAddress address)
Get ModuleProperties for an address. |
void |
init(ModuleFactory moduleFactory,
QedeqConfig qedeqConfig)
Kernel initialization. |
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. |
ModuleProperties |
loadModule(ModuleAddress address)
Get a certain module. |
ModuleProperties |
loadModule(QedeqBo module,
Specification spec)
Load 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 Kernelpublic final String getDescriptiveKernelVersion()
public final String getMaximalRuleVersion()
public final boolean isRuleVersionSupported(String ruleVersion)
ruleVersion - Check this one.
public void init(ModuleFactory moduleFactory,
QedeqConfig qedeqConfig)
throws IOException
KernelState
init in interface KernelStatemoduleFactory - Factory for loading QEDEQ modules.qedeqConfig - TODO
IOException - Initialization failed.public boolean isReady()
KernelState
isReady in interface KernelStatepublic QedeqConfig getConfig()
KernelState
getConfig in interface KernelStatepublic void shutdown()
KernelState
shutdown in interface KernelStatepublic void startup()
KernelState
startup in interface KernelStatepublic void removeAllModules()
ModuleFactory
removeAllModules in interface ModuleFactory
public void removeModule(ModuleAddress address)
throws IOException
ModuleFactory
removeModule in interface ModuleFactoryaddress - Address of module.
IOException - Module could not be successfully removed.
public void clearLocalBuffer()
throws IOException
ModuleFactory
clearLocalBuffer in interface ModuleFactoryIOException - Deletion of all buffered file was not successful.
public ModuleProperties loadModule(ModuleAddress address)
throws SourceFileExceptionList
ModuleFactory
loadModule in interface ModuleFactoryaddress - Address of module.
SourceFileExceptionList - Module could not be successfully loaded.
public ModuleProperties loadModule(QedeqBo module,
Specification spec)
throws SourceFileExceptionList
ModuleFactory
loadModule in interface ModuleFactorymodule - This is the current module.spec - Specification of wanted module.
SourceFileExceptionList - Module could not be successfully loaded.public boolean loadAllModulesFromQedeq()
ModuleFactory
loadAllModulesFromQedeq in interface ModuleFactory
public void loadRequiredModules(ModuleAddress address)
throws SourceFileExceptionList
ModuleFactory
loadRequiredModules in interface ModuleFactoryaddress - 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()
ModuleFactory
getAllLoadedModules in interface ModuleFactorypublic File getBufferDirectory()
ModuleFactory
getBufferDirectory in interface ModuleFactorypublic File getGenerationDirectory()
ModuleFactory
getGenerationDirectory in interface ModuleFactorypublic ModuleProperties getModuleProperties(ModuleAddress address)
ModuleFactoryModuleProperties for an address.
getModuleProperties in interface ModuleFactoryaddress - Look for this address.
ModuleProperties, if address is maleformed
null is returned.
public ModuleAddress getModuleAddress(URL url)
throws IOException
ModuleFactory
getModuleAddress in interface ModuleFactoryurl - URL for QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(String url)
throws IOException
ModuleFactory
getModuleAddress in interface ModuleFactoryurl - URL for QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.
public ModuleAddress getModuleAddress(File file)
throws IOException
ModuleFactory
getModuleAddress in interface ModuleFactoryfile - Local QEDEQ module.
IOException - URL has not the correct format for referencing a QEDEQ module.public File getLocalFilePath(ModuleAddress address)
ModuleFactorynull is returned.
getLocalFilePath in interface ModuleFactoryaddress - Get local address for this QEDEQ module address.
address.
|
Hilbert II - Version 0.03.08 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |