|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReasonerStage
A basic computation unit that can be executed by a reasoner. A
ReasonerStage can specify other ReasonerStages as
dependencies. Thus, several stages can be chained within a reasoning process.
| Method Summary | |
|---|---|
void |
clearInterrupt()
Clears the interrupt status of this executor |
void |
execute()
Performs the execution of this stage. |
String |
getName()
|
Iterable<? extends ReasonerStage> |
getPreStages()
|
boolean |
isCompleted()
|
boolean |
isInterrupted()
|
boolean |
postExecute()
Invoked after execute() to perform any necessary clean-up. |
boolean |
preExecute()
Invoked prior to execute() to perform any necessary
initialization |
void |
printInfo()
Prints detailed information about the (progress) of this stage. |
| Method Detail |
|---|
String getName()
boolean isCompleted()
true if the results for this stage have been already
computed; this does not necessarily mean that this stage was
executed: the results of the computation could have been computed
by other stagesIterable<? extends ReasonerStage> getPreStages()
boolean preExecute()
execute() to perform any necessary
initialization
true if the operation is successful
void execute()
throws ElkException
ElkException - if execution was not successfulboolean postExecute()
execute() to perform any necessary clean-up. Could
be invoked before execute() if preExecute() threw an
exception.
FIXME: can preExecute() throw an exception? If so, document.
true if the operation is successfulboolean isInterrupted()
true if this executor was interruptedvoid clearInterrupt()
void printInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||