jcolibri.method.retrieve.FilterBasedRetrieval.predicates
Class NotEqualTo

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

public class NotEqualTo
extends java.lang.Object
implements FilterPredicate

Predicate that compares if the case object is different to a fixed value.

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
NotEqualTo(java.lang.Object fixedQueryObject)
           
 
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

NotEqualTo

public NotEqualTo(java.lang.Object fixedQueryObject)
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