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
ConstructorDescriptionExecuteAggregation
(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 TypeMethodDescriptionvoid
clear()
free up ressourcesvoid
void
evaluate()
evaluate a process during reasoning.void
evaluationFinished
(long querykey) the whole evaluation is finishedboolean
void
tuplesFinished
(String annotation, ReasoningRelation T1, ReasoningRelation T2) Finish delivering single tuples.void
tuplesReceived
(int ticket) Methods inherited from class com.semedy.reasoner.reasoning.processes.And
evaluationFinished, getBottomStore, getLeftStore, setBottomParameters, setBottomStore, setLeftFilter, setLeftParameters, setLeftStore, toString, wakeUpMain
Methods 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, tuplesFinished
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
hasBeenExecuted
in interfaceDeferred
-
deferredEvaluate
- Specified by:
deferredEvaluate
in interfaceDeferred
- Throws:
InterruptedException
SemReasonerException
IOException
-
evaluationFinished
Description copied from interface:Process
the whole evaluation is finished- Specified by:
evaluationFinished
in interfaceProcess
- Overrides:
evaluationFinished
in classAnd
- Throws:
ReasoningException
IOException
-
evaluate
Description copied from interface:Process
evaluate a process during reasoning.
Returns how the number of tuples sent away- Specified by:
evaluate
in interfaceProcess
- Overrides:
evaluate
in classAnd
- Throws:
InterruptedException
ReasoningException
IOException
SemReasonerException
-
tuplesFinished
public void tuplesFinished(String annotation, ReasoningRelation T1, ReasoningRelation T2) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiver
Finish delivering single tuples.
Cache result and annotate result.- Specified by:
tuplesFinished
in interfaceReceiver
- Overrides:
tuplesFinished
in classProcessImp
- Parameters:
annotation
- , an annotation used for cachingT1
- , the relations which have been combinedT2
- , the relations which have been combined- Throws:
ReasoningException
SemReasonerException
InterruptedException
IOException
-
tuplesReceived
public void tuplesReceived(int ticket) - Overrides:
tuplesReceived
in classAnd
-
clear
public void clear()Description copied from class:ProcessImp
free up ressources- Specified by:
clear
in interfaceProcess
- Overrides:
clear
in classProcessImp
-