Class ExecuteAggregation
java.lang.Object
com.semedy.reasoner.reasoning.processes.ProcessImp
com.semedy.reasoner.reasoning.processes.And
com.semedy.reasoner.reasoning.processes.ExecuteAggregation
-
Constructor Summary
ConstructorsConstructorDescriptionExecuteAggregation(int i, InterruptFlag interruptFlag, ReasoningMonitor monitor, SystemMonitor smonitor, VariableHandler vh, int[] externalFilterPositions, long[] externalFilterValues, Aggregation aggregation, SymbolTable symboltable, RuleEvaluator reval, boolean cepReasoning, String query) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()free up ressourcesvoidvoidevaluate()evaluate a process during reasoning.voidevaluationFinished(long querykey) the whole evaluation is finishedbooleanvoidtuplesFinished(String annotation, ReasoningRelation T1, ReasoningRelation T2) Finish delivering single tuples.voidtuplesReceived(int ticket) Methods inherited from class com.semedy.reasoner.reasoning.processes.And
evaluationFinished, getBottomStore, getLeftStore, setBottomParameters, setBottomStore, setLeftFilter, setLeftParameters, setLeftStore, toString, wakeUpMainMethods inherited from class com.semedy.reasoner.reasoning.processes.ProcessImp
addNextReceiver, addRelation, dispose, getArity, getPriority, getStratum, getTupleStore, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, receiveRelation, receiveTuple, receiveTuple, receiveTuple, setDataFlowGraph, setQueued, setStratum, startTuples, tuplesFinishedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.semedy.reasoner.reasoning.processes.Deferred
getStratum, setStratum
-
Constructor Details
-
ExecuteAggregation
public ExecuteAggregation(int i, InterruptFlag interruptFlag, ReasoningMonitor monitor, SystemMonitor smonitor, VariableHandler vh, int[] externalFilterPositions, long[] externalFilterValues, Aggregation aggregation, SymbolTable symboltable, RuleEvaluator reval, boolean cepReasoning, String query)
-
-
Method Details
-
hasBeenExecuted
public boolean hasBeenExecuted()- Specified by:
hasBeenExecutedin interfaceDeferred
-
deferredEvaluate
- Specified by:
deferredEvaluatein interfaceDeferred- Throws:
InterruptedExceptionSemReasonerExceptionIOException
-
evaluationFinished
Description copied from interface:Processthe whole evaluation is finished- Specified by:
evaluationFinishedin interfaceProcess- Overrides:
evaluationFinishedin classAnd- Throws:
ReasoningExceptionIOException
-
evaluate
Description copied from interface:Processevaluate a process during reasoning.
Returns how the number of tuples sent away- Specified by:
evaluatein interfaceProcess- Overrides:
evaluatein classAnd- Throws:
InterruptedExceptionReasoningExceptionIOExceptionSemReasonerException
-
tuplesFinished
public void tuplesFinished(String annotation, ReasoningRelation T1, ReasoningRelation T2) throws SemReasonerException, InterruptedException, IOException Description copied from interface:ReceiverFinish delivering single tuples.
Cache result and annotate result.- Specified by:
tuplesFinishedin interfaceReceiver- Overrides:
tuplesFinishedin classProcessImp- Parameters:
annotation- , an annotation used for cachingT1- , the relations which have been combinedT2- , the relations which have been combined- Throws:
ReasoningExceptionSemReasonerExceptionInterruptedExceptionIOException
-
tuplesReceived
public void tuplesReceived(int ticket) - Overrides:
tuplesReceivedin classAnd
-
clear
public void clear()Description copied from class:ProcessImpfree up ressources- Specified by:
clearin interfaceProcess- Overrides:
clearin classProcessImp
-