|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qedeq.kernel.bo.service.internal.StateManager
public class StateManager
Changes the states of org.qedeq.kernel.bo.service.control.DefaultKernelQedeqBo
s.
All state changing is done here.
Method Summary | |
---|---|
void |
addPluginResults(ModuleService plugin,
SourceFileExceptionList errors,
SourceFileExceptionList warnings)
Add the plugin execution errors and warnings. |
void |
delete()
Delete QEDEQ module. |
AbstractState |
getCurrentState()
Get the current state of associate module. |
DependencyState |
getDependencyState()
Get dependency state. |
SourceFileExceptionList |
getErrors()
Get all errors. |
FormallyProvedState |
getFormallyProvedState()
Get the formally proved state. |
AbstractState |
getLastSuccesfulState()
Get the last successful state we were in. |
int |
getLoadingCompleteness()
Get loading completeness percentage. |
LoadingImportsState |
getLoadingImportsState()
Get loading imports state. |
LoadingState |
getLoadingState()
Get loading state. |
java.lang.String |
getStateDescription()
Get a description of the current state the module is in. |
SourceFileExceptionList |
getWarnings()
Get all warnings. |
WellFormedState |
getWellFormedState()
Get the well formed state. |
boolean |
hasBasicFailures()
Is the module in a failure state? That is the case if loading of module or imported modules failed or the logical check failed. |
boolean |
hasErrors()
Has the module any errors? This includes loading, importing, logical and plugin errors. |
boolean |
hasLoadedImports()
Are all imported modules loaded? |
boolean |
hasLoadedRequiredModules()
Are all required modules loaded? |
boolean |
hasWarnings()
Has the module any warnings? This includes loading, importing, logical and plugin warnings. |
boolean |
isFullyFormallyProved()
Was the module successfully checked having formally correct proofs? |
boolean |
isLoaded()
Is the module loaded? |
boolean |
isWellFormed()
Was the module successfully checked for well formedness errors? |
void |
printDependencyTree()
Print the dependence tree to System.out . |
void |
removeAllPluginResults()
Remove all plugin errors and warnings. |
void |
setDependencyFailureState(DependencyState state,
SourceFileExceptionList e)
Set failure module state. |
void |
setDependencyProgressState(DependencyState state)
Set dependency progress module state. |
protected void |
setDependencyState(DependencyState state)
Set DependencyState . |
protected void |
setErrors(SourceFileExceptionList errors)
Set SourceFileExceptionList . |
void |
setFormallyProvedFailureState(FormallyProvedState state,
SourceFileExceptionList e)
Set failure module state. |
void |
setFormallyProvedProgressState(FormallyProvedState state)
Set checking for formally proved progress module state. |
protected void |
setFormallyProvedState(FormallyProvedState state)
Set FormallyProvedState . |
void |
setLoaded(QedeqVo qedeq,
ModuleLabels labels)
Set loading state to "loaded". |
void |
setLoadedImports(KernelModuleReferenceList required)
Set loaded imports state. |
void |
setLoadedRequiredModules()
Set loaded required requirements state. |
void |
setLoadingCompleteness(int completeness)
Set completeness percentage. |
void |
setLoadingFailureState(LoadingState state,
SourceFileExceptionList e)
Set failure module state. |
void |
setLoadingImportsFailureState(LoadingImportsState state,
SourceFileExceptionList e)
Set failure module state. |
void |
setLoadingImportsProgressState(LoadingImportsState state)
Set loading imports progress module state. |
protected void |
setLoadingImportsState(LoadingImportsState state)
Set LoadingImportsState . |
void |
setLoadingProgressState(LoadingState state)
Set loading progress module state. |
protected void |
setLoadingState(LoadingState state)
Set LoadingState . |
void |
setWellFormed(ModuleConstantsExistenceChecker checker)
Set logic checked state. |
void |
setWellFormedFailureState(WellFormedState state,
SourceFileExceptionList e)
Set failure module state. |
void |
setWellFormedProgressState(WellFormedState state)
Set checking for well formed progress module state. |
protected void |
setWellFormedState(WellFormedState state)
Set WellFormedState . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void delete()
public boolean hasBasicFailures()
public boolean hasErrors()
public boolean hasWarnings()
public void setLoadingCompleteness(int completeness)
completeness
- Completeness of loading into memory.public int getLoadingCompleteness()
public LoadingState getLoadingState()
public boolean isLoaded()
public void setLoadingProgressState(LoadingState state)
state
- Module loading state. Must not be null
.
java.lang.IllegalStateException
- State is a failure state or module loaded state.public void setLoadingFailureState(LoadingState state, SourceFileExceptionList e)
state
- Module loading state. Must not be null
.e
- Exception that occurred during loading. Must not be null
.
java.lang.IllegalArgumentException
- state
is no failure statepublic void setLoaded(QedeqVo qedeq, ModuleLabels labels)
null
to
DefaultKernelQedeqBo.getLabels()
.
qedeq
- This module was loaded. Must not be null
.labels
- Module labels.
java.lang.NullPointerException
- One argument was null
.public void setLoadingImportsProgressState(LoadingImportsState state)
state
- Module state. Must not be null
.
java.lang.IllegalStateException
- Module is not yet loaded.
java.lang.IllegalArgumentException
- state
is failure state or loaded required
state.
java.lang.NullPointerException
- state
is null
.public void setLoadingImportsFailureState(LoadingImportsState state, SourceFileExceptionList e)
state
- Module loading imports state. Must not be null
.e
- Exception that occurred during loading. Must not be null
.
java.lang.IllegalStateException
- Module is not yet loaded.
java.lang.IllegalArgumentException
- state
is no failure state.
java.lang.NullPointerException
- state
is null
.public LoadingImportsState getLoadingImportsState()
public boolean hasLoadedImports()
public void setDependencyProgressState(DependencyState state)
state
- Module state. Must not be null
.
java.lang.IllegalStateException
- Module is not yet loaded.
java.lang.IllegalArgumentException
- state
is failure state or loaded required
state.
java.lang.NullPointerException
- state
is null
.public void setDependencyFailureState(DependencyState state, SourceFileExceptionList e)
state
- Module dependency state. Must not be null
.e
- Exception that occurred during loading. Must not be null
.
java.lang.IllegalStateException
- Module is not yet loaded.
java.lang.IllegalArgumentException
- state
is no failure state.
java.lang.NullPointerException
- state
is null
.public DependencyState getDependencyState()
public boolean hasLoadedRequiredModules()
public void setLoadedImports(KernelModuleReferenceList required)
required
- URLs of all referenced modules. Must not be null
.
java.lang.IllegalStateException
- Module is not yet loaded.public void setLoadedRequiredModules()
java.lang.IllegalStateException
- Module is not yet loaded.public void setWellFormed(ModuleConstantsExistenceChecker checker)
checker
- Checks if a predicate or function constant is defined.public void setWellFormedProgressState(WellFormedState state)
null
.
state
- module statepublic void setWellFormedFailureState(WellFormedState state, SourceFileExceptionList e)
state
- module statee
- Exception that occurred during loading.
java.lang.IllegalArgumentException
- state
is no failure statepublic void setFormallyProvedProgressState(FormallyProvedState state)
null
.
state
- module statepublic void setFormallyProvedFailureState(FormallyProvedState state, SourceFileExceptionList e)
state
- module statee
- Exception that occurred during loading.
java.lang.IllegalArgumentException
- state
is no failure statepublic boolean isWellFormed()
public WellFormedState getWellFormedState()
public boolean isFullyFormallyProved()
public FormallyProvedState getFormallyProvedState()
public java.lang.String getStateDescription()
public AbstractState getCurrentState()
public AbstractState getLastSuccesfulState()
protected void setLoadingState(LoadingState state)
LoadingState
. Doesn't do any status handling. Only for internal use.
state
- Set this loading state.protected void setLoadingImportsState(LoadingImportsState state)
LoadingImportsState
. Doesn't do any status handling. Only for internal use.
state
- Set this loading state.protected void setDependencyState(DependencyState state)
DependencyState
. Doesn't do any status handling. Only for internal use.
state
- Set this dependency state.protected void setWellFormedState(WellFormedState state)
WellFormedState
. Doesn't do any status handling. Only for internal use.
state
- Set this logical state.protected void setFormallyProvedState(FormallyProvedState state)
FormallyProvedState
. Doesn't do any status handling. Only for internal use.
state
- Set this logical state.public SourceFileExceptionList getErrors()
public SourceFileExceptionList getWarnings()
protected void setErrors(SourceFileExceptionList errors)
SourceFileExceptionList
. Doesn't do any status handling. Only for internal use.
errors
- Set this error list. If this is null
the errors are cleared!public void addPluginResults(ModuleService plugin, SourceFileExceptionList errors, SourceFileExceptionList warnings)
plugin
- Plugin that was executed.errors
- Resulting errors.warnings
- Resulting warnings.public void removeAllPluginResults()
public void printDependencyTree()
System.out
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |