jcolibri.extensions.recommendation.navigationByProposing
Class CritiqueOption

java.lang.Object
  extended by jcolibri.extensions.recommendation.navigationByProposing.CritiqueOption

public class CritiqueOption
extends java.lang.Object

Utility object to encapsulte information about the user's critique to an attribute. It stores: the critiqued attribute, the label shown to the user and the FilterPredicate that implements the critique.

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

Constructor Summary
CritiqueOption(java.lang.String label, Attribute attribute, FilterPredicate predicate)
          Creates a new critiqueOption
 
Method Summary
 Attribute getAttribute()
           
 java.lang.String getLabel()
           
 FilterPredicate getPredicate()
           
 void setAttribute(Attribute attribute)
           
 void setLabel(java.lang.String label)
           
 void setPredicate(FilterPredicate predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CritiqueOption

public CritiqueOption(java.lang.String label,
                      Attribute attribute,
                      FilterPredicate predicate)
Creates a new critiqueOption

Parameters:
label -
attribute -
predicate -
Method Detail

getAttribute

public Attribute getAttribute()
Returns:
Returns the attribute.

setAttribute

public void setAttribute(Attribute attribute)
Parameters:
attribute - The attribute to set.

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - The label to set.

getPredicate

public FilterPredicate getPredicate()
Returns:
Returns the predicate.

setPredicate

public void setPredicate(FilterPredicate predicate)
Parameters:
predicate - The predicate to set.

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