jcolibri.extensions.recommendation.casesDisplay
Class DisplayCasesTableMethod

java.lang.Object
  extended by jcolibri.extensions.recommendation.casesDisplay.DisplayCasesTableMethod

public class DisplayCasesTableMethod
extends java.lang.Object

Shows cases in a table allowing to select one.
This method is not very suitable for composed cases (cases with nested CaseComponents) because it doesn't reflects that structure.
It allways shows an "Add to Basket" and a "Quit" buttons. Optionally it shows an "Edit Query" button for conversational recommenders (not useful in one-shot recommenders).
The methods of this class return an UserChoice object.

Version:
1.0
Author:
Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
See Also:
UserChoice

Nested Class Summary
static class DisplayCasesTableMethod.DisplayOption
          Display options for the methods.
 
Constructor Summary
DisplayCasesTableMethod()
           
 
Method Summary
static UserChoice displayCasesInTableBasic(java.util.Collection<CBRCase> cases)
          Shows the dialog without the "Edit Query" option
static UserChoice displayCasesInTableEditQuery(java.util.Collection<CBRCase> cases)
          Shows the dialog without the "Edit Query" option
static UserChoice displayCasesInTableSelectCase(java.util.Collection<CBRCase> cases)
          Shows the dialog without the "Edit Query" option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayCasesTableMethod

public DisplayCasesTableMethod()
Method Detail

displayCasesInTableBasic

public static UserChoice displayCasesInTableBasic(java.util.Collection<CBRCase> cases)
Shows the dialog without the "Edit Query" option

Parameters:
cases - to display
Returns:
UserChoice object

displayCasesInTableEditQuery

public static UserChoice displayCasesInTableEditQuery(java.util.Collection<CBRCase> cases)
Shows the dialog without the "Edit Query" option

Parameters:
cases - to display
Returns:
UserChoice object

displayCasesInTableSelectCase

public static UserChoice displayCasesInTableSelectCase(java.util.Collection<CBRCase> cases)
Shows the dialog without the "Edit Query" option

Parameters:
cases - to display
Returns:
UserChoice object

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