jcolibri.method.retrieve.FilterBasedRetrieval.predicates
Class Equal

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

public class Equal
extends java.lang.Object
implements FilterPredicate

Predicate that compares if two objects are equal.

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
Equal()
           
 
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

Equal

public Equal()
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