jcolibri.extensions.recommendation.navigationByAsking
Class ObtainQueryWithAttributeQuestionMethod

java.lang.Object
  extended by jcolibri.extensions.recommendation.navigationByAsking.ObtainQueryWithAttributeQuestionMethod

public class ObtainQueryWithAttributeQuestionMethod
extends java.lang.Object

Obtains the query asking for the value of an attribute.

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

Constructor Summary
ObtainQueryWithAttributeQuestionMethod()
           
 
Method Summary
static boolean obtainQueryWithAttributeQuestion(CBRQuery query, Attribute attribute, java.util.Map<Attribute,java.lang.String> labels, java.util.Collection<CBRCase> cases)
          Modifies the query with value of an attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObtainQueryWithAttributeQuestionMethod

public ObtainQueryWithAttributeQuestionMethod()
Method Detail

obtainQueryWithAttributeQuestion

public static boolean obtainQueryWithAttributeQuestion(CBRQuery query,
                                                       Attribute attribute,
                                                       java.util.Map<Attribute,java.lang.String> labels,
                                                       java.util.Collection<CBRCase> cases)
Modifies the query with value of an attribute. It shows a dialog to obtain that value .
If the attribute parameter is null, this method does nothing and returns false. It returns true in a.o.c. This servers to know when there are not more paramethers to be asked and the conversation must finish. The condition of finishing a conversation is calculated by the SelectAttributeMethod executed before. The Attribute returned by these methods is the input "attribute" here. If a SelectAttributMethod returns null, it means that there are not any other attributes to ask.

Parameters:
query - to modify.
attribute - to ask.
labels - for the attribute.
cases - used to find the available values presented to the user.
Returns:
true

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