|
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.bo.control.DefaultInternalKernelServices
This class provides access methods for loading QEDEQ modules.
| Constructor Summary | |
DefaultInternalKernelServices(KernelProperties kernel,
ModuleLoader loader)
Constructor. |
|
| Method Summary | |
void |
autoReloadLastSessionChecked()
If configured load all QEDEQ modules that where successfully loaded the last time. |
boolean |
checkModule(ModuleAddress address)
Checks if all formulas of a QEDEQ module and its required modules are well formed. |
void |
clearLocalBuffer()
Clear local file 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. |
File |
getGenerationDirectory()
Get directory for generated files. |
KernelQedeqBo |
getKernelQedeqBo(ModuleAddress address)
Get KernelQedeqBo for an address. |
File |
getLocalFilePath(ModuleAddress address)
Transform an URL address into a relative local file path. |
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. |
boolean |
loadAllModulesFromQedeq()
Load all QEDEQ modules from project web directory for current kernel. |
QedeqBo |
loadModule(ModuleAddress address)
Get a certain module. |
KernelQedeqBo |
loadModule(ModuleAddress parent,
Specification spec)
Load specified QEDEQ module from QEDEQ parent module. |
boolean |
loadPreviouslySuccessfullyLoadedModules()
Load all previously checked QEDEQ modules. |
void |
loadRequiredModules(ModuleAddress address)
Get a certain module. |
void |
removeAllModules()
Remove all modules from memory. |
void |
removeModule(KernelQedeqBo prop)
Remove a QEDEQ module from memory. |
void |
removeModule(ModuleAddress address)
Remove a QEDEQ module from memory. |
void |
startup()
Initialisation of services. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultInternalKernelServices(KernelProperties kernel,
ModuleLoader loader)
kernel - For kernel access.loader - For loading QEDEQ modules.| Method Detail |
public void startup()
InternalKernelServices
startup in interface InternalKernelServicespublic void autoReloadLastSessionChecked()
public void removeAllModules()
KernelServices
removeAllModules in interface KernelServicespublic void removeModule(ModuleAddress address)
removeModule in interface KernelServicesaddress - Remove module identified by this address.public void removeModule(KernelQedeqBo prop)
prop - Remove module identified by this property.
public void clearLocalBuffer()
throws IOException
clearLocalBuffer in interface KernelServicesIOException - Deletion of all buffered file was not successful.
public QedeqBo loadModule(ModuleAddress address)
throws SourceFileExceptionList
loadModule in interface KernelServicesaddress - Address of module.
SourceFileExceptionList - Module could not be successfully loaded.
public KernelQedeqBo loadModule(ModuleAddress parent,
Specification spec)
throws SourceFileExceptionList
parent - Parent module address.spec - Specification for another QEDEQ module.
SourceFileExceptionList - Loading failed.public ModuleAddress[] getAllLoadedModules()
KernelServices
getAllLoadedModules 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 boolean loadPreviouslySuccessfullyLoadedModules()
public boolean loadAllModulesFromQedeq()
KernelServices
loadAllModulesFromQedeq in interface KernelServicespublic final File getLocalFilePath(ModuleAddress address)
getLocalFilePath in interface InternalKernelServicesaddress - Transform this URL.
public File getBufferDirectory()
InternalKernelServices
getBufferDirectory in interface InternalKernelServicespublic File getGenerationDirectory()
InternalKernelServices
getGenerationDirectory in interface InternalKernelServicespublic KernelQedeqBo getKernelQedeqBo(ModuleAddress address)
InternalKernelServicesKernelQedeqBo for an address.
getKernelQedeqBo in interface InternalKernelServicesaddress - Look for this address.
KernelQedeqBo, if address is malformed
null is returned.public 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. |