|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meyling.principia.module.ModuleContext
This class provides static access methods for loading modules.
Method Summary | |
void |
clearLocalBuffer()
|
boolean |
compress(String address)
Remove double and unused lines of all propositions of a module and save modified back in local generated directory. |
List |
getAllCheckedModules()
|
static String |
getBufferDirectory()
Get buffer directory for qedeq module files. |
static String |
getGenerationDirectory()
Get directory for generated files. |
static ModuleContext |
getInstance()
Get instance of module context. |
static String |
getKernelVersion()
Get version of this kernel. |
ModuleProperties |
getModuleProperties(String address)
|
static String |
getRuleVersion()
Get maximum version of supported rules. |
static String |
getVersionDirectory()
Get relative version directory of this kernel. |
boolean |
loadAllModulesFromQedeq()
|
Module |
loadModule(ModuleAddress moduleAddress)
Get a certain module. |
Module |
loadModule(Module module,
Specification spec)
Load a certain module. |
Module |
loadModule(String address)
Get a certain module. |
boolean |
loadPreviouslyCheckedModules()
|
(package private) void |
moduleCheckStarted(ModuleAddress moduleAddress)
|
void |
reduceToBasicRules(String address)
Reduce module file to module file that uses only basic rules. |
void |
removeAllModules()
Remove all modules from memory. |
void |
removeModuleAndDependents(ModuleProperties prop)
Remove a module and its dependents from memory. |
static void |
setup()
Set dummy listener for this context. |
static void |
setup(ModuleEventListener listener)
Set listener for this context. |
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final ModuleContext getInstance() throws IllegalStateException
setup(com.meyling.principia.module.ModuleEventListener)
must have been called before.
IllegalStateException
- setup(com.meyling.principia.module.ModuleEventListener)
wasn't called before this method callpublic static final void setup(ModuleEventListener listener) throws IOException
listener
- this object listens to module events
IllegalStateException
- setup(com.meyling.principia.module.ModuleEventListener)
was called once before
or Config#setup
was not configured properly
IOException
- directory entries were no valid file namespublic final void start()
public static final void setup() throws IllegalStateException, IOException
IllegalStateException
- setup(com.meyling.principia.module.ModuleEventListener)
was called once before
or Config#setup
was not configured properly
IOException
- directory entries were no valid file namespublic final void removeAllModules()
public final void removeModuleAndDependents(ModuleProperties prop)
public final void clearLocalBuffer() throws IOException
IOException
public static final String getRuleVersion()
public static final String getKernelVersion()
public static final String getVersionDirectory()
public final boolean compress(String address) throws IOException, ParsingException
address
- address of module.
IOException
- module file couldn't be read or written
ParsingException
- TODOpublic final void reduceToBasicRules(String address) throws IOException, ParsingException
address
- address of module
IOException
- if writing the resulting file is not possible
(e.g. because there is already a module file of
that name)
ParsingException
- if there were a parsing problem for
the referenced (or one indirectly connected) module
IllegalArgumentException
- if something unexpected happens
(e.g. a programming error occurs)public final Module loadModule(String address) throws ParsingException, IOException
address
- address of module
IOException
- if loading was not successfull
ParsingException
- if loading the module lead to
an parsing errorpublic final Module loadModule(ModuleAddress moduleAddress) throws ParsingException, IOException
IOException
- if loading was not successfull
ParsingException
- if loading the module lead to
an parsing errorpublic final Module loadModule(Module module, Specification spec) throws ArgumentException, ParsingException
module
- this is the current module.spec
- specification of wanted module.
ArgumentException
- loading was not successfull.
ParsingException
- loading another module lead to
an parsing error.
IOException
- spec
didn't lead
to a valid module addressfinal void moduleCheckStarted(ModuleAddress moduleAddress)
public final List getAllCheckedModules()
public final boolean loadPreviouslyCheckedModules()
public final boolean loadAllModulesFromQedeq()
public static String getBufferDirectory()
public static final String getGenerationDirectory()
public final ModuleProperties getModuleProperties(String address)
|
Hilbert II - JAVA-Packages - Principia Mathematica II | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |