Class TopDownUnbufferedStore
java.lang.Object
com.semedy.reasoner.reasoning.processes.ProcessImp
com.semedy.reasoner.reasoning.processes.UnbufferedStore
com.semedy.reasoner.reasoning.processes.TopDownUnbufferedStore
- All Implemented Interfaces:
Receiver,Process,Store,TopDownStore
-
Constructor Summary
ConstructorsConstructorDescriptionTopDownUnbufferedStore(InterruptFlag interruptFlag, ReasoningMonitor monitor, int arity, String predicate, boolean not, boolean cepReasoning, boolean cepReasoningWithRetracts, String tempDir, boolean swapping, ProcessExecutor executor, boolean sorted) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanreceive a whole relationbooleanreceiveTuple(int tuple) receive a single tuplebooleanreceiveTuple(long[] tuple) receive a single tuplevoidtriggerNeighbours(int ticket) trigger neighbours for evaluationMethods inherited from class com.semedy.reasoner.reasoning.processes.UnbufferedStore
addNegatedNeighbour, addNeighbour, addRelation, clear, evaluate, evaluationFinished, getAllTuples, getAllTuplesInOne, getArity, getLastResults, getNeighbours, getTupleStore, incrementalRelations, incrementalSize, isSubsumed, readAccessBegin, readAccessEnd, relations, size, startTuples, toString, tuplesFinished, tuplesFinishedMethods inherited from class com.semedy.reasoner.reasoning.processes.ProcessImp
addNextReceiver, dispose, evaluationFinished, getPriority, getStratum, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, receiveTuple, setDataFlowGraph, setQueued, setStratumMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.semedy.reasoner.reasoning.processes.Process
addNextReceiver, clear, dispose, getPriority, getStratum, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, setDataFlowGraph, setQueued, setStratumMethods inherited from interface com.semedy.reasoner.api.reasoning.Receiver
receiveTupleMethods inherited from interface com.semedy.reasoner.reasoning.processes.Store
addNegatedNeighbour, addNeighbour, addRelation, evaluate, evaluationFinished, getAllTuples, getAllTuplesInOne, getArity, getLastResults, getNeighbours, getTupleStore, incrementalRelations, isSubsumed, readAccessBegin, readAccessEnd, relations, size, startTuples, toString, tuplesFinished, tuplesFinished
-
Constructor Details
-
TopDownUnbufferedStore
public TopDownUnbufferedStore(InterruptFlag interruptFlag, ReasoningMonitor monitor, int arity, String predicate, boolean not, boolean cepReasoning, boolean cepReasoningWithRetracts, String tempDir, boolean swapping, ProcessExecutor executor, boolean sorted) throws IOException - Parameters:
interruptFlag-monitor-arity-predicate-not-cepReasoning-cepReasoningWithRetracts-tempDir-swapping-executor-sorted-- Throws:
IOException
-
-
Method Details
-
addBottomNeighbour
- Specified by:
addBottomNeighbourin interfaceTopDownStore
-
triggerNeighbours
Description copied from interface:Storetrigger neighbours for evaluation- Specified by:
triggerNeighboursin interfaceStore- Overrides:
triggerNeighboursin classUnbufferedStore- Throws:
ReasoningExceptionIOExceptionSemReasonerException
-
receiveTuple
Description copied from interface:Receiverreceive a single tuple- Specified by:
receiveTuplein interfaceReceiver- Specified by:
receiveTuplein interfaceStore- Overrides:
receiveTuplein classUnbufferedStore- Parameters:
tuple- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerExceptionIOException
-
receiveTuple
Description copied from interface:Receiverreceive a single tuple- Specified by:
receiveTuplein interfaceReceiver- Specified by:
receiveTuplein interfaceStore- Overrides:
receiveTuplein classUnbufferedStore- Parameters:
tuple- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerExceptionIOException
-
receiveRelation
public boolean receiveRelation(ReasoningRelation R) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiverreceive a whole relation- Specified by:
receiveRelationin interfaceReceiver- Specified by:
receiveRelationin interfaceStore- Overrides:
receiveRelationin classUnbufferedStore- Parameters:
R- the whole relation to be received- Returns:
- true, if relation is later on dissolved, false otherwise
- Throws:
ReasoningExceptionInterruptedExceptionIOExceptionSemReasonerException
-
getBottomNeighbours
- Specified by:
getBottomNeighboursin interfaceTopDownStore
-