jcolibri.method.retrieve.FilterBasedRetrieval.predicates
Class Threshold

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

public class Threshold
extends java.lang.Object
implements FilterPredicate

Predicate that compares if the query object is less 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
Threshold(java.lang.Number threshold)
           
 
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

Threshold

public Threshold(java.lang.Number threshold)
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