Class Scatter
java.lang.Object
com.semedy.reasoner.reasoning.processes.ProcessImp
com.semedy.reasoner.reasoning.processes.Scatter
-
Constructor Summary
ConstructorsConstructorDescriptionScatter(InterruptFlag interruptFlag, int destarity, Rule rule, ReasoningMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionvoidattach a next receiver which receives input from thisbooleanreceiveRelation(ReasoningRelation relation) receive a whole relationbooleanreceiveTuple(int tuple) receive a single tuplebooleanreceiveTuple(long[] tuple) receive a single tuplebooleanreceiveTuple(TupleBuffer tuple) receive a single tuplestartTuples(Receiver source, boolean check4Duplicates) start delivering single tuplestoString()voidtuplesFinished(boolean isBottomUp) finish delivering single tuplesvoidtuplesFinished(String annotation, ReasoningRelation T1, ReasoningRelation T2) Finish delivering single tuples.Methods inherited from class com.semedy.reasoner.reasoning.processes.ProcessImp
addRelation, clear, dispose, evaluate, evaluationFinished, evaluationFinished, getArity, getPriority, getStratum, getTupleStore, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, setDataFlowGraph, setQueued, setStratum
-
Constructor Details
-
Scatter
- Parameters:
interruptFlag-destarity-rule-monitor-
-
-
Method Details
-
addNextReceiver
Description copied from interface:Processattach a next receiver which receives input from this- Specified by:
addNextReceiverin interfaceProcess- Overrides:
addNextReceiverin classProcessImp
-
startTuples
public Receiver startTuples(Receiver source, boolean check4Duplicates) throws IOException, EDBException Description copied from interface:Receiverstart delivering single tuples- Specified by:
startTuplesin interfaceReceiver- Overrides:
startTuplesin classProcessImp- Parameters:
source- , the delivering processcheck4Duplicates- , check for duplicates in the target store- Returns:
- an object receiving the results
- Throws:
IOExceptionEDBException
-
tuplesFinished
public void tuplesFinished(boolean isBottomUp) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverfinish delivering single tuples- Specified by:
tuplesFinishedin interfaceReceiver- Overrides:
tuplesFinishedin classProcessImp- Parameters:
isBottomUp- TODO- Throws:
ReasoningExceptionSemReasonerExceptionInterruptedExceptionIOException
-
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
-
receiveTuple
public boolean receiveTuple(int tuple) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverreceive a single tuple- Specified by:
receiveTuplein interfaceReceiver- Overrides:
receiveTuplein classProcessImp- Parameters:
tuple- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerExceptionInterruptedExceptionIOException
-
receiveTuple
public boolean receiveTuple(long[] tuple) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverreceive a single tuple- Specified by:
receiveTuplein interfaceReceiver- Overrides:
receiveTuplein classProcessImp- Parameters:
tuple- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerExceptionInterruptedExceptionIOException
-
receiveTuple
public boolean receiveTuple(TupleBuffer tuple) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverreceive a single tuple- Specified by:
receiveTuplein interfaceReceiver- Overrides:
receiveTuplein classProcessImp- Parameters:
tuple- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
ReasoningExceptionSemReasonerExceptionInterruptedExceptionIOException
-
receiveRelation
public boolean receiveRelation(ReasoningRelation relation) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverreceive a whole relation- Specified by:
receiveRelationin interfaceReceiver- Overrides:
receiveRelationin classProcessImp- Parameters:
relation- the whole relation to be received- Returns:
- true, if relation is later on dissolved, false otherwise
- Throws:
ReasoningExceptionInterruptedExceptionIOExceptionSemReasonerException
-
toString
-
getNeighbours
-