jcolibri.method.retrieve.FilterBasedRetrieval.predicates
Class QueryLessOrEqual

java.lang.Object
  extended by jcolibri.method.retrieve.FilterBasedRetrieval.predicates.QueryLessOrEqual
All Implemented Interfaces:
FilterPredicate

public class QueryLessOrEqual
extends java.lang.Object
implements FilterPredicate

Predicate that compares if the query object is less or equal than the case object. Only applicable to enums and numbers.

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

Constructor Summary
QueryLessOrEqual()
           
 
Method Summary
 boolean compute(java.lang.Object caseObject, java.lang.Object queryObject)
          Computes the predicate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryLessOrEqual

public QueryLessOrEqual()
Method Detail

compute

public boolean compute(java.lang.Object caseObject,
                       java.lang.Object queryObject)
                throws NoApplicableFilterPredicateException
Description copied from interface: FilterPredicate
Computes the predicate

Specified by:
compute in interface FilterPredicate
Parameters:
caseObject - is the object of the case being compared
queryObject - is the object of the query being compared
Returns:
the result of the comparation
Throws:
NoApplicableFilterPredicateException - if the predicate cannot be applied to those objects.

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