Package com.semedy.reasoner.core
Class ResultEnumeratorNotThreaded
java.lang.Object
com.semedy.reasoner.core.ResultEnumeratorNotThreaded
- All Implemented Interfaces:
ResultEnumerator,Closeable,AutoCloseable,Cloneable
public class ResultEnumeratorNotThreaded
extends Object
implements Closeable, Cloneable, ResultEnumerator
enumerator for reasoning results
- Author:
- juergen
-
Constructor Summary
ConstructorsConstructorDescriptionResultEnumeratorNotThreaded(List<TupleEnumerator> enms, int arity, SymbolTable symbols, List<String> variables) -
Method Summary
Modifier and TypeMethodDescriptionclone the iteratorvoidclose()close the iteratorget a result bufferbooleanIs the enumerator at the end?booleanAre there more elements?voidMove to next element (the next element is found in the buffer)
-
Constructor Details
-
ResultEnumeratorNotThreaded
public ResultEnumeratorNotThreaded(List<TupleEnumerator> enms, int arity, SymbolTable symbols, List<String> variables)
-
-
Method Details
-
hasMoreElements
Are there more elements?- Specified by:
hasMoreElementsin interfaceResultEnumerator- Returns:
- true if there are more elements
- Throws:
IOExceptionEDBException
-
nextElement
Move to next element (the next element is found in the buffer)- Specified by:
nextElementin interfaceResultEnumerator- Throws:
IOExceptionEDBException
-
hasFinished
Is the enumerator at the end?- Specified by:
hasFinishedin interfaceResultEnumerator- Returns:
- true if there is no more result
- Throws:
IOExceptionEDBException
-
getBuffer
get a result buffer- Specified by:
getBufferin interfaceResultEnumerator- Returns:
- buffer for results
-
close
close the iterator- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceResultEnumerator- Throws:
IOException
-
cloneEnumerator
clone the iterator- Specified by:
cloneEnumeratorin interfaceResultEnumerator- Returns:
- Throws:
IOExceptionEDBException
-