jcolibri.method.retrieve
Class RetrievalResult

java.lang.Object
  extended by jcolibri.method.retrieve.RetrievalResult
All Implemented Interfaces:
java.lang.Comparable

public class RetrievalResult
extends java.lang.Object
implements java.lang.Comparable

Stores the retrieval information. It contais a pair.

Version:
2.0
Author:
Juan A. Recio-Garcia

Field Summary
static int RETRIEVE_ALL
          Constant used to retrieve all the cases in the retrieval methods.
 
Constructor Summary
RetrievalResult(CBRCase _case, java.lang.Double eval)
          Constructor
 
Method Summary
 int compareTo(java.lang.Object o)
           
 CBRCase get_case()
           
 double getEval()
           
 void set_case(CBRCase _case)
           
 void setEval(double eval)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RETRIEVE_ALL

public static final int RETRIEVE_ALL
Constant used to retrieve all the cases in the retrieval methods.

See Also:
Constant Field Values
Constructor Detail

RetrievalResult

public RetrievalResult(CBRCase _case,
                       java.lang.Double eval)
Constructor

Parameters:
_case - retrieved
eval - is the similiarty with the query
Method Detail

get_case

public CBRCase get_case()
Returns:
Returns the _case.

set_case

public void set_case(CBRCase _case)
Parameters:
_case - The _case to set.

getEval

public double getEval()
Returns:
Returns the eval.

setEval

public void setEval(double eval)
Parameters:
eval - The eval to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es