Package com.semedy.reasoner.core
Class ResultBufferNotThreaded
java.lang.Object
com.semedy.reasoner.core.ResultBufferNotThreaded
- All Implemented Interfaces:
ResultBuffer
Buffer for results of queries.
- Author:
- juergen
-
Constructor Summary
ConstructorDescriptionResultBufferNotThreaded
(TupleBuffer buffer, int length, SymbolTable symbols, List<String> variableNames) -
Method Summary
-
Constructor Details
-
ResultBufferNotThreaded
public ResultBufferNotThreaded(TupleBuffer buffer, int length, SymbolTable symbols, List<String> variableNames)
-
-
Method Details
-
get
Get object with variable name.
Queries must deliver the variable names (parameter).- Specified by:
get
in interfaceResultBuffer
- Parameters:
variableName
- , name of the variable including question mark- Returns:
- result object
- Throws:
IOException
SemReasonerException
ReasoningException
-
get
Get object at argument index- Specified by:
get
in interfaceResultBuffer
- Parameters:
index
- , argument index- Returns:
- result object
- Throws:
IOException
SemReasonerException
-
getCode
Get code with variable name.
Queries must deliver the variable names (parameter).- Specified by:
getCode
in interfaceResultBuffer
- Parameters:
variableName
- , name of the variable including question mark- Returns:
- result object
- Throws:
IOException
ReasoningException
-
getCode
Get code at argument index- Specified by:
getCode
in interfaceResultBuffer
- Parameters:
index
- , argument index- Returns:
- result object
- Throws:
SymboltableException
IOException
-
length
public int length()get result tuple length- Specified by:
length
in interfaceResultBuffer
- Returns:
- length of tuple
-
toString
- Specified by:
toString
in interfaceResultBuffer
- Overrides:
toString
in classObject
-
toArray
get an array of result objects- Specified by:
toArray
in interfaceResultBuffer
- Returns:
- array of result objects
- Throws:
IOException
SemReasonerException
SymboltableException
-