public class UserChoice extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUY
BUY constant
|
static int |
QUIT
QUIT constant
|
static int |
REFINE_QUERY
REFINE_QUERY constant
|
| Constructor and Description |
|---|
UserChoice(int choice,
es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase selectedCase)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChoice()
Returns the user choice
|
es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase |
getSelectedCase()
Returns the critiqued case.
|
es.ucm.fdi.gaia.jcolibri.cbrcore.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
|
public static final int QUIT
public static final int REFINE_QUERY
public static final int BUY
public UserChoice(int choice, es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase selectedCase)
choice - is the user's choicepublic int getChoice()
public boolean isQuit()
public boolean isRefineQuery()
public boolean isBuy()
public es.ucm.fdi.gaia.jcolibri.cbrcore.CBRQuery getSelectedCaseAsQuery()
public es.ucm.fdi.gaia.jcolibri.cbrcore.CBRCase getSelectedCase()
Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.