public class QueryResult extends Object implements Comparable<QueryResult>
| Modifier and Type | Field and Description |
|---|---|
protected CBRQuery |
_case |
protected double |
result |
| Constructor and Description |
|---|
QueryResult(CBRQuery _case,
double result)
Sets up a
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(QueryResult o)
Returns the result of comparing this object to
the given object.
|
CBRQuery |
getCase()
Returns the case.
|
double |
getResult()
Returns the result.
|
void |
setCase(CBRCase _case)
Set the given case to be the query case
associated with this
|
void |
setEval(double result)
Set the given result to be the result
associated with this
|
String |
toString()
Returns a String representation of this object.
|
public QueryResult(CBRQuery _case, double result)
_case - The query case to be storedresult - The result associated with this case.public void setCase(CBRCase _case)
_case - The case to set.public double getResult()
public void setEval(double result)
result - The result to set.public int compareTo(QueryResult o)
compareTo in interface Comparable<QueryResult>Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.