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
ConstructorDescriptionTopDownUnbufferedStore
(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 TypeMethodDescriptionvoid
boolean
receive a whole relationboolean
receiveTuple
(int tuple) receive a single tupleboolean
receiveTuple
(long[] tuple) receive a single tuplevoid
triggerNeighbours
(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, tuplesFinished
Methods inherited from class com.semedy.reasoner.reasoning.processes.ProcessImp
addNextReceiver, dispose, evaluationFinished, getPriority, getStratum, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, receiveTuple, setDataFlowGraph, setQueued, setStratum
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.semedy.reasoner.reasoning.processes.Process
addNextReceiver, clear, dispose, getPriority, getStratum, isNotQueuedSetQueued, isQueued, nextReceiver, operationFinished, setDataFlowGraph, setQueued, setStratum
Methods inherited from interface com.semedy.reasoner.api.reasoning.Receiver
receiveTuple
Methods 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:
addBottomNeighbour
in interfaceTopDownStore
-
triggerNeighbours
Description copied from interface:Store
trigger neighbours for evaluation- Specified by:
triggerNeighbours
in interfaceStore
- Overrides:
triggerNeighbours
in classUnbufferedStore
- Throws:
ReasoningException
IOException
SemReasonerException
-
receiveTuple
Description copied from interface:Receiver
receive a single tuple- Specified by:
receiveTuple
in interfaceReceiver
- Specified by:
receiveTuple
in interfaceStore
- Overrides:
receiveTuple
in classUnbufferedStore
- Parameters:
tuple
- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerException
IOException
-
receiveTuple
Description copied from interface:Receiver
receive a single tuple- Specified by:
receiveTuple
in interfaceReceiver
- Specified by:
receiveTuple
in interfaceStore
- Overrides:
receiveTuple
in classUnbufferedStore
- Parameters:
tuple
- the tuple to be received- Returns:
- true if tuple has been used (tuple cannot be free'd up)
- Throws:
SemReasonerException
IOException
-
receiveRelation
public boolean receiveRelation(ReasoningRelation R) throws SemReasonerException, InterruptedException, IOException Description copied from interface:Receiver
receive a whole relation- Specified by:
receiveRelation
in interfaceReceiver
- Specified by:
receiveRelation
in interfaceStore
- Overrides:
receiveRelation
in classUnbufferedStore
- Parameters:
R
- the whole relation to be received- Returns:
- true, if relation is later on dissolved, false otherwise
- Throws:
ReasoningException
InterruptedException
IOException
SemReasonerException
-
getBottomNeighbours
- Specified by:
getBottomNeighbours
in interfaceTopDownStore
-