|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.extensions.recommendation.casesDisplay.UserChoice
public class UserChoice
Object that encapsulates the user answer when cases are shown.
This object keeps an internal integer with posible values:
CriticalUserChoice
Field Summary | |
---|---|
static int |
BUY
BUY constant |
static int |
QUIT
QUIT constant |
static int |
REFINE_QUERY
REFINE_QUERY constant |
Constructor Summary | |
---|---|
UserChoice(int choice,
CBRCase selectedCase)
Constructor |
Method Summary | |
---|---|
int |
getChoice()
Returns the user choice |
CBRCase |
getSelectedCase()
Returns the critiqued case. |
CBRQuery |
getSelectedCaseAsQuery()
Returns the critiqued case as a CBRQuery object. |
boolean |
isBuy()
Returns true if the choice is a case |
boolean |
isQuit()
Returns true if the choice is QUIT |
boolean |
isRefineQuery()
Returns true if the choice is REFINE_QUERY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int QUIT
public static final int REFINE_QUERY
public static final int BUY
Constructor Detail |
---|
public UserChoice(int choice, CBRCase selectedCase)
choice
- is the user's choiceMethod Detail |
---|
public int getChoice()
public boolean isQuit()
public boolean isRefineQuery()
public boolean isBuy()
public CBRQuery getSelectedCaseAsQuery()
public CBRCase getSelectedCase()
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |